-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Seventeentrack "Invalid username and password provided" #19020
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
Comments
The error you see is thrown if the API reported a login error. Try it with quotes, just to be sure. |
Yeah same error with e 8000 mail and password quoted. |
Try running the example script that comes along with
Post your results here (feel free to remove individual tracking numbers if desired). |
The output of that script is below:
EDIT: I get the feeling this is because 17track sometimes asks for a captcha. Their page might return 'incorrect username/password' when you don't supply a captcha response when it asks. But I'm guessing. EDIT AGAIN: I have just tried the same on a machine that's not headless, so that I can log in on the same machine first. Unfortunately I get the same thing, and printing the raw response from the login request is:
|
I just updated From within the
Thanks for the debugging help! |
Hi again, Here's the output, it doesn't show much else =(
|
This is interesting:
You've for certain logged into the website (past the CAPTCHA) a few times before trying this? |
Yep, what I did just now to be sure was log out on the website, then copy-paste my login details from example.py into the login form (at https://user.17track.net/en). The login succeeded, and I just ran example.py again with the same result. Do you have a 17track account and this is working for you? EDIT: Just for fun I tried setting my laptop's user agent for aiohttp client. Didn't help. |
Very strange. Unfortunately, without having access to your username and password, there's not much more I can do to debug. If you would feel comfortable sharing those credentials with me, hit me up on Discord. |
Hi again – following up on our Discord chat. Thanks for your patience. Today, I ran
...which seems consistent with your account (i.e., no packages were there). If you run |
Hahahahaha. Ok that did work for me, and that triggered a hilarious/infuriating chain of events. Since the password I gave you worked, I decided to change the password back to the original one I sent. I happened to read their password requirements:
My original password was 20 characters. So the website would accept it, but the API wouldn't. Aaaand - you guessed it - if I delete 4 characters off my password in example.py, suddenly everything works. Yes, I was able to set my 20 char password again right below that message about the 16 char limit. I'm now a little concerned since either:
I think we can close this now but we should probably update the docs to really stress that longer passwords won't work. Thanks again for all your help. |
WOW... That's a new one. 😆 Thanks for helping. I'll get a doc PR opened up. |
Uh oh!
There was an error while loading. Please reload this page.
Home Assistant release with the issue:
0.83.3
Last working Home Assistant release (if known):
None
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
https://www.home-assistant.io/components/sensor.seventeentrack/
Description of problem:
This component reports "Invalid username and password provided" even though the user details are definitely correct.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):The configuration above is in a "sensors.yaml" file alongside a large number of other sensors that are operating correctly. Info that may be relevant:
The text was updated successfully, but these errors were encountered: