-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Doesn't work, did TGTG change something? #17
Comments
Yeah, seems like to only allow the email flow with this "two factor" style :( Already started a discussion at the package I use: ahivert/tgtg-python#119 |
A difficult puzzle...😲would love to see a solution..but fear...the fun is over. Like this addon very much! |
Hopefully, someone is able to reverse engineer the authentification flow. Sadly not my main field of knowledge. But as this hurts all projects that used the api, regardless the language used, I hope there is someone out there with enough power and will to solve this 😉 |
other GitHub user with same issue. there was a node-js module posted with a fix. Maybe you can look to it? |
as far as i see this only fixes the fetch of items, not the login process. |
This was closed by the mentioned fix of the node-js module, afaik no fix for login, only for fetching items by adding some header. |
:( |
Then my last option: https://github.com/custom-components/alexa_media_player/wiki Those guys use 2FA also to connect to Amazon so your Alexa will work in HA. |
Yes, yay 🥳 Currently there is an PR by @Dielee in progress (#19), seems like this will be solved soon. |
I updated the bridge, and also the addon. As i am still blocked at TooGoodToGo, pls have a test :) |
Hi! Many thanks for @MaxWinterstein for an fast update! I've updated to the 1.9.0, but still I have this same problem with captcha 😭 What am I doing wrong? I had reinstall add-on, and nothing changed 😢 On phone TGTG app it is working fine after check Captcha. |
Thanks! The first run, showed unknown for the stock of all shops. Te second run...it shows the correct numbers of stock. Thanks again for solving this issue🥳🍾🙋♂️ |
Here updated as well. Log looks Good. Within first start I see the portions and pickup time coming back. Didn't start twice and no block. Thanks for the fast and great fix!! |
Maybe it is possible to fetch the captcha file ? |
I updated only the Addon and start it. Update bridge? That's inside the the Addon right? Here its working |
Yes, for most of us, also me, its working in 1.8.0. But some people are getting an captcha request.. From app or in the email, I don't now at this time. |
Maybe worth mentioning, as I guess I am not the only one: My dev machine, and also my iPhone, is ipv6 compatible and uses it to access TGTG and their services. The Addon, or any docker container without explicit config I guess, uses ipv4 to communitcate. @Dielee I think solving the captcha and passing the response cookie around should be the solution for this, but I am not sure how to archive this. |
NodeJS use ipv4 by default even if IPv6 is available. |
oh, at least that explains why I wasn't able to get the nodejs version to run also |
Version 1.9.0 of the add-on works for me! Thanks. Already have dinner for tonight. |
If you are interested in making nodejs working with ipv6 then take a look at this github issue: nodejs/node#6307 |
@MaxWinterstein is there also an link inside the mail ? Maybe the using an redirect url, like the most oauth. Then, there is an way to archive this. |
oh no way, neither do I speak nodejs, nor do I have any interest in ipv6 😄
I am not sure if we talk about the same thing? The Captcha is not linked to any mail? I played around with a flow already, see (see marklagendijk/node-toogoodtogo-watcher#112 (comment)) |
Maybe let's talk about this in a chat ? Gitter or Discord ? |
And it stopped working for me again. I think the end is close...sad🥺 |
encouraged the 404 here, too. Very strange. |
Maybe it is possible to use an Proxy to connect to tgtg servers ? |
Had some play with https://github.com/jundymek/free-proxy - that went so so... Most of those IPs are already 'blocked'. As the 404 issue now seems to persist I might have a try with the email verification flow (already build a tgtg-python here: https://github.com/MaxWinterstein/tgtg-python ), will see if I find some time |
Just to confirm @DarKOrange75 - my 1.9.0 integration is also dead again |
I merged the latest PR from @Dielee, now this plugin uses It even works again for me with ipv4 and ipv6! @DavyRoswinkel can you have a try? (docker image |
In the addon store I keep seeing version 1.9.0. Can you tell me how to update...to docker image 1.9.1? |
Ah, did not see you are using the add-on, my fault. Need to adjust it a little bit so the now saved tokens will persist across restarts. Sadly @Dielee did not provide a function to declare the storage position... 😙🎶 |
I quickly thew out version Please have a try ✌️ |
It logs me in.... The second run of the loop Looks like it works again!!!!! Thanks alot!! |
Could it be that if you failed the first login that it doesn't update the tokens if you try again? (New mail code is send) |
Skip my comment. I didnt read correct. I received emails :) |
I had this same. It have to click this button on email, when on LOGs you see "DEBUG Logging in with credentials". Time is a little short - about 1 minute. After that everything works!! It don't need to do this again after reboot HA machine. @MaxWinterstein Thank you!! Great Job! |
Installed a clear addon. Did action on email. And then i get a error:
|
Think you must be fast clicking that email, like @jablonski-pawel said. Saw that message too at one point. I might drop some big note and that part. |
Ok. I got the error because i open the email on my mobile. Then the TgTg app is opening. Now i open it on my computer and now its logged in and sensors are back! |
Good to know, should mention that! Will try to get some colored message there... |
Yep this indeed works! |
This issue is closed but it is still not working for me :-( Add-on: TooGoodToGo Home Assistant MQTT Bridge
|
Just a thought.... Are you using a password in the configuration? |
nope
No I reinstalled the add-on and the configuration does not have a password, just my email address |
That's correct. For me it works now. Don't know the solution for your problem. |
Can you please reopen the issue as it is not fixed for everybody? Or should I open a new one? |
I think a new issue works better, as it's a new version of the repo. |
@DarKOrange75 have you been running the old version before? Or a you a new user? At first lookthis seems like the common issue that your IP has been 'blocked' temporarily. Are you able to obtain a new IP address, e.g. by rebooting your Router? @DavyRoswinkel btw, Thanks for the pizza <3 |
@DarKOrange75 I experienced the same even with the latest version. @MaxWinterstein Thanks for the great work! |
@MaxWinterstein and @Vjpiet you are right, I have been running the previous version with the same user, I thought it was disable but was still running so my address/IP might have been blocked. Plus for some reasons my email server was not receiving/rejecting connection emails from tgtg. |
After few hours when it worked, I have this same problem - Captcha is back :/ I reinstalled app, and nothing changed 😢 |
That's been resolved since NodeJS v17. |
Add-on version: 1.8.0
You are running the latest version of this add-on.
System: Home Assistant OS 6.6 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2021.11.2
Home Assistant Supervisor: 2021.10.8
Log:
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:08:48] INFO: Copy setings file
[17:08:48] INFO: Strating Bridge
2021-11-09 17:08:56 1e14b3fb-tgtg-ha-mqtt-bridge main[308] INFO Connecting mqtt
2021-11-09 17:08:56 1e14b3fb-tgtg-ha-mqtt-bridge main[308] INFO Starting loop
2021-11-09 17:08:56 1e14b3fb-tgtg-ha-mqtt-bridge main[308] DEBUG Loop run started
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "toogoodtogo_ha_mqtt_bridge/main.py", line 158, in loop
if not check():
File "toogoodtogo_ha_mqtt_bridge/main.py", line 33, in check
shops = tgtg_client.get_items(page_size=400)
File "/usr/local/lib/python3.8/site-packages/tgtg/init.py", line 143, in get_items
self._login()
File "/usr/local/lib/python3.8/site-packages/tgtg/init.py", line 122, in _login
raise TgtgLoginError(response.status_code, response.content)
tgtg.exceptions.TgtgLoginError: (403, b'<title>apptoogoodtogo.com</title><style>#cmsg{animation: A 1.5s;}@Keyframes A{0%{opacity:0;}99%{opacity:0;}100%{opacity:1;}}</style>
Please enable JS and disable any ad blocker
<script>var dd={'cid':'AHrlqAAAAAMAVhKWux7Z960AU_cwAw==','hsh':'1D42C2CA6131C526E09F294FE96F94','t':'fe','r':'b','s':35694,'host':'geo.captcha-delivery.com'}</script><script src="https://ct.captcha-delivery.com/c.js"></script>\n')Didn't they change the way you login?
In their app you don't need a password, you will get a login link.
Maybe that is what caused this issue, but I could be wrong.
The text was updated successfully, but these errors were encountered: