Issue #5 resolved

Total Crash

Anonymous created an issue

I noticed today the spotimeta api no longer functions. Worked yesterday, but got this statement back:

search = spotimeta.search_track("Trip back to childhood") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spotimeta-0.2-py2.7.egg/spotimeta/init.py", line 223, in search_track return self._do_search(url, term, page) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spotimeta-0.2-py2.7.egg/spotimeta/init.py", line 237, in _do_search fp, new_modified, new_expires = self._get_url(url, query, modified) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spotimeta-0.2-py2.7.egg/spotimeta/init.py", line 153, in _get_url fp = self._do_request(url, headers) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spotimeta-0.2-py2.7.egg/spotimeta/init.py", line 116, in _do_request return urllib2.urlopen(req) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open response = meth(req, response) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response 'http', request, response, code, msg, hdrs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error return self._call_chain(args) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain result = func(args) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 504: Gateway Time-out

Comments (2)

  1. Rune Halvorsen repo owner

    Hey, seems like there was a network error judging by the last line of the stack trace. Could be anything, from your ISP having an outage to spotify doing maintenance or anything in between. Not much I can do about it I'm afraid. I might add some custom exceptions though, so it'll be possible to plan for such errors better.

  2. Log in to comment