Skip to content
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

Fatal Error on AuthSendCode: use of closed network connection #27

Open
moorage opened this issue Dec 27, 2017 · 2 comments
Open

Fatal Error on AuthSendCode: use of closed network connection #27

moorage opened this issue Dec 27, 2017 · 2 comments

Comments

@moorage
Copy link

moorage commented Dec 27, 2017

My phone number gets a redirect (returns status 303 with PHONE_MIGRATE_1).

Ultimately, I have tracked down the issue to mtproto.go's func (m *MTProto) readRoutine() trying to read on a closed connection.

This seems to happen right on network.go's call to nw.session = NewSession(file) I believe as a result of calling reconnect in mtproto upon seeing PHONE_MIGRATE_1

The actual error line looks like:

ReadRoutine:  read tcp 10.0.0.161:53715->149.154.167.50:443: use of closed network connection
@ishanjain28
Copy link

@moorage +1. This error occurs with all methods on my Machine.

@moorage
Copy link
Author

moorage commented Dec 30, 2017

@ishanjain28 I have gotten a decent amount of things working @ https://github.com/moorage/mtproto and https://github.com/moorage/telegramgo ... hopefully that's helpful to you

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

No branches or pull requests

2 participants