gndean / home-assistant-hypervolt-charger

Home Assistant integration for Hypervolt EV charger
48 stars 3 forks source link

Authentication error when trying to log in, status code: 400 #50

Closed Paul-G-M closed 6 months ago

Paul-G-M commented 7 months ago

I've had a replacement Hypervolt charger (v2 > v3), therefore needed to update this integration. Also took the opportunity to strengthen my password. Removed the v2 charger from the Integration and put in my updated credentials > authentication error. Decided to completely remove the Hypervolt integration > reboot HA > re-downloaded & installed integration > re-booted HA. Still got authentication error when submitting my email and password (which work just fine on the Hypervolt web dashboard & smartphone app). What am I missing?

Log info: This error originated from a custom integration.

Logger: custom_components.hypervolt_charger.hypervolt_api_client Source: custom_components/hypervolt_charger/hypervolt_api_client.py:111 integration: Hypervolt Charger (documentation, issues) First occurred: 22:56:32 (1 occurrences) Last logged: 22:56:32

Authentication error when trying to log in, status code: 400

Many thanks, :)

nathbooth commented 7 months ago

Same issue for me, wondering if Hypervolt have changed something. It's throwing a 400 Error which is a bad request, so implies something is being rejected.



Logger: custom_components.hypervolt_charger.hypervolt_api_client
Source: custom_components/hypervolt_charger/hypervolt_api_client.py:111
integration: Hypervolt Charger (documentation, issues)
First occurred: 09:23:46 (2 occurrences)
Last logged: 10:24:53

Authentication error when trying to log in, status code: 400
gndean commented 7 months ago

Very strange. I can't repeat this issue. Are you still seeing the same error?

As it happens, I've released a beta version of the integration that uses a whole different way to log in. You could always try that. You'll need to enable/show beta versions within HACS. It's 2.0.0 Beta.

Paul-G-M commented 7 months ago

Beta version 2.0.1 installed. Still get Authentication error. Could it be to do with my password? It contains ! @ and ^ symbols. 14 characters in total. I tried changing the password to remove these characters and it still failed. :( (I also took the opportunity to update HA Core to 2024.4.1)

nathbooth commented 6 months ago

i had special characters too, however i've removed them all and still the issue persists with the 400 errors. Any tips on debugging further?

benjumanji commented 6 months ago

@nathbooth and @Paul-G-M can you login using the same credentials using the app?

Paul-G-M commented 6 months ago

If you mean the Hypervolt app, then yes. Not tried the HA app, but can do if required.Thanks for not giving up on this. Best, Paul

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

benjumanji commented 6 months ago

Hi yes, I did mean the hypervolt mobile app, I just wanted to check you weren't having a problem with hypervolt's infrastructure. Please note @Paul-G-M you've just dropped your mobile phone number on a public forum, I'd nuke that pronto. I'm assuming @gndean that the new credentials grant is working for you?

Paul-G-M commented 6 months ago

Oops - thx! Benjamin Edwards @.***> wrote: Hi yes, I did mean the hypervolt mobile app, I just wanted to check you weren't having a problem with the new infra. Please note @Paul-G-M you've just dropped your mobile phone number on a public forum, I'd nuke that pronto. I'm assuming @gndean that the new credentials grant is working for you?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

gndean commented 6 months ago

I'm assuming @gndean that the new credentials grant is working for you?

@benjumanji Sorry for the silence on this - I've been busy for the last couple of weeks. I've not tried this yet but will do so this weekend and get it merged assuming no problems found, so we can see if that fixes this issue.

gndean commented 6 months ago

@benjumanji The new credentials grant isn't working - see PR for details.

Sorry, I've no idea what's happening here. For what it's worth, I don't think it's an issue with your password format as I've tested with a pw of 50 characters, including symbols . @Paul-G-M with the 2.0.1 beta integration, is it still as 400 error specifically you see? That's the HV servers saying it's a bad request, opposed to wrong credentials, say.

gndean commented 6 months ago

@Paul-G-M , @nathbooth can you please try V2.0.2 beta when you have chance. This now authenticates via Hypervolt's new auth infrastructure.

bobbyeo commented 6 months ago

i was having same issue, i just tested v2.0.2 and it's working now, thanks.

Paul-G-M commented 6 months ago

It works with Beta v2.02! Huge thanks for sorting this.PaulSent from my mobile. Please excuse brevity and typosOn 13 Apr 2024, at 15:37, gndean @.***> wrote: @Paul-G-M , @nathbooth can you please try V2.0.2 beta when you have chance. This now authenticates via Hypervolt's new auth infrastructure.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

gndean commented 6 months ago

Excellent, thanks for the feedback.

Released as V2.0.2 now