-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Login Issue #219
Comments
hello same problem here |
turn of the add-on. (wait 30 min to be sure) reboot and you should receive an email when you have boot on start up enabled for the add-on. |
Still having trouble keeping it up and running... |
Little update: If I check regularly the app itself, from time to time I first get a screen that checks something like the captcha but I can't remember what it says. I'm gonna try to take a screenshot next time. |
When I'm at home, I can't do that outside without having my home IP adress! |
I got the 403 error too. |
I removed some code that stored a cookie by datadome, if I remember it correctly. I thought this was already handled within the upstream library, or superfluous at least. I will have a second look at this, it might be an good explanation for it. Maybe I wrote something about that cookie in my traffic analysis with mitm proxy I did back then. Fingers crossed I find some time these days 🤞 |
It seems like the datadome cookie thing was in fact merged in the upstream tgtg repo (seems like I was involved in it, too 😄 ahivert/tgtg-python@ee19450 ) It seems like datadome, the company used by tgtg to prevent bad guys doing bad things on their API, got more restrictive I guess. There are multiple related issues out there:
I had some little play with the API, and ended in the well known
Which also blocked the whole Android APP on my phone as well. I might need to wait a little bit to get unblocked again, or nuke half my network to get a new IP, and have a fresh look at the traffic between the app and and API. Tricky situation. |
Small update: I digged around with After solving, the token and datadome cookie seem to be 'transportable', at least a small curl -H 'content-type: application/json' -H 'accept: application/json' \
-H 'authorization: Bearer <myBearer>' --compressed \
-H 'user-agent: TooGoodToGo/24.12.0 (34781) (iPhone/iPhone 8; iOS 16.7.10; Scale/2.00/iOS)' \
-H 'cookie: datadome=<myCookie>' -X POST https://apptoogoodtogo.com/api/item/v8/18214 \
-d '{"origin":{"longitude":<myLong>,"latitude":<myLat>}}' worked as expected. I am not that deep into captcha solving / bypassing, but this seems nice to read - even though its made by a company selling 'bybassing' stuff: https://www.zenrows.com/blog/datadome-bypass#reverse-engineering-antibots As my local dev version works fine, even with a token and cookie that was some days old, and finely refreshed the token, I guess having a valid one might work for a few days - or more. What might work: Enhance the login with some interactive captcha solving. Solving it manually is fine I guess. Maybe this can be wrapped with some selenium magic, I an not really into that kind of stuff. |
A lot is just Chinese for me, but I have faith in you! :-) |
Hi everyone, I'm new here and trying to catch up with the current situation regarding the TGTG API and login challenges. So far, I’ve attempted the following steps: Tried using the API directly, but it wouldn’t allow me to log in, redirecting me to a CAPTCHA page instead. I wanted to ask: |
Before finding this repository I implemented something similar with the same python package. Overall the implementation was more or less the same - just way simpler. Back then I had similar issues when fetching too many shops too fast. So I added a delay between each |
Is there any progress on this issue? |
The only way I can keep it "working" is to open the app on the phone when I'm home, so then I have the same IP address. Edit: |
I have never seen something in the TGTG app on my iPhone when the captcha message is showing in the log. |
@HanBarn I was refreshing in my favorite list so much because I'm waiting for one to come up and suddenly I get a screen to check if I'm human. So refreshing a lot in the app does that too for me. And I mean a lot, like for 5 min non stop... |
Allright, that makes sense if you use the TGTG a lot to check if there will be a box available for you. |
New problem I think... I restarted and this is what I get: |
Yes. |
It looks like there is a fix in the TGTG API client. See this: |
will have a deeper look later on, but at first peek it seems not to fix the login flow stuff, just the refresh endpoint for existing ones |
@MaxWinterstein |
@wenzet this should be fixed with the release I just did a few moments ago (just here, TGTG Addon needs to be released, hope to get this done today) The main dependency Those 4 hours are hardcoded here: |
Hi All
I am having an issue with TGTG login. Previously I would receive the TGTG email and open the link on a device without the app and everything works as expected. However since installing the last update this no longer seems to work. Clicking the TGTG link opens the web browser and show the standard message that sign is has been successful but then I continue to get the emails asking me to login.
When I check the add ons log it shows the below error which makes it looks like a captcha is stopping the add on login.
TgtgLoginError(response.status_code, response.content)
tgtg.exceptions.TgtgLoginError: (403, b'{"url":"https://geo.captcha-delivery.com/captcha/
Appreciate any help you might be able to offer.
Thanks
The text was updated successfully, but these errors were encountered: