mtproto icon indicating copy to clipboard operation
mtproto copied to clipboard

Fatal Error on AuthSendCode: use of closed network connection

Open moorage opened this issue 7 years ago • 2 comments

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 avatar Dec 27 '17 02:12 moorage

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

ishanjain28 avatar Dec 30 '17 07:12 ishanjain28

@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

moorage avatar Dec 30 '17 19:12 moorage