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
crash with rapid message send / respond #22
Comments
Same issue for me, although it doesn't necessarily seem to be related to message frequency. For this crash the previous log event was around 2 hours before:
|
so, it's not a good solution, but it is a solution. if you wrap the JSON.parse() in a try catch block, this problem dissapears. I'm user there is a better way to fix this, but it's worked for me as a hotfix until someone who actually knows what they are doing can get around to it. |
Please test with this branch: https://github.com/matrix-hacks/matrix-puppet-hangouts/tree/add_hangups_client_debug_logging That will produce a hangouts_client.log file in the bridge directory. After one of these failures occurs, try to find the offending message inside that log and post it here (redacted, but maintaining the portions that allow for debugging)... thanks |
matrix version: 0.34.1.1
matrix-puppet-hangouts version: b431229
so I have noticed an odd behavior, when using the hangouts puppet. if I send and receive multiple messages through hangouts in rapid succession (under 2-3 mins) and occasionally if I respond quickly to things inside of matrix, the bridge will crash with this error:
from a quick glance at the code by someone who has no JavaScript experience, it looks like the problem might be fixed by validating the JSON received by Socket.hangupsProc.stdout.on() though how we could correct an incomplete JSON message from hangups is beyond me, perhaps request it be sent again?
The text was updated successfully, but these errors were encountered: