TgSharp icon indicating copy to clipboard operation
TgSharp copied to clipboard

"Endless quest" in attempt to export authorization

Open vmato opened this issue 4 years ago • 4 comments

Once client connected to other DC it can not proceed work:

1 SendRequestAsync() calls RequestWithDcMigration() 2 it gets DataCenterMigrationException() 3 and calls ReconnectToDcAsync() 4 ReconnectToDcAsync() calls SendRequestAsync< TLExportedAuthorization > i.e. goto 1 :)

Where is a proper exit?

vmato avatar Feb 13 '21 10:02 vmato

Use tree https://github.com/nblockchain/TgSharp/tree/2faFeature

atrdev-rgb avatar Feb 15 '21 18:02 atrdev-rgb

This version suffers same problem

vmato avatar Feb 17 '21 08:02 vmato

Ниче не знаю, но у меня работает )))

atrdev-rgb avatar Feb 19 '21 10:02 atrdev-rgb

This occurs when you try to export the auth from the dc that is not the origin for the user. I fixed this issue in this commit https://github.com/SmaGMan/TgSharp/commit/f081731eb1a5db225e4524d1cb9f1fcaf9dcb582

SmaGMan avatar Nov 02 '21 09:11 SmaGMan