shamhi / HamsterKombatBot

Bot that mines coins in HamsterKombat
Apache License 2.0
466 stars 138 forks source link

Unknown error while getting Access Token: 422, message='Unprocessable Entity', #340

Closed mrdarkerr closed 2 weeks ago

mrdarkerr commented 2 weeks ago

Unknown error while getting Access Token: 422, message='Unprocessable Entity', url=URL('https://api.hamsterkombat.io/auth/auth-by-telegram-webapp') | Response text: {"type":"validation","on":"body","found":{"initDataRaw":null,"fingerprint":{"visitorId":"5425ed84e59c293f4e30b7161cc85612"}}}...

mrdarkerr commented 2 weeks ago

After disabling the script and passing a few minutes, the problem was solved automatically

sharpeye57 commented 2 weeks ago

how to disable the script? mine get that error too, already running a few min still the error exist

mrdarkerr commented 2 weeks ago

I use docker to keep the script running in the vps background and disable the script by stopping the container, but I checked again and found that the script is not stable and it gets the same error

Something like this Unclosed client session HamsterKombatBot | client_session: <aiohttp.client.ClientSession object at 0x7f7485583490> Or connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fc35ea3ea50>, 139177.231788663)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x7fc35e0f8050>, 139177.59331447)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x7fc35e0f8050>, 139177.231788663)]' object at 0x7fc35d80d010>, 139178.30941403)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x7fc35e1727b0>, 139174.494861983)]'] and even Unknown error while getting Access Token: 422, message='Unprocessable Entity'

And the point is that sometimes there are errors and sometimes there is no problem

ButCheR-PRO commented 2 weeks ago

Problem solution: 1) Log in to this telegram account from any device; 2) Close all sessions with the Pyrogram header 3) Recreate the session inside your bot (instead of a token, use a phone number in international format) 4) Disable proxy or use SOCKS5 instead of HTTP 5) Synchronize the system time on your computer

See also:

  1. https://github.com/shamhi/HamsterKombatBot/issues/309
  2. https://github.com/shamhi/HamsterKombatBot/issues/38
  3. https://github.com/shamhi/HamsterKombatBot/issues/58
  4. https://github.com/shamhi/HamsterKombatBot/issues/86
  5. https://github.com/shamhi/HamsterKombatBot/issues/137
  6. https://github.com/shamhi/HamsterKombatBot/issues/263