-
Notifications
You must be signed in to change notification settings - Fork 133
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
Get PHONE_MIGRATE_5 after sending AuthSendCode #22
Comments
Hey @xxxsen, thanks for question! This is trouble of telegram api, all clients needs to automatically switch DCs between available. Also, this error is really specific, we don't know how to process it (code of dc is invluded in error id). Btw, we know about this problem since #12 was created. If you have any idea how to process this error code, let me know please. |
https://itnext.io/source-code-walkthrough-of-telegram-ios-part-4-mtproto-connections-22ef2e5b339
"Enter Phone Number" part of this article shows how to switch datacenter,
wish it would help you to solve this issue.
…On Mon, Oct 12, 2020, 04:13 Richard Cooper ***@***.***> wrote:
Hey @xxxsen <https://github.com/xxxsen>, thanks for question!
This is trouble of telegram api, all clients needs to automatically switch
DCs between available. Also, this error is really specific, we don't know
how to process it (code of dc is invluded in error id). Btw, we know about
this problem since #12 <#12> was
created. If you have any idea how to process this error code, let me know
please.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5TKVFFJTLLZNEXRSSSLRLSKIGVRANCNFSM4SLZBXWQ>
.
|
@xxxsen thanks a lot! I'll research this issue, and answer here until closing it. This article will help |
@ololosha228 Also, I have this problem. you can fix it? or what can I do for fixing? |
@airani i have some work in this case, i'll commit part of my solution to this issue in experimental branch and let you know) In general, there is not so much stuff to do for dealing this error code, you need to say |
@ololosha228 you saw this page? https://core.telegram.org/api/datacenter |
@airani this branch is leads to fix this issue
Yeah, but i still don't understand their point of logic to do stuff like this (cause servers may proxying requests to another, but they are not). Anyway, i working on in, you can help too) |
I found solution to fix this bug, when you have got this error for a phone number you should change List of Telegram DC:
|
this is major bug, break the whole library |
@codenoid it's not a bug, it's a feature))) Okay, without any jokes, we agree that library must change DC automatically (as many other stuff), i'll prioritize this feature to top level. Unfortunately, i don't have much time to fix it, maybe someone could collect data about which usual telegram client do automatically without user requests (must dig in tdlib or android clients, they must have automatic jobs like change dc, recreate or repair sessions etc), and i'll just implement it. But i need info about this firstly. |
i don't know, but i still able to send code with https://github.com/sdidyk/mtproto note: but after I input the confirmation code (with |
@codenoid i'm sorry to hear that 😢 sdidyk/mtproto has bad credentials of app (app id 41994 is banned due to multiple cases spamming and doing malware stuff). Also, few parts of this (xelaj/mtproto) package was reimplemented, but i can say that sdidyk/mtproto doesnt have proper logic of automated things. |
wait what? i didn't close it, its only WIP! |
@xxxsen @airani @codenoid and also @patrikhermansson, i have some news! So i had a few time to fix it, but it's looks so messy as i think. This commit will help. I hope. @codenoid @xxxsen due to this error affects to specific phone numbers, can you please test this fix, and give us report? |
Can confirm that it works well in my testing! Thanks for fixing and sorry for late reply. |
@patrikhermansson check out also this branch We had reworked literally all package include new tl parser, which doesn't panic every second, also we reimplemented codegen tool, now personally me don't cry when i'm scrolling telegram package in godoc)))) |
Hi! Sorry about this but clearly didn't test enough earlier. It doesn't work yet I'm afraid. Have not solved it but a few issues I found:
Apologies again for being mistaken in the previous message. |
@patrikhermansson errors with additional data (like But i'm worried, that you didn't solve this issue, could you please post here github gist with testing code? Maybe we need to add more docs of how to solve errors with additional data... |
Ok had a look. Yeah you're right, there's an issue in TryExpandError on line 77. It should be But even if I fix this (which sorts point 1 and 2 in my previous comment). I still get the error:
So this is separate. Gonna see if i can sort example code |
TryExpandError error is fixed in new_decoder_refactoring branch so not gonna do a pull request but will try to figure out the context issue. Clearly one that gets cancelled somewhere |
Due to multiple responses, this bug was fixed in release candidate branch, so i'll close it |
о боже ничего не работает об оже |
эээ чо PHONE_MIGRATE_2 |
а ничо нормально общайся |
run auth example and get error msg like this.
The text was updated successfully, but these errors were encountered: