-
Notifications
You must be signed in to change notification settings - Fork 410
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
Got exception while listening #175
Comments
Seems like something that's virtually impossible to fix, like #130. If anyone figures out why, I'd love to know, but other than that, I think the only thing we can do is just catch the error, and the do a re-login, or simply just re-login every, say, 6 hours. |
Im working on this one right now (since I need 24/7 too haha) I observe that facebook starts sending weird response that contains fb_dtsg after running like days. Here is the code: PS: It's funny that I also thumb-up'ed the comment in that issue. Somehow I completely forgot about it. -facepalm- |
Thanks for you work, this'll become really handy :) |
Note: I recently met an error IF nothing had been sent for 3 days then I sent a message. |
happens randomly, not sure how to reproduce
i have a bot running 24/7, today it was down and this was last log, i know it has happened before and i just ignored it
2017-07-06 04:56:21,530 - client - ERROR - Got exception while listening Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 1430, in doOneListen content = self._pullMessage(self.sticky, self.pool) File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 1242, in _pullMessage j = checkRequest(self._get(ReqUrl.STICKY, data)) File "/usr/local/lib/python2.7/dist-packages/fbchat/utils.py", line 157, in checkRequest raise Exception('Error when sending request: Got {} response'.format(r.status_code)) Exception: Error when sending request: Got 502 response
The text was updated successfully, but these errors were encountered: