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

urllib2.HTTPError: HTTP Error 520: Origin Error #12

Open
crazygeekone opened this issue Oct 25, 2014 · 2 comments
Open

urllib2.HTTPError: HTTP Error 520: Origin Error #12

crazygeekone opened this issue Oct 25, 2014 · 2 comments

Comments

@crazygeekone
Copy link

hi my python script close some times with this error :

Traceback (most recent call last):
File "start.py", line 82, in
data = api.balance()
File "/usr/local/lib/python2.7/dist-packages/cexapi-0.1-py2.7.egg/cexapi/cexapi.py", line 66, in balance
return self.api_call('balance', {}, 1)
File "/usr/local/lib/python2.7/dist-packages/cexapi-0.1-py2.7.egg/cexapi/cexapi.py", line 53, in api_call
answer = self.__post(url, param) # Post Request
File "/usr/local/lib/python2.7/dist-packages/cexapi-0.1-py2.7.egg/cexapi/cexapi.py", line 40, in __post
page = urllib2.urlopen(req).read()
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 407, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 445, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 520: Origin Error

Can you have a look ?
Thanks.

@whbdupree
Copy link

Did you resolve this? I am seeing this sometimes.

@notanewbie
Copy link

Yeah same here

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

3 participants