Der-Henning / tgtg

Scanner for Too Good To Go Notifications
https://github.com/Der-Henning/tgtg/wiki
GNU General Public License v3.0
360 stars 59 forks source link

getItem Error #24

Closed FedeGioz closed 2 years ago

FedeGioz commented 2 years ago

i continuously get this error spammed in the console, it is runned on ubuntu 20.4, without anything else, what do i need to do?

2021-11-09 21:26:21 ERROR getItem Error! - (<class 'models.errors.TgtgAPIError'>, TgtgAPIError(403, b'<html><head><title>apptoogoodtogo.com</title><style>#cmsg{animation: A 1.5s;}@keyframes A{0%{opacity:0;}99%{opacity:0;}100%{opacity:1;}}</style></head><body style="margin:0"><p id="cmsg">Please enable JS and disable any ad blocker</p><script>var dd={\'cid\':\'AHrlqAAAAAMAzmoEBc3lcScAD6HzYw==\',\'hsh\':\'1D42C2CA6131C526E09F294FE96F94\',\'t\':\'fe\',\'r\':\'b\',\'s\':35560,\'host\':\'geo.captcha-delivery.com\'}</script><script src="https://ct.captcha-delivery.com/c.js"></script></body></html>\n'), <traceback object at 0x7f210aea0f00>)

edit: i tried restarting the scanner and i get this, i dont changed anything both in the config and in tgtg account/app: 2021-11-09 21:37:42 INFO ____ ___ ____ ___ ____ ___ __ __ _ __ _ ____ ____ 2021-11-09 21:37:42 INFO (_ _)/ __)(_ _)/ __) / ___) / __) / _\ ( ( \( ( \( __)( _ \ 2021-11-09 21:37:42 INFO )( ( (_ \ )( ( (_ \ \___ \( (__ / \/ // / ) _) ) / 2021-11-09 21:37:42 INFO (__) \___/ (__) \___/ (____/ \___)\_/\_/\_)__)\_)__)(____)(__\_) 2021-11-09 21:37:42 INFO 2021-11-09 21:37:42 INFO Version 1.2.4 2021-11-09 21:37:42 INFO ©2021, Henning Merklinger 2021-11-09 21:37:42 INFO For documentation and support please visit https://github.com/Der-Henning/tgtg 2021-11-09 21:37:42 INFO 2021-11-09 21:37:42 INFO Loaded config from config.ini 2021-11-09 21:37:42 INFO Debugging mode enabled 2021-11-09 21:37:42 DEBUG Starting new HTTPS connection (1): apptoogoodtogo.com:443 2021-11-09 21:37:42 DEBUG https://apptoogoodtogo.com:443 "POST /api/auth/v1/loginByEmail HTTP/1.1" 403 475 2021-11-09 21:37:42 ERROR Configuration Error - Invalid TGTG configuration

Der-Henning commented 2 years ago

It seems the new 2-factor-auth is now required. At the moment there is no solution for this problem and I am working on it. Feel free to contribute any possible solitions and ideas.

FedeGioz commented 2 years ago

Ok thanks, anyway im not a developer so i can't help =( Thanks!

FedeGioz commented 2 years ago

The 2FA is sent to the device, if i create a new account with the api will it disable the 2FA?

Der-Henning commented 2 years ago

The new endpoints of the API are already well-known. The solution will be running the 2FA process on every start of the app. The app will create a request for the 2FA and ask for the code send to the mail address. The app will then continuously refresh the token. I will try to implement this process or an uprising better solution in the next days. But my time is very limited at the moment and this is not my prio one project. So please be patient.

Der-Henning commented 2 years ago

Update for new API 5b126b3 Release v1.3.0 should work again.