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

state changed from up to crashed #54

Closed
Littletonar opened this issue May 27, 2022 · 2 comments
Closed

state changed from up to crashed #54

Littletonar opened this issue May 27, 2022 · 2 comments

Comments

@Littletonar
Copy link

2022-05-27T19:45:18.076038+00:00 app[worker.1]: is_authorized = await self.connect()

2022-05-27T19:45:18.076048+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/auth/connect.py", line 39, in connect

2022-05-27T19:45:18.076109+00:00 app[worker.1]: await self.load_session()

2022-05-27T19:45:18.076119+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/client.py", line 677, in load_session

2022-05-27T19:45:18.076320+00:00 app[worker.1]: await self.storage.open()

2022-05-27T19:45:18.076330+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/storage/memory_storage.py", line 38, in open

2022-05-27T19:45:18.076397+00:00 app[worker.1]: dc_id, test_mode, auth_key, user_id, is_bot = struct.unpack(

2022-05-27T19:45:18.076425+00:00 app[worker.1]: struct.error: unpack requires a buffer of 267 bytes

2022-05-27T19:45:18.304373+00:00 heroku[worker.1]: Process exited with status 1

2022-05-27T19:45:18.368186+00:00 heroku[worker.1]: State changed from up to crashed

I deployed this bot but it always shows this error.
If anybody knows then please help.

@m4mallu
Copy link
Owner

m4mallu commented May 28, 2022

Problem with your session string. Possible causes...

  1. Not updated the repo with the main source.
  2. Edited the code.
  3. Used old session string generator (Maybe this is the cause. Use THIS string generator instead).

@ShuhaibNC
Copy link

Nice

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

No branches or pull requests

3 participants