krauskopf / node-red-contrib-car-bmw

Node-RED nodes for BMW ConnectedDrive
Other
11 stars 8 forks source link

"Error: Couldn't find token in response" #12

Closed na-am closed 1 year ago

na-am commented 2 years ago

i've this error since yesterday :-( i tried on different internet connections/locations... same error message the app on my mobile phone was not updated and is still working

vdjan commented 2 years ago

Same issue for me since yesterday (24/2) :/

HeraldCoupe commented 2 years ago

Same problem here. BMW must have changed something again. Looking forward to a fix.

na-am commented 2 years ago

it's frustrating... i just installed home assistant on my synology nas/docker and i've to say BMW connected is working there like a charm. less then 5 min. of work/configuration! so i'll look into the code of HA and convert it for using in Node-red

hoschult commented 2 years ago

same problem here; trying to find out what might changed

krauskopf commented 2 years ago

I took a first look. As far as I can see, BMW stopped to support the old authentication mechanism to get an API token. Looks like there's now only the new authentication of myBMW supported, which uses a different authentication sequence based on OAuth. Bimmer Connected seems to already support the new authentication (https://github.com/bimmerconnected/bimmer_connected/blob/b00ef213639c61449e2a783e9899dedad737f634/bimmer_connected/account.py#L115). So this code needs to be ported to nodejs and integrated here. I will have a look, but I'm quite busy these days, so if anyone can or wants to help, then feel free to contribute.

Donni1966 commented 2 years ago

thanx for this info - for me no way, i am not an programmer :-/ So can help here

michaefa commented 2 years ago

Hi Sebastian, it would be great if you could fix this. I really appreciate your work and really like the bmw-node. Can I donate you a coffee somewhere?

peterossege commented 2 years ago

I would donate another coffee ;-)

thomasp3 commented 2 years ago

I would donate another coffee ;-)

Me too!

Donni1966 commented 2 years ago

me too - or may two coffees :-)

krauskopf commented 2 years ago

Thanks for the willingness to donate. Glad to hear that my work is appreciated. :-) Found some time and motivation to implement a quick fix in the last hours. I didn't have time to do a full test, yet. But you might give it a try. At least the basics should work ;-)

Donni1966 commented 2 years ago

that's right. Basic are running again. Thanx a lot. It is really amazing how the community works. For me unbelievable how to fix all the time the issue without getting money only praise. So i spend a little coffee with PayPal - hope this will come to you.

michaefa commented 2 years ago

Thanks a lot! Hope the coffee will arrive!

krauskopf commented 2 years ago

Glad to hear, that it is working again. Thanks a lot for the coffee :-). That's more than enough. I almost don't dare to accept that. I created the nodes for fun and the community spirit. Happy to hear, that is actually used out there.

Donni1966 commented 2 years ago

Oh i love this node-red model. I may automatic heating an Workdays, loading infos via outspeak and all this nice thinks. But by the way: there was nodes with last trip and all trips, where i get more infos about trips an used power on this. Is this not yet part of the interface on mybmw?

abryniak commented 2 years ago

Hi, when trying with version 0.4.1 I'm getting the below error code? Error: Server send http statusCode 401 on stage 1 Can anyone advise with that please? Thank you

Donni1966 commented 2 years ago

I test the 0.4.1 - for me it works as fine as the version 0.4