itchannel/fordpass-ha

403 Client Error: Forbidden for url (Redirecting U.S. sign-ins to Australia?)

Closed this issue · 13 comments

With all the caveats of late, things have been working fine until today - then I had the well-documented error fetching ford pass data (with the usual "Error communicating with FordPass for ")

Naturally, this also included the "Returning Stale data to prevent unavailable status" error, which is to be expected for the first.

I've since disabled the integration as per recommendations here. Prior to that, I did try erasing and re-logging into the integration and got an interesting error.

Despite selecting the correct country (USA) and entering my known-good credentials (Ford's portal and smartphone app continue to work), I saw this error:

`This error originated from a custom integration.

Logger: custom_components.fordpass
Source: custom_components/fordpass/init.py:228
integration: Fordpass (documentation, issues)
First occurred: 3:08:04 PM (13 occurrences)
Last logged: 3:12:05 PM

403 Client Error: Forbidden for url: https://login.ford.com.au/4566605f-43a7-400a-946e-89cc9fdb0bd7/B2C_1A_SignInSignUp_EN-AU/SelfAsserted?tx=StateProperties=eyJUSUQiOiIwMmEyNDhkMi1lMDBkLTRlMWQtYWU2ZC0zMTU3N2U5ZWRlMGMifQ&p=B2C_1A_SignInSignUp_EN-AU
`

I tried it a few times to see if it would work - and to confirm that I'd selected the correct integration. I'm wondering if some redirects are happening in the backend?

I'm based in the EU and the integration is also not working for me since yesterday. Similar, but not the same error. Note that the URL is not .au, but .ie in my case.

Logger: custom_components.fordpass
Source: custom_components/fordpass/init.py:228
integration: Fordpass (documentation, issues)
First occurred: May 16, 2024 at 8:12:51 PM (514 occurrences)
Last logged: 8:31:58 AM

403 Client Error: Forbidden for url: https://login.ford.ie/4566605f-43a7-400a-946e-89cc9fdb0bd7/B2C_1A_SignInSignUp_EN-IE/SelfAsserted?tx=StateProperties=eyJUSUQiOiI0MDQ2NjNkZS04MDVmLTQxMDYtYTNjZS1hNzJlMTBjMjhlMGUifQ&p=B2C_1A_SignInSignUp_EN-IE

Same here Thailand, 403 since today

Same here in the Netherlands, fordpass app self is working.

Similar here in Canada... can no longer register the integration with my credentials...

+1 for US

So this will just be linked to issue #488 then...

I'm based in the EU and the integration is also not working for me since yesterday. Similar, but not the same error. Note that the URL is not .au, but .ie in my case.

Logger: custom_components.fordpass Source: custom_components/fordpass/init.py:228 integration: Fordpass (documentation, issues) First occurred: May 16, 2024 at 8:12:51 PM (514 occurrences) Last logged: 8:31:58 AM

403 Client Error: Forbidden for url: https://login.ford.ie/4566605f-43a7-400a-946e-89cc9fdb0bd7/B2C_1A_SignInSignUp_EN-IE/SelfAsserted?tx=StateProperties=eyJUSUQiOiI0MDQ2NjNkZS04MDVmLTQxMDYtYTNjZS1hNzJlMTBjMjhlMGUifQ&p=B2C_1A_SignInSignUp_EN-IE

I'm in Denmark and mine also tries to log in to ford.ie and fails ...

Suddenly it's working for me again here in the Netherlands

I changed const.py to:

REGIONS = {
    "UK&Europe": {
        "region": "1E8C7794-FF5F-49BC-9596-A1E0C86C5B19",
        "locale": "DA-DK",
        "locale_short": "DNK", #Temp fix 
        "locale_url": "https://login.ford.dk"
    },

And now it works for Denmark. (I accidentally put the wrong locale_short ISO 3166 country code at first) ...

Same issue, got so excited, i had two days of using Siri to start my truck..

I give up - it stopped working again for some reason, after I updated to Home Assistant Core 2024.5.4 ;P

I give up - it stopped working again for some reason, after I updated to Home Assistant Core 2024.5.4 ;P

Same here💀

Happy to close this as looking through the code base I can now see that the Australian URL was used as a temporary fix.

I apologize to @itchannel - I really SHOULD have read the code before submitting the bug report. I'm going to close this as it appears to be an ongoing issue (see #488 ) and we don't need duplicate errors.

Sorry everyone. My bad.