-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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.ExportAuthorization Floodwait #108
Comments
@pdisk This error might be due to too many users using your server, I highly advice you to use multi client feature to reduce the load of the server. And about the RAM usage, Try setting the |
@EverythingSuckz Yes I already use it with multi_client mode with 10 bots in total and USE_SESSION_FILE var Has Already been set to True, i think it should work without this error if the program isn't restarting cuz of ram usage |
Not sure about the fact whether pyrogram tried to get media sessions on startup. Like, there are only 5 Telegram DC IDs and we only need 5 media sessions per bot. I don't really understand why Telegram gives floodwait for that even tho media session is being cached and even if it's not cached, it only makes like 5 request at max. Looks like I need to check this issue. |
😶 |
@EverythingSuckz This error doesn't stop the program and instead the error is shown every time a file is taken, are there any work around u can suggest to temporarily solve the issue or if any suggestions to pin point the error, I'll send more logs and findings (i had to modify the code to take files from multiple channels by passing the channel id along with messageid and had to remove the hash checking part for it) still i don't think that can cause this FloodWait |
So you've modified it? Well then I can't really make sure about the bug since I've hosted the bot with 20 clients and there were no such issues. Maybe provide more logs? |
i fixed the issue with asyncio.Lock() when server was restarted all the request came at once making the script to generate_media_session multiple times before checking if the function has already been executed with a lock for each bot and each dcid i was able to solve the issue |
@EverythingSuckz i Still Couldn't Figure out what's causing the intense ram usage tho no other variables or functions has been written as mod without even a single error the ram usage spike to 1.2 or more if i allow it to |
Oh, if you think it's a major issue, then feel free to do a PR. |
Seems like I'll have to profile the memory usage and see where exactly is this memory is being used. |
1 similar comment
Seems like I'll have to profile the memory usage and see where exactly is this memory is being used. |
is this error cuz bot gets restarted every time it reaches 900 mb ram usage (takes only abt 3 minute)
or cuz when bot gets restarted all files need to fetched from telegram again?
or any other reason
i made the code use session file to persist session even when bot is restarted idk what the issue is
please let me know whats causing this or how to fix this
(idk how to write a proper issue sorry 🤓)
The text was updated successfully, but these errors were encountered: