node-toogoodtogo-watcher: Error

Hello,

I’ve got the following error:

HTTPError: Response code 403 (Forbidden)
    at Request.<anonymous> (/usr/local/lib/node_modules/toogoodtogo-watcher/node_modules/got/dist/source/as-promise/index.js:117:42)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Could you help? All was working fine till today evening 😦

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Hi all. Sorry for the confusion. That patch was not finished code, I posted it in the hopes that somebody else would finish it. I know nothing about NodeJS 😃 But here’s a PR that’s clumsy but complete: https://github.com/marklagendijk/node-toogoodtogo-watcher/pull/123

If you still have an old refresh token, it might work immediately. Otherwise you have to request a login email with node index.js login and follow the instructions.

Note, if you have a custom User-Agent header configured in your config (perhaps as a past work-around), you probably need to remove it again.

That’s normal, they changed their authent. method… they send you an unique digit code as password… I tried to intercept the post request but they’re using SSL pinning on their android app 😕 it’s gonna take more time to bypass…

I have this same:

Error during request: POST https://apptoogoodtogo.com/api/auth/v2/loginByEmail { “device_type”: “IOS”, “email”: “xxxxxxx”, “password”: “xxxxxxxx” } HTTPError: Response code 403 (Forbidden) at Request.<anonymous> (/home/node/app/node_modules/got/dist/source/as-promise/index.js:117:42) at processTicksAndRejections (internal/process/task_queues.js:95:5)