-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Can't login: 403 Client Error: Forbidden for url: https://login.ford.com #488
Comments
Same issue here. Thought it was because I upgrade the Core, but it seems just bad timing. |
Same here, right after updating to 2024.5.2 (from 2024.5.1) |
Ok, so it is core related. |
I didn't change the core, I still have 2024.4.2 and I have the same error. |
Same issue on 2024.5.1 |
Hi, It is the same here, Ford must have changed something. |
Same issue here. |
Same here. I thought I got banned or something |
Same here in Germany with my Kuga. |
Since 2024.5.2 the FordPass integration cannot initalize anymore. Logfile says: "Error fetching fordpass data: Error communicating with FordPass for vin number" |
Issue isn't core, it's on Fords side for this one. Maybe it will resolve itself? Or maybe some tweaks will need to be made. |
Same issue here, started around 9:31AM eastern. |
Hi! The error I get in the log starting today is below. Thanks for any idea. [139683214187072] 403 Client Error: Forbidden for url: https://login.ford.com/GUID-REMOVED/B2C_1A_SignInSignUp_EN-GB/SelfAsserted?tx=StateProperties=eyJUSUQiOiIxY2ZkMGNhZS1iMWQ1LTQ3ZTQtYTc1Yi1jNjMwZDUyOTEyOGIifQ&p=B2C_1A_SignInSignUp_en-AU |
Same issue for me in Italy with a Ford Puma. Can't login. |
Have not updated anything HA related in a month. On Core 2024.4.3. Got this error today. Can't be HA related. |
Same here, can't login as of 5-7-2024 |
Looks like an API change to the login flow. Will try and take a look later today. In the meantime I recommend people disable the integration in HA until I can fix it :) |
Still running core 2024.1.6 and having the same issue |
Working again for me in Australia. Entities became available about 90 minutes ago without a HA restart. |
Not working here yet. |
I also noticed that the official FORDPASS app now shows some details that were previously unavailable/removed:
|
Initial looks it seems Ford have enabled Akamai Bot Manager in a fairly aggressive mode to prevent people calling the API Login from tools other than Fords own app. This probably isn't going to be a quick fix. It does look like they have officially launched their developer api that people could use but only available in Northern America and severely limited so I'm unable to test or implement that. Will keep playing and seeing if there's away round it. |
@itchannel The new FordPass Connect API in the developer program does have feature parity according to the Ford team in charge of it. The only difference is that anyone who wants to use it must register their FordPass account to use it and prevent lockouts. The Ford team has been attempting to reach out to you to get this functional / supported. |
You say only available in North America, in fact the website specifies only available in the US, so not even Canada! If the Ford team is really trying to reach out to you though, absolutely take this opportunity! That's exactly what we've been waiting for! Anything they can do to help make this official would go a very long way to helping all of us. |
^ The Ford team is. I don't speak for them, however my interactions with the team is that they do want to enable this type of functionality but also balance security concerns and legal concerns. The developer program is new, which is why it's US only right now. I am sure that will change over time. |
I signed up for a dev account, put n/a for company, and was poking around. From https://developer.ford.com/use-cases/connect-ford-to-daily-tracking-apps it says that the FordConnect API is available globally except for China. You can connect your dev account to Fordpass account and get API creds. |
Are you able to log in to the fordpass integration with those creds or does it require a different login URL? |
That's the tracking API only, that doesn't include things like unlocking or locking, remote start, etc. Scroll to the bottom of that page that you linked and will show the actual connect API separate and listed as USA only |
That is the problem a lot of us in North America have been having. Seems to be less of an issue overseas. I eventually got it to work but I'm not entirely sure what the secret sauce was or if it was just luck. If you want to try what I did then see my previous post HERE. NOTE: Ignore the part of that post about my sensors being messed up as you'll see in a subsequent post that itchannel fixed that by updating the sensor.py in the 1.70 code and then all my sensor issues were fine. In that post I did not specify what I modified in fordpass_new.py but it was this block of code at line 37:
I just did that so it lined up with const.py changes I made that were recommended by the previous poster I quoted. Again, I have no idea if it was those code changes, or my changing my edge dev mode to emulate a mobile device or if it was sheer dumb luck that it worked that particular time. Sorry I wasn't more scientific and methodical with my changes. It could also just be the fact that I'd had the integration disabled for a few days before I tried again (maybe I was soft banned from when it was failing/retrying over and over.) It seems they are using akamai and/or azure front door and probably web application firewalls now to screen incoming traffic. It's unclear if they are actively trying to block these kinds of 3rd party things or what but such abuse filtering/DDOS mitigation systems can be very touchy and picky about what traffic they accept from where and the user-agent strings and url formulations that they expect to see or the number of requests, etc. It might be very subtle changes that make it work. Overall though unless they make drastic changes to their mobile app it's just a matter of all of us figuring out the secret sauce since most mobile apps just use embedded mobile browser windows to do the logins and get OAUTH tokens so ultimately it should be pretty difficult for them to block it entirely. I think it'll take a lot of users in the trouble regions testing and reporting back as to what they changed to get it working before the devs can be sure what specifically that secret sauce is. All that while there's no guarantee that Ford isn't also making constant changes on their end. |
If it ain't broke don't touch it! |
I'm in Canada also and I managed to get it to work with the following edits:
In theory,
I downloaded the zip file for 1.70, extracted it, copied the fordpass folder into /config/custom_components/ (replace=yes), edited as above, restarted HA and then followed https://github.com/itchannel/fordpass-ha/wiki/Obtaining-Tokens-(As-of-25-05-2024) to get the magic fordapp://... token URL to enter when setting up the integration. |
what do i do if the link provided by the integration isnt a valid link ? |
how did you get the region_lookup id's for that regions/countries? |
Just to clarify. However, If 1.68 is currently working for you its recommend staying on it for now. I'm going to open a new "issue" related to 1.70 specifically and provided its okay, probably close this one. |
Not sure what do you mean by this:
I'm on v1.68 and the most recent data the integration has retrieved from Ford servers is from 23th May. |
Okay, I think I got confused. There was this comment on the fordpass_new.py for 1.69, which may have fixed this 1.68 issue.
I was really meaning 1.68 with modified You just need to ensure you copy your token file prior to restarting HA. |
Thanks, I made those changes, still had the same error using Brave browser. I then tried an incognito Chrome window and it worked! |
Thank you. Edit: After further attempts to send service call, it refreshed car data. |
Hello! The European login (IE), does not work from Hungary in 1.70: Hungary local: Regions in const.py "Hungary": { in fordpass_new.py : region_lookup = {
elif self.region2 == "Hungary": At the moment, I've made it this far, but after copying the returned token: unknown error I'll try to find out the reason as time permits! |
You have to right click on the token and copy it. |
Hello! I copied,token character chain, and paste to home assistant ford integration login page, and after click on the next button, the integrations answer unknow error. |
Tried this on a US login and still get an error.... |
Cant login either, US server |
is this plugin dead? |
No, not when you use the workaround. All good since
Thanks
Martyn
…________________________________
From: nexusis7 ***@***.***>
Sent: Tuesday, June 11, 2024 5:14:54 PM
To: itchannel/fordpass-ha ***@***.***>
Cc: nytram-md ***@***.***>; Comment ***@***.***>
Subject: Re: [itchannel/fordpass-ha] Can't login: 403 Client Error: Forbidden for url: https://login.ford.com (Issue #488)
is this plugin dead?
—
Reply to this email directly, view it on GitHub<#488 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANHZVQETOTZ6KVBUSHLSS2LZG4A55AVCNFSM6AAAAABHLB227CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRQHA3TQNJYGI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
which workaround? can you provide the one that works please. i edited the const.py and newpass file, it didnt do the trick |
I followed upgraded to 1.70 further up and then logged in at ford.com website and got the key from developer tab as per instructions 👍
Thanks
Martyn
…________________________________
From: pdecker414 ***@***.***>
Sent: Tuesday, June 11, 2024 10:11:29 PM
To: itchannel/fordpass-ha ***@***.***>
Cc: nytram-md ***@***.***>; Comment ***@***.***>
Subject: Re: [itchannel/fordpass-ha] Can't login: 403 Client Error: Forbidden for url: https://login.ford.com (Issue #488)
No, not when you use the workaround. All good since Thanks Martyn
…
which workaround? can you provide the one that works please. i edited the const.py and newpass file, it didnt do the trick
Try looking here. I followed the information and got mine working in NA
#509<#509>
—
Reply to this email directly, view it on GitHub<#488 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANHZVQHGSODXBS46DK425ULZG5DWDAVCNFSM6AAAAABHLB227CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRRGQZTONZRGU>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I've tried the work around - are you talking the one with modifying the py file? Also are you US? |
I am in US and followed the instructions. Be sure you follow everything and you will need to get more files than just the py file. I pretty much got all 1.70 files and replaced ones I had on my system. Then followed instructions at listed above. |
Hi all. I followed the process to install 1.70. |
Is there a timeframe on pushing a non-workaround version to HACS? Just weighing whether I make the effort or not. |
I tried more then one time. But the workaround doesn’t work for me in Germany. Also the provided URL doesn’t load. |
I haven't had any time to look into, update, or respond to anything, and I'm sure itchannel is also very busy. However, please keep in mind we are both working on this for free and in our, very limited, spare time. |
Not complaining at all. In awe of the work everyone does on this project. I was just asking if there was a general idea of when it might be done. 1 month, 6 months, a year? |
So I decided to try this again. I removed the integration, rebooted, installed again from HACS with 1.68 and then unzipped the files from 1.70 overwriting everything. Went and added fordpass, picked US and followed the instructions again for gettign the token. It worked this time. Not sure if something on Ford's end changed from a few weeks back, but it sure didn't work before. If you've had failures before, try again, the procedure works for this US user. |
2024-05-07 15:47:24.506 WARNING (MainThread) [custom_components.fordpass] 403 Client Error: Forbidden for url: https://login.ford.com/xxxxxxxxxxxxxxxxxxx/B2C_1A_SignInSignUp_EN-GB/SelfAsserted?tx=StateProperties=xxxxxxxxxxxxxxxxxxx&p=B2C_1A_SignInSignUp_en-AU
2024-05-07 15:47:24.506 WARNING (MainThread) [custom_components.fordpass] Error communicating with FordPass for xxxxxxxxxxxxxxxxxxx
2024-05-07 15:47:24.506 WARNING (MainThread) [custom_components.fordpass] Returning Stale data to prevent unavaliable status
2024-05-07 15:47:24.507 ERROR (MainThread) [custom_components.fordpass] Error fetching fordpass data: Error communicating with FordPass for xxxxxxxxxxxxxxxxxxx
Ford changed things again?
The text was updated successfully, but these errors were encountered: