kacpi2442 / am_bot

Using the toogoodtogo and foodsi APIs to notify me via a Telegram bot for open offers
39 stars 19 forks source link

TypeError #25

Closed chrisfl92 closed 1 year ago

chrisfl92 commented 1 year ago

Always getting this error:

Traceback (most recent call last): File "/home/pi/git-repos/am_bot/watch_script.py", line 365, in refresh toogoodtogo() File "/home/pi/git-repos/am_bot/watch_script.py", line 173, in toogoodtogo api_response = tgtg_client.get_items( File "/usr/local/lib/python3.9/dist-packages/tgtg/init.py", line 240, in get_items self.login() File "/usr/local/lib/python3.9/dist-packages/tgtg/init.py", line 145, in login raise TypeError( TypeError: You must provide at least email or access_token, refresh_token, user_id and cookie

Although I successfully logged into my TGTG account and all the required values are provided at the config.json