Cynical Weather Error

Posted on
Wed Jun 06, 2018 10:38 am
gskarp offline
Posts: 96
Joined: Apr 19, 2012

Cynical Weather Error

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

Posted on
Wed Jun 06, 2018 11:12 am
jalves offline
Posts: 470
Joined: Jun 16, 2013

Re: Cynical Weather Error

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.

Running Indigo 7.1.1 on a 27" iMac (mid-2017), 8G memory, 1T Fusion Drive, OS X 10.13.6
Jeff

Posted on
Wed Jun 06, 2018 3:15 pm
EricMcM offline
Posts: 4
Joined: May 13, 2016

Re: Cynical Weather Error

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).

Posted on
Wed Jun 06, 2018 3:24 pm
agame offline
Posts: 165
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: Cynical Weather Error

happening here too.
was happening both before and after (an unrelated) reinstall of indigo.

Posted on
Wed Jun 06, 2018 5:31 pm
Perry The Cynic offline
Posts: 749
Joined: Apr 07, 2008

Re: Cynical Weather Error

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

Posted on
Wed Jun 06, 2018 7:39 pm
EricMcM offline
Posts: 4
Joined: May 13, 2016

Re: Cynical Weather Error

sounds right. I did try it without compression and it works fine. Hopefully they know what changed on their end. Thanks!

Posted on
Thu Jun 07, 2018 9:41 am
DVDDave offline
Posts: 294
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Cynical Weather Error

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

Posted on
Thu Jun 07, 2018 8:09 pm
Perry The Cynic offline
Posts: 749
Joined: Apr 07, 2008

Re: Cynical Weather Error

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

Posted on
Thu Jun 07, 2018 8:23 pm
DVDDave offline
Posts: 294
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Cynical Weather Error

Seems to work normally with no errors so far. Thanks, Perry!

Posted on
Fri Jun 08, 2018 12:03 am
McJohn offline
User avatar
Posts: 321
Joined: Dec 18, 2012
Location: The Netherlands

Re: Cynical Weather Error

Thanks for the quick response and solution Perry, you are our hero of the day!

Posted on
Fri Jun 08, 2018 2:15 am
agame offline
Posts: 165
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: Cynical Weather Error

yes, back to normal!! thanks.

Posted on
Fri Jun 08, 2018 6:14 am
WagnerOne offline
Posts: 103
Joined: Jun 12, 2009
Location: Chicago, IL

Re: Cynical Weather Error

Thank you!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests

cron