You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to use CLI with generated captcha token for a several times and it's working properly.
Now I try to use bimmer_connected in a python script, I've used example from the documentation:
import asyncio
import os
from dotenv import load_dotenv
from bimmer_connected.account import MyBMWAccount
from bimmer_connected.api.regions import Regions
# Load environment variables
load_dotenv()
# Get credentials from environment variables
USERNAME = os.getenv('BMW_USERNAME')
PASSWORD = os.getenv('BMW_PASSWORD')
HCAPTCHA_TOKEN = os.getenv('BMW_HCAPTCHA_TOKEN')
VIN = 'myvin :)'
async def main():
# hcaptcha_token is only required for the first login, see the captcha documentation
account = MyBMWAccount(USERNAME, PASSWORD, Regions.NORTH_AMERICA, hcaptcha_token=HCAPTCHA_TOKEN)
await account.get_vehicles()
# vehicle = account.get_vehicle(VIN)
#print(vehicle.brand, vehicle.name, vehicle.vin)
# result = await vehicle.remote_services.trigger_remote_light_flash()
# print(result.state)
asyncio.run(main())
I am still getting the error: bimmer_connected.models.MyBMWAuthError: HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method).
credentials are ok, captcha as well - I've tested if the are properly read from .env file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
I've tried to use CLI with generated captcha token for a several times and it's working properly.
Now I try to use bimmer_connected in a python script, I've used example from the documentation:
I am still getting the error:
bimmer_connected.models.MyBMWAuthError: HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
.credentials are ok, captcha as well - I've tested if the are properly read from .env file.
What can I do to fix it?
Beta Was this translation helpful? Give feedback.
All reactions