tinode / chat

Instant messaging platform. Backend in Go. Clients: Swift iOS, Java Android, JS webapp, scriptable command line; chatbots
GNU General Public License v3.0
12.06k stars 1.88k forks source link

Chatbot.py disconnection #114

Closed admill1519 closed 6 years ago

admill1519 commented 6 years ago

Subject of the issue

chatbot.py keeps getting disconnect on receiving large images and sometimes on text messages. I am handling it with try and except but its not working. is there any better solution for this. And it does not refresh or restart itself on error.

Is this a bug report of a feature request?

I am reporting here bug as well as requesting a new feature

Your environment

Steps to reproduce

Send any large file and it will produce the error

Expected behaviour

If not able to handle text or image it should go in the exception and should not disconnect the bot. Right now on every error bot is going offline

Actual behaviour

if any error occurs it goes in exception but still bot goes offline

Server-side log

"Disconnect:" error message captured by exception

Client-side log

Copy client-side log here. You may also attach it to the issue as a Dfile.

or-else commented 6 years ago

I cannot reproduce. Please fill out the bug report form completely. It asks these questions because I need them answered in order to reproduce the bug you are reporting.

Have you modified the chatbot.py in any way? Are you trying to read the message in the chatbot? If so, have you seen the discussion here: https://github.com/tinode/chat/issues/111?