Skip to content
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

Installation / Login Error (Status Code 400 when fetching data) #59

Open
essayen opened this issue Jun 16, 2024 · 5 comments
Open

Installation / Login Error (Status Code 400 when fetching data) #59

essayen opened this issue Jun 16, 2024 · 5 comments

Comments

@essayen
Copy link

essayen commented Jun 16, 2024

Hello,

I have tried to install the latest version of this integration (0.8.2) on my home assistant:

Core 2024.6.3
Supervisor 2024.06.0
Operating System 12.3
Frontend 20240610.1,

after some time (I guess after a timeout occurs) the installation finishes, but on the integrations page I only see the integration (no entities). The logfiles shows the following entries:

2024-06-16 17:14:36.106 DEBUG (SyncWorker_9) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/settings 2024-06-16 17:14:36.106 DEBUG (SyncWorker_9) [weconnect_cupra] {"settings": {"maxChargeCurrentAC": "maximum", "carCapturedTimestamp": "2024-06-16T12:37:36Z", "autoUnlockPlugWhenCharged": "off", "targetSoc_pct": 80, "batteryCareModeEnabled": true, "batteryCareTargetSocPercentage": 80}} 2024-06-16 17:14:36.327 DEBUG (SyncWorker_9) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/status 2024-06-16 17:14:36.327 DEBUG (SyncWorker_9) [weconnect_cupra] {"status": {"battery": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "currentSOC_pct": 67, "cruisingRangeElectric_km": 366}, "charging": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "chargingState": "notReadyForCharging", "chargeType": "invalid", "chargeMode": "off", "chargingSettings": "default", "remainingChargingTimeToComplete_min": null, "chargePower_kW": 0.0, "chargeRate_kmph": 0.0}, "plug": {"carCapturedTimestamp": "2024-06-16T12:37:41Z", "plugConnectionState": "connected", "plugLockState": "locked", "externalPower": "unavailable"}}} 2024-06-16 17:14:36.499 DEBUG (SyncWorker_5) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/settings 2024-06-16 17:14:36.499 DEBUG (SyncWorker_5) [weconnect_cupra] {"settings": {"maxChargeCurrentAC": "maximum", "carCapturedTimestamp": "2024-06-16T12:37:36Z", "autoUnlockPlugWhenCharged": "off", "targetSoc_pct": 80, "batteryCareModeEnabled": true, "batteryCareTargetSocPercentage": 80}} 2024-06-16 17:14:36.565 ERROR (SyncWorker_9) [weconnect_cupra] Failed to retrieve data for VIN XXXX: Could not fetch data. Status Code was: 400 2024-06-16 17:14:36.565 ERROR (SyncWorker_9) [weconnect_cupra] Could not fetch data. Status Code was: 400 2024-06-16 17:14:36.566 DEBUG (MainThread) [custom_components.cupra_we_connect] Finished fetching cupra_we_connect data in 1.048 seconds (success: True) 2024-06-16 17:14:36.671 DEBUG (SyncWorker_5) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/status 2024-06-16 17:14:36.671 DEBUG (SyncWorker_5) [weconnect_cupra] {"status": {"battery": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "currentSOC_pct": 67, "cruisingRangeElectric_km": 366}, "charging": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "chargingState": "notReadyForCharging", "chargeType": "invalid", "chargeMode": "off", "chargingSettings": "default", "remainingChargingTimeToComplete_min": null, "chargePower_kW": 0.0, "chargeRate_kmph": 0.0}, "plug": {"carCapturedTimestamp": "2024-06-16T12:37:41Z", "plugConnectionState": "connected", "plugLockState": "locked", "externalPower": "unavailable"}}} 2024-06-16 17:14:36.748 DEBUG (SyncWorker_1) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/settings 2024-06-16 17:14:36.748 DEBUG (SyncWorker_1) [weconnect_cupra] {"settings": {"maxChargeCurrentAC": "maximum", "carCapturedTimestamp": "2024-06-16T12:37:36Z", "autoUnlockPlugWhenCharged": "off", "targetSoc_pct": 80, "batteryCareModeEnabled": true, "batteryCareTargetSocPercentage": 80}} 2024-06-16 17:14:36.874 DEBUG (SyncWorker_3) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/settings 2024-06-16 17:14:36.874 DEBUG (SyncWorker_3) [weconnect_cupra] {"settings": {"maxChargeCurrentAC": "maximum", "carCapturedTimestamp": "2024-06-16T12:37:36Z", "autoUnlockPlugWhenCharged": "off", "targetSoc_pct": 80, "batteryCareModeEnabled": true, "batteryCareTargetSocPercentage": 80}} 2024-06-16 17:14:36.977 DEBUG (SyncWorker_1) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/status 2024-06-16 17:14:36.977 DEBUG (SyncWorker_1) [weconnect_cupra] {"status": {"battery": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "currentSOC_pct": 67, "cruisingRangeElectric_km": 366}, "charging": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "chargingState": "notReadyForCharging", "chargeType": "invalid", "chargeMode": "off", "chargingSettings": "default", "remainingChargingTimeToComplete_min": null, "chargePower_kW": 0.0, "chargeRate_kmph": 0.0}, "plug": {"carCapturedTimestamp": "2024-06-16T12:37:41Z", "plugConnectionState": "connected", "plugLockState": "locked", "externalPower": "unavailable"}}} 2024-06-16 17:14:37.115 DEBUG (SyncWorker_3) [weconnect_cupra] Retrieved data from url: https://ola.prod.code.seat.cloud.vwgroup.com/vehicles/XXXX/charging/status 2024-06-16 17:14:37.115 DEBUG (SyncWorker_3) [weconnect_cupra] {"status": {"battery": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "currentSOC_pct": 67, "cruisingRangeElectric_km": 366}, "charging": {"carCapturedTimestamp": "2024-06-16T12:37:38Z", "chargingState": "notReadyForCharging", "chargeType": "invalid", "chargeMode": "off", "chargingSettings": "default", "remainingChargingTimeToComplete_min": null, "chargePower_kW": 0.0, "chargeRate_kmph": 0.0}, "plug": {"carCapturedTimestamp": "2024-06-16T12:37:41Z", "plugConnectionState": "connected", "plugLockState": "locked", "externalPower": "unavailable"}}} 2024-06-16 17:14:37.155 ERROR (SyncWorker_1) [weconnect_cupra] Failed to retrieve data for VIN XXXX: Could not fetch data. Status Code was: 400 2024-06-16 17:14:37.155 ERROR (SyncWorker_1) [weconnect_cupra] Could not fetch data. Status Code was: 400 2024-06-16 17:14:37.156 DEBUG (MainThread) [custom_components.cupra_we_connect] Finished fetching cupra_we_connect data in 1.636 seconds (success: True) 2024-06-16 17:14:37.165 ERROR (SyncWorker_5) [weconnect_cupra] Failed to retrieve data for VIN XXXX: Could not fetch data. Status Code was: 400 2024-06-16 17:14:37.165 ERROR (SyncWorker_5) [weconnect_cupra] Could not fetch data. Status Code was: 400 2024-06-16 17:14:37.166 DEBUG (MainThread) [custom_components.cupra_we_connect] Finished fetching cupra_we_connect data in 1.647 seconds (success: True) 2024-06-16 17:14:37.320 ERROR (SyncWorker_3) [weconnect_cupra] Failed to retrieve data for VIN XXXX: Could not fetch data. Status Code was: 400 2024-06-16 17:14:37.320 ERROR (SyncWorker_3) [weconnect_cupra] Could not fetch data. Status Code was: 400 2024-06-16 17:14:37.321 DEBUG (MainThread) [custom_components.cupra_we_connect] Finished fetching cupra_we_connect data in 1.802 seconds (success: True)

