Page 1 of 1

Cynical Weather Error

PostPosted: Wed Jun 06, 2018 10:38 am
by gskarp
I have been getting a regular stream of errors for this plugin. I updated the plugin via the store, restarted indigo and rebooted. The error seems to persist. Has anyone else seen this issue?

Cynical Weather Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Cynical Weather Error in runConcurrentThread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 58, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 68, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 64, in runConcurrentThread
self.run()
File ".../Server Plugin/asyn/inject.py", line 61, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 105, in run
item._can_read()
File ".../Server Plugin/asyn/selectable.py", line 229, in _can_read
self._null_read()
File ".../Server Plugin/asyn/selectable.py", line 97, in _null_read
self.callout(END)
File ".../Server Plugin/asyn/core.py", line 152, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/ssl.py", line 140, in incoming
super(SSL, self).incoming(ctx, data)
File ".../Server Plugin/asyn/selectable.py", line 387, in incoming
return self.callout(ctx)
File ".../Server Plugin/asyn/core.py", line 152, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/http_chunk.py", line 44, in incoming
return super(ChunkedCoder, self).incoming(ctx, data)
File ".../Server Plugin/asyn/selectable.py", line 387, in incoming
return self.callout(ctx)
File ".../Server Plugin/asyn/core.py", line 152, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/zfilter.py", line 44, in incoming
self.callout(ctx)
File ".../Server Plugin/asyn/core.py", line 152, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/http.py", line 304, in incoming
return self.callout('body', self.body)
File ".../Server Plugin/asyn/core.py", line 152, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/forecast/core.py", line 193, in cb
callout(asyn.Context('reading'), Reading(args[0]))
File ".../Server Plugin/forecast/core.py", line 128, in __init__
s = json.loads(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Re: Cynical Weather Error

PostPosted: Wed Jun 06, 2018 11:12 am
by jalves
Yes, I'm seeing the same error. Seems to have started yesterday. I've also don a complete restart of Indigo, the server and even the mac that it is running on. No change.

Re: Cynical Weather Error

PostPosted: Wed Jun 06, 2018 3:15 pm
by EricMcM
same for me.

It is occurring most, but not all, times that an update is attempted. I have not been able to determine a pattern. darksky returns reasonable looking data when I invoke the API by hand and the point in the code that is complaining is called after it receives an ok response from the API server. I looked at the traffic and there was an appropriate amount of data being returned from the API server also (encrypted though (https query), and I didn't go any farther than that).

Re: Cynical Weather Error

PostPosted: Wed Jun 06, 2018 3:24 pm
by agame
happening here too.
was happening both before and after (an unrelated) reinstall of indigo.

Re: Cynical Weather Error

PostPosted: Wed Jun 06, 2018 5:31 pm
by Perry The Cynic
Yup, yes, indeed. I see the same error myself. Something changed (presumably at the Dark Sky server end) yesterday around 5:15pm, and now compressed HTTP replies (which we use) don't decode anymore in my (admittedly archaic) Python code. I've asked the Dark Sky crew about the change so I can figure out what to do about it.

Meanwhile we wait...

Cheers
-- perry

Re: Cynical Weather Error

PostPosted: Wed Jun 06, 2018 7:39 pm
by EricMcM
sounds right. I did try it without compression and it works fine. Hopefully they know what changed on their end. Thanks!

Re: Cynical Weather Error

PostPosted: Thu Jun 07, 2018 9:41 am
by DVDDave
Perry The Cynic wrote:
Yup, yes, indeed. I see the same error myself. Something changed (presumably at the Dark Sky server end) yesterday around 5:15pm, and now compressed HTTP replies (which we use) don't decode anymore in my (admittedly archaic) Python code. I've asked the Dark Sky crew about the change so I can figure out what to do about it.

Meanwhile we wait...

Cheers
-- perry

Thanks for looking into this, Perry. In the meantime, if all I want to keep working is Sun El (which seems to be working fine), is there anything I can disable or reconfigure to keep this working without triggering the error messages? Alternatively, is there any way to simply suppress the error messages for now? Thanks!

--Dave

Re: Cynical Weather Error

PostPosted: Thu Jun 07, 2018 8:09 pm
by Perry The Cynic
I'm in contact with the Dark Sky crew, who did indeed go through a major revamp of their server infrastructure when that happened. We don't know what went wrong as yet.

Meanwhile, I've released version 1.2.1 that simply turns off compression on forecast connections. I've verified that this works, though of course it's a bit slower for those of you with slow network links.

Cheers
-- perry

Re: Cynical Weather Error

PostPosted: Thu Jun 07, 2018 8:23 pm
by DVDDave
Seems to work normally with no errors so far. Thanks, Perry!

Re: Cynical Weather Error

PostPosted: Fri Jun 08, 2018 12:03 am
by McJohn
Thanks for the quick response and solution Perry, you are our hero of the day!

Re: Cynical Weather Error

PostPosted: Fri Jun 08, 2018 2:15 am
by agame
yes, back to normal!! thanks.

Re: Cynical Weather Error

PostPosted: Fri Jun 08, 2018 6:14 am
by WagnerOne
Thank you!