mtproto
mtproto copied to clipboard
Fatal Error on AuthSendCode: use of closed network connection
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
@moorage +1. This error occurs with all methods on my Machine.
@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