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

Unexpected error creating the API #90

Closed
smbunn opened this issue Jan 13, 2024 · 9 comments
Closed

Unexpected error creating the API #90

smbunn opened this issue Jan 13, 2024 · 9 comments

Comments

@smbunn
Copy link

smbunn commented Jan 13, 2024

I can open the link https://polestarid.eu.polestar.com/PolestarLogin/login to my account just fine. However when I launch the polestar add in under settings..integrations..add integrations while I can see and load Polestar EV it asks for my username and password, which I enter, then just says "Unexpected error creating API"

polestar1

I am based in New Zealand, is that going to be a problem?

@leeyuentuen
Copy link
Owner

what do you see in the log

@leeyuentuen
Copy link
Owner

@smbunn

@smbunn
Copy link
Author

smbunn commented Jan 13, 2024

2024-01-14 09:12:28.866 ERROR (MainThread) [custom_components.polestar_api.pypolestar.polestar] No cars found in account NoneType: None 2024-01-14 09:12:28.866 ERROR (MainThread) [custom_components.polestar_api.config_flow] Unexpected error creating device Traceback (most recent call last): File "/config/custom_components/polestar_api/config_flow.py", line 43, in _create_device await device.init() File "/config/custom_components/polestar_api/polestar.py", line 35, in init await self.polestarApi.init() File "/config/custom_components/polestar_api/pypolestar/polestar.py", line 40, in init await self._get_vehicle_data() File "/config/custom_components/polestar_api/pypolestar/polestar.py", line 114, in _get_vehicle_data raise PolestarNoDataException("No cars found in account")

This is weird, as my polestar app on my phone works fine. When I open https://polestarid.eu.polestar.com/Account/landing-page on my desktop it shows my account, but there is nowhere to see any cars.

@leeyuentuen
Copy link
Owner

leeyuentuen commented Jan 13, 2024

@smbunn same issue here:

#50

@leeyuentuen
Copy link
Owner

i'll close issue, it still got issue, you can reopen it

@smbunn
Copy link
Author

smbunn commented Jan 18, 2024 via email

@leeyuentuen
Copy link
Owner

It did not get resolved, I am just hoping someone knows the path to getting the car registered to that account/website so that it then appears in your app. I have been waiting for an add-on like yours for HA for almost 2 years, thanks so much for building it. Simon Bunn From: Tuen Lee @.> Sent: Friday, January 19, 2024 4:49 AM To: leeyuentuen/polestar_api @.> Cc: Bunn, Simon @.>; Mention @.> Subject: Re: [leeyuentuen/polestar_api] Unexpected error creating the API (Issue #90) Closed #90https://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEpbtLOto$ as completed. — Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/leeyuentuen/polestar_api/issues/90*event-11527002881__;Iw!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEtOdh81A$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ABAAMIJXY3R65WGL6YQJ3TTYPE745AVCNFSM6AAAAABBZF4D6OVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGUZDOMBQGI4DQMI__;!!ElGdukoduuk!RS1i5y7kpXP0sfN1btMcfKKPDzWt9belTny7hlxMu-_xdBf1_PoJ-CgRrferpvxPIbfGLU8WIJ5mo7SSEs4XyoSt$. You are receiving this because you were mentioned.Message ID: @.@.>>

@smbunn you can ask polestar to transfer the car to your account

@smbunn
Copy link
Author

smbunn commented Jan 18, 2024 via email

@leeyuentuen
Copy link
Owner

@smbunn i suppose if you go to this link

https://polestarid.eu.polestar.com/as/authorization.oauth2?response_type=code&client_id=polmystar&redirect_uri=https%3A%2F%2Fwww.polestar.com%2Fsign-in-callback&scope=openid profile email customer:attributes customer:attributes:write

can you check if you see the car tab. if not, you can send email to polestar i think something like info@polestar.com or anything like that and say that you can see your car in that page.

but do you have access on the mobile app?

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

2 participants