[vz-users] Meldung: Network Error

Andreas Goetz cpuidle at gmail.com
Sun Mar 12 18:11:58 CET 2017


Moin,

> On 12 Mar 2017, at 10:31, News <news at spider-wolf.de> wrote:
> 
> Sorry kann dir nicht ganz folgen. 

Dann nochmal, jetzt habe ich etwas mehr Zeit.

> 
> Hier meine Option.js
> 
> vz.options = {
> 	language: 'de',
> 	precision: 2,							// TODO update from middleware capabilities?
> 	maxPrecision: {						// override precision for certain units
> 		'°C': 1
> 	},
> 	tuples: null,							// automatically determined by plot size
> 	refresh: true,						// update chart if zoomed to current timestamp
> 	interval: 24*60*60*1000,	// 1 day default time interval to show
> 	totalsInterval: 300,			// update interval for total consumption in s (only channels where initialconsumption > 0)
> 	pushRedrawTimeout: 1000,	// ms delay for collecting push updates before redrawing
> 	minTimeout: 2000,					// minimum refresh time in ms
> 	shortenLongTypes: false,	// show shorter type names in table
> 	middleware: [
> 		{
> 			title: 'Local (default)',
> 			url: 'middleware.php'
> 			// live: 8082					// NOTE: live updates require
> 														//    - push-server running and
> 														//    - either apache proxy forwarding configured according to
> 														//			https://github.com/volkszaehler/volkszaehler.org/issues/382 <https://github.com/volkszaehler/volkszaehler.org/issues/382>
> 														// 		- or push-server live update port configured and accessible
> 		}, {
> 			title: 'Volkszaehler Demo',
> 			url: '//demo.volkszaehler.org/middleware.php' <http://demo.volkszaehler.org/middleware.php'>
> 		}

Hier ist der Fehler. Es muss heissen:

		}, {
			title: 'Volkszaehler Demo',
			url: 'https://demo.volkszaehler.org/middleware.php'
		}

Da fehlte also das https. Seitdem demo einen “harten” redirect von http auf https macht mag Safari/Chrome das mangels Konformität mit der CORS Policy nicht mehr. Soeben behoben.

Hat aber alles nix mit nicht ankommenden Daten zu tun. Wie Du die analysieren kannst ist im angegebenen Wikilink ebenfalls ganz gut erklärt.

Viele Grüße, Andreas

...
> };
> 
> 
> 
>> Am 12.03.2017 um 08:46 schrieb Andreas Götz <cpuidle at gmail.com <mailto:cpuidle at gmail.com>>:
>> 
>> Das reicht, schaue ich mit an. Fürs erste genügt es wenn Du demo aus der options.js entfernst, dann sollte der Fehler weg sein. 
>> 
>> Viele Grüße,
>> Andreas
>> 
>> Am 12.03.2017 um 08:34 schrieb News <news at spider-wolf.de <mailto:news at spider-wolf.de>>:
>> 
>>> Hi,
>>> 
>>> ich arbeite mit OSX. habe im Safari die „Fehlerkonsole einblenden“ ausgewählt. Hoffe das ist gemeint
>>> 
>>> <Bildschirmfoto 2017-03-12 um 08.32.42.png>
>>> 
>>>> Am 12.03.2017 um 08:15 schrieb Andreas Götz <cpuidle at gmail.com <mailto:cpuidle at gmail.com>>:
>>>> 
>>>> Entwicklerkonsole
>>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170312/132039b6/attachment.html>


More information about the volkszaehler-users mailing list