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 #26

Closed pierozek89 closed 1 year ago

pierozek89 commented 1 year ago

Hi, I’m trying to get it work but I always get the same error. Config file is fulfilled with all the information

Error occured: (most recent call last): File "c:\Users\aprya\OneDrive\Pulpit\am_bot-main\watch_script.py", line 365, in refresh toogoodtogo() File "c:\Users\aprya\OneDrive\Pulpit\am_bot-main\watch_script.py", line 173, in toogoodtogo api_response = tgtg_client.get_items( File "C:\Users\aprya\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\tgtg__init.py", line 240, in get_items self.login() File "C:\Users\aprya\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-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

anaddon88 commented 1 year ago

Got the same issue. Did you resolve your problem?

e-potis commented 1 year ago

https://github.com/kacpi2442/am_bot/pull/24#pullrequestreview-1346218776

try these changes on your script: https://github.com/kacpi2442/am_bot/pull/24/files

anaddon88 commented 1 year ago

@e-potis It worked! Thanks a bunch!

kacpi2442 commented 1 year ago

Fixed in #24