Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

BadHTTPResponse 502 #31

Closed
nockstarr opened this issue Mar 3, 2016 · 3 comments
Closed

BadHTTPResponse 502 #31

nockstarr opened this issue Mar 3, 2016 · 3 comments

Comments

@nockstarr
Copy link

Been running the bot for a long time now, and today the bot stopped answering.
I have not modified the code in while. All I get is the error message below when the boot tries to pull new messages. I have testet on 2 diffrents servers and made sure im running the latest version of telepot. Any help?

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 348, in get_from_telegram_server result = self.getUpdates(offset=offset, timeout=timeout) File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 273, in getUpdates return self._parse(r) File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 166, in _parse raise BadHTTPResponse(response.status_code, response.text) BadHTTPResponse: (502, u'<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor="white">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx/1.6.2</center>\r\n</body>\r\n</html>\r\n')

@ravxl
Copy link

ravxl commented Mar 4, 2016

It looks like a problem in the telegram API, not a issue at your side or your code.

@nickoala
Copy link
Owner

nickoala commented Mar 4, 2016

It looks like Telegram servers were down when you noticed this problem.

Next time, you may open a browser window to check:

https://api.telegram.org/bot<token>/getMe

or

https://api.telegram.org/bot<token>/getUpdates

If you still get the same error, you can be pretty sure Telegram servers are the culprit.

@nockstarr
Copy link
Author

Thanks for the feedback, this seems to been the case. I will remember that the next time :)

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

No branches or pull requests

3 participants