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

422 Unknown error while getting Profile Data: message='Unprocessable Entity' #38

Closed
tancyit3 opened this issue May 21, 2024 · 1 comment

Comments

@tancyit3
Copy link

tancyit3 commented May 21, 2024

Раз в час вылазит ошибка -

Unknown error while getting Profile Data: 422, message='Unprocessable Entity', url=URL('https://api.hamsterkombat.io/clicker/sync')
Sleep for 3 min(180 sec)
Unknown error: 'NoneType' object has no attribute 'get'
AUTO_UPGRADE=False
APPLY_DAILY_ENERGY=True
APPLY_DAILY_TURBO=False

При этом после этого всё работает стабильно, после этого ровно через час снова такая ошибка. Как понимаю связано как то с -

if time() - access_token_created_time >= 3600:
profile_data = await self.get_profile_data(http_client=http_client)

В кодинге не шарю, поэтому хотел спросить из-за чего и нормально ли это?

@ButCheR-PRO ButCheR-PRO changed the title error sync 422 422 Unknown error while getting Profile Data: message='Unprocessable Entity' Jun 6, 2024
@ButCheR-PRO
Copy link
Collaborator

ButCheR-PRO commented Jun 6, 2024

Решения проблем:

  1. Зайдите в этот аккаунт телеграмм с любого устройства;
  2. Закройте все сессии с заголовком Pyrogram
  3. Пересоздайте сессию внутри вашего бота (вместо токена используйте номер телефона в международном формате)
  4. Отключите прокси или используйте SOCKS5 вместо HTTP
  5. Синхронизируйте системное время на компьютере

Смотрите так же:

  1. [Возможный фикс (не кода)] ошибок 406 и 422 message='Unprocessable Entity' #309
  2. 422 Unknown error while getting Profile Data: message='Unprocessable Entity' #38
  3. 102 Unknown error while getting Access Token: Unprocessable Entity #58
  4. 422 Unknown error while getting Access Token Unprocessable Entity, NoneType pbject has no attribute - Проблема с PROXY.  #86
  5. Не работает авторизация через токен bot - Unknown error while getting Access token 422: Unprocessable Entity #137
  6. Unknown error while getting Access Token: 422, message='Unprocessable Entity' #263

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

2 participants