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

auth_key_unregistered error #8

Closed
amir-abbas opened this issue Aug 3, 2017 · 9 comments
Closed

auth_key_unregistered error #8

amir-abbas opened this issue Aug 3, 2017 · 9 comments
Labels

Comments

@amir-abbas
Copy link

after while we get FLOOD_WAIT_X error or auth_key_unregistered error

@shelomentsevd
Copy link
Owner

Hi, @amir-abbas!
Pull request #7 should have fix this bug.
Do you still get error?

@amir-abbas
Copy link
Author

amir-abbas commented Aug 7, 2017

Hi @shelomentsevd
thank you for fix this bug but when change dc in auth_sentCode we get Phone_registered:false
not support switchDC.

@savely-krasovsky
Copy link
Contributor

@amir-abbas we are working on it. You can use directly necessary DC right now.

@amir-abbas
Copy link
Author

Hi @shelomentsevd @Lord-Protector
I fixed this issue(switchDC ) but we have a new issue in reconnect function, we should disconnect first but we stuck at this <-m.allDone

@amir-abbas
Copy link
Author

@shelomentsevd @Lord-Protector
thanks for your effort but please check disconnect function.this function does not work correctly.

@shelomentsevd
Copy link
Owner

Hi, @amir-abbas!
I'll check it on Monday. I am too busy this week.
Sorry for the inconvenience.

shelomentsevd added a commit that referenced this issue Aug 15, 2017
…ls (stop|send|ping)Routine with stopRoutines. I think it should help to fix issue #8
@shelomentsevd
Copy link
Owner

@amir-abbas I refactored Disconnect function and replaced allDone channel with WaitGroup, I think it should fix your problem. Let me know if you still have problem.

@amir-abbas
Copy link
Author

amir-abbas commented Aug 19, 2017

@shelomentsevd
Hi there, in demo application, when we get EOF error and Reconnect process begin, this function
func (cli *TelegramCLI) Run() error {
log.Println("CLI Update cycle started")
UpdateCycle:
for {
select {
case <-cli.stop:
log.Println("Update cycle stoped")
break UpdateCycle
case <-time.After(updatePeriod):
cli.processUpdates()
}
}

log.Println("CLI Update cycle finished")
return nil

}

does not work

@shelomentsevd
Copy link
Owner

@amir-abbas I think this is a telegramgo problem, not a mtproto lib.

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

No branches or pull requests

3 participants