@Boran
Copy link

Boran commented Aug 11, 2024

Did you find a solution?

My cupra was working fine for months and broke about a week ago.
I used HACS to upgrade to the latest version 0.8.4, and reconnected to weconnect.
AndroiD app works fine, connection to https://seatid.vwgroup.io/account also.

But in HA I get a 400 too, similar to your logs.

2024-08-11 22:20:16.876 ERROR (SyncWorker_4) [weconnect_cupra] Failed to retrieve data for VIN XXXX: Could not fetch data. Status Code was: 400

Also I enabled debug logging on the config/integrations/integration/cupra_we_connect page but dont get more details than this.

@essayen
Copy link
Author

essayen commented Aug 12, 2024 via email

@Boran
Copy link

Boran commented Aug 15, 2024

"I uninstalled the integration, logged out of the cupra app
on my phone, uninstalled the app there, reinsalled and logged into the app
there and the tried the integration in HA again."

Hmm, tried all that. All my entities are gone now :-). Also upgraded HA .
Logs as before:
Logger: weconnect_cupra
Source: /usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/api.py:73
Last logged: 10:50:40 PM
Failed to retrieve data for VIN XXXX: Could not fetch data. Status Code was: 400

Core
2024.8.1
Supervisor
2024.08.0
Operating System
13.0
Frontend
20240809.0

@tinyoverflow
Copy link

I have the exact same issue with my Formentor. As this package depends on the WeConnect-Cupra-python library, isn't this something that has to be reported there?

@Yorkie71
Copy link

Yorkie71 commented Sep 6, 2024

I have the exact same issue with my Formentor. As this package depends on the WeConnect-Cupra-python library, isn't this something that has to be reported there?

I was under the impression that this integration only supported the Born or at least had only been tested on the Born as I know the dev pulled this from the ID.3 Connect integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants