Unknown Error

Posted on
Thu May 31, 2018 9:01 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Unknown Error

Been seeing this error today. No idea what it is...maybe a script somewhere?

Code: Select all
 Error                           because embedded scripts execute sequentially they must complete their execution within 10 seconds.
   Error                           modify the script to exit quickly or convert it to an external file (not embedded).
   Stopping embedded script executor host (pid 1326)
   Script Error                    embedded script: <urlopen error [Errno 4] Interrupted system call>
   Script Error                    Exception Traceback (most recent call shown last):

     embedded script, line 9, at top level
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 394, in open
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 412, in _open
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1199, in http_open
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1174, in do_open
URLError: <urlopen error [Errno 4] Interrupted system call>


Any ideas?

Thanks,

Carl

Posted on
Thu May 31, 2018 9:30 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Unknown Error

Think I found the script that's the problem.

Code: Select all
#! /usr/bin/env python2.5
# -*- coding: utf-8 -*-

import simplejson
import urllib2

DTVIP = "192.168.1.53"
url = "http://%s:8080/tv/getTuned?" % DTVIP
f = urllib2.urlopen(url)
simplejson_string = f.read()
f.close()
parsed_simplejson = simplejson.loads(simplejson_string)

try:
   programTitle = parsed_simplejson['title']
   indigo.variable.updateValue(1708209973, programTitle)
except:
   indigo.variable.updateValue(1708209973, " ")
try:
   majorCh = str(parsed_simplejson['major'])
   indigo.variable.updateValue(564695813, majorCh)
except:
   indigo.variable.updateValue(564695813, " ")


Been using this script for quite some time without issue.
Any idea why it may have started to error?

edit: Something tells me this has something to do with why the FluxLED plugin fails as well.

Thanks,

Carl
Attachments
7122D7B3-0F92-414D-B164-9762BC434CEF.jpeg
7122D7B3-0F92-414D-B164-9762BC434CEF.jpeg (37.27 KiB) Viewed 1142 times

Posted on
Fri Jun 01, 2018 12:19 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Unknown Error

Can you open that URL manually in safari still to check it’s ok?


Sent from my iPhone using Tapatalk Pro

Posted on
Fri Jun 01, 2018 9:21 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Unknown Error

[MODERATOR NOTE] moved to the Python Scripting forum since it's a Python script.

First, you should probably make this script an external script since it's making network calls which may take longer than 10 seconds to timeout and you don't specify a timeout in the script (default network timeouts are usually 30 seconds or more).

Second, I suspect that @howartp is pointing you in the right direction: it seems likely that the network service you're trying to talk to is either offline or otherwise hung up and isn't responding to the urlopen() call.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 01, 2018 9:39 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Unknown Error

Tried resetting the IP address to something different, then back to where I had it originally and it worked again.

If I’m ever on life support and nothing’s working, unplug me...then plug me in again and see if that works.

Carl

Posted on
Sat Jun 02, 2018 5:52 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Unknown Error

1.jpg
1.jpg (33.95 KiB) Viewed 1053 times

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests