Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running script #12

Open
wazime opened this issue Mar 19, 2014 · 1 comment
Open

Error running script #12

wazime opened this issue Mar 19, 2014 · 1 comment

Comments

@wazime
Copy link

wazime commented Mar 19, 2014

I had everything running good, but now I get the following error when the script runs.

2014-03-15 21:11:16.621005: [debug] Calling notify [/usr/bin/notifynest.sh] with arg1 [away], arg2 [0], arg3 [0d 00:00:00]
2014-03-15 21:11:17.349267: #### BEGIN EXCEPTION #####
2014-03-15 21:11:17.349336: Command '['/usr/bin/notifynest.sh', 'away', '0', '0d 00:00:00']' returned non-zero exit status 1
2014-03-15 21:11:17.349359: Output from notify follows:
Updating Nest with away status: away
Property occupied for 0d 00:00:00 (0 seconds)
Traceback (most recent call last):
File "/usr/bin/nest.py", line 324, in
main()
File "/usr/bin/nest.py", line 280, in main
n.login()
File "/usr/bin/nest.py", line 96, in login
res = urllib2.urlopen(req).read()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: FORBIDDEN

2014-03-15 21:11:17.349409: #### END EXCEPTION #####

Any help with this would be great.

@brucehart
Copy link

It looks like the Nest web server is returning HTTP error codes 403 and 401 meaning the request is not authorized. Either Nest has started blocking requests from the script or the request protocol has changed due to a software update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants