Telethon icon indicating copy to clipboard operation
Telethon copied to clipboard

A wait of xxx seconds is required (caused by ExportAuthorizationRequest)

Open hhhill opened this issue 4 years ago • 9 comments

When I call the download_profile_photo() method to download an avatar image, there will always be an error message (A wait of xxx seconds is required (caused by ExportAuthorizationRequest)) displayed. Is there any restriction or rule to follow? Thank you.

hhhill avatar Jul 13 '21 08:07 hhhill

telethon.errors.rpcerrorlist.FloodWaitError: A wait of 849 seconds is required (caused by ExportAuthorizationRequest)

hhhill avatar Jul 13 '21 09:07 hhhill

This should only happen if you're creating a client and downloading files from other datacenters very often. What is your code and use-case?

I'm going to close this under the assumption that it's not really actionable on our part for the time being, but do report back if you have more information.

Lonami avatar Aug 22 '21 11:08 Lonami

Hello. I try get message from 2 channels and insert to my bot. And I have ban. telethon.errors.rpcerrorlist.FloodWaitError: A wait of 48038 seconds is required (caused by ResolveUsernameRequest) Howe resolve this problem?

Jekhuligan avatar Aug 31 '21 21:08 Jekhuligan

Same problem happened here, getting A wait of xxx seconds is required (caused by ExportAuthorizationRequest) when trying to download photos with different dc_ids. Is there any way to change the connection 's data center manually? I tried client.session.set_dc() method but it did 't work.

aminimani avatar Sep 24 '21 20:09 aminimani

This error should only occur if you're creating a client, connecting, downloading media from other datacenter, and trashing it. Is this the case? How long is the wait? A day? A few hours?

Lonami avatar Sep 25 '21 09:09 Lonami

For the first few there is no wait but after some 40-50 downloads I have to wait for a few minutes. After downloading each media the script sleeps for 2 seconds and then starts downloading the next media but waiting that much is not enough and waiting more than that would be too much time consuming.

aminimani avatar Sep 25 '21 12:09 aminimani

For the first few there is no wait but after some 40-50 downloads I have to wait for a few minutes. After downloading each media the script sleeps for 2 seconds and then starts downloading the next media but waiting that much is not enough and waiting more than that would be too much time consuming.

I have a similar problem after some downloads, the telethon threw FloodWaitError and to wait like an hour.

satrio-yudhoatmojo avatar Feb 21 '22 04:02 satrio-yudhoatmojo

I have the same issue with downloading media. I'm using the FastTelethon script if that matters.

liabozarth avatar Apr 26 '23 17:04 liabozarth