shamhi / HamsterKombatBot

Bot that mines coins in HamsterKombat
Apache License 2.0
438 stars 130 forks source link

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

Closed GiuseppeRazzetto closed 2 weeks ago

GiuseppeRazzetto commented 2 weeks ago

2024-06-10 09:11:47 | ERROR | 106 - xxxxxx| 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":{"fingerprint":{"version":"4.2.1","visitorId":"e0143b...

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