-
Notifications
You must be signed in to change notification settings - Fork 178
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
Client disconnects after one request #62
Comments
strange. do you know what was the API call you made ? also did you change anything when creating the constructor ? |
The API call was
Apparently making multiple requests one after the other works if I do it in the above code, but if I wait and do nothing for like 30 seconds, it shows this
does it mean that I should do a |
that's very weird. I tried your code and it's been running fine for 10 min. are you sure you're not using a VPN or have an IPV6 or something weird like that ? |
Yea no it doesn't I think, one network I tried on had IPv6, but it had the same error as with the IPv4 one. Putting it on Heroku gives me the same thing too. So basically I see the same error message on different networks and different machines, so I can't make more than one request since the client is disconnected. Also, I don't use a VPN. |
Also get this error. In my case I called await telegram.invoke(new Api.messages.GetHistory({
peer: new Api.InputPeerChat({
chatId: parseInt(id)
})
})); |
well one thing for sure is that ipv6 is not supported. |
Yes, already tried that, but got the same error. Is there any recommendation? |
which error are you getting btw the disconnect one ? |
same as the author, the Invalid checksum error |
I reinstalling everything and I haven't found any issue from checksum error. All I did are removing yarn.lock and node_modules then ran Thank you for your help @painor |
Sorry, seems the invalid checksum error is reapearring this morning. I suspect the network, but then I tried to run the same function in telethon and it ran successfully. Does anyone have any idea why does this error reoccurring despite having no code changes? |
I think the issue was in the TCP connection reader on slower connections. It might have been fixed in latest patch. you could also use |
Yes, looks like it's fixed now. Thanks! |
After making one raw request through gramjs, it went through and returned the correct response but a few seconds after that I got this error on the console:
Any requests after this, result in an error saying it cannot send requests while disconnected:
I'm not sure if I'm doing something wrong. Everything works well, when I do
client.start
again.Also, is there a way to disable the [DEBUG] logs on the console?
The text was updated successfully, but these errors were encountered: