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

Failed to get token - HTTP Error 500/401 #10

Open
foorschtbar opened this issue Mar 4, 2022 · 9 comments
Open

Failed to get token - HTTP Error 500/401 #10

foorschtbar opened this issue Mar 4, 2022 · 9 comments

Comments

@foorschtbar
Copy link

Does anyone else get one of these error messages sometimes? I'm not sure if it's a problem with the plugin or from the Skoda API. 401 is clear, but the credentials are correct and the app (incl. logout & login) works. After re-deploy of the flow, it works sometimes for a while.

2022-03-04 13_07_43-Node-RED _ nodered netzzzwerk de

@lourdhd
Copy link

lourdhd commented Apr 4, 2022

Me too, same problem

@sledge1977
Copy link

Same issue here. Tried with automatic restart of the docker container, but that didn't help. I really need to re-deploy to get it working again.

@ChristophCaina
Copy link

I am facing the 401 too at the moment.
App is working - I thought, it might happen, when the app does not show some information from the car, because the car has no connection, but that's not the case as it seems now.

Credentials should be correct... I'm not aware that I have changed anything...
It has worked until a few days ago.

BUT:
Somehow, it seems one of my sensors in homeassistant which will get information from the skoda nodeRed was updated tonight... don't know, if the flow was working then or not.

@MartinGris
Copy link
Owner

Normally the 401 shouldn't be a problem. It means the session to skoda connect and thus the token is expired. A reconnect is initialized in this situation.

The 401 shouldn't be displayed in the node red debug log. I will fix this soon.

Please check the output of the skoda get node by adding a debug node

@ChristophCaina
Copy link

hm... I just had a nother try.
Again, the skodaconnect - get showed an 401 error.
There was no other output.

I've replaced the get node with a new one - put my login data into it and tried it again.

It seems to work, at least - it did not show any 401 error, but it was not able to fetch some data - and only showed "requesting data" - without any further change.

Is there a limit on how often the API should be called?
I had the setup set to "every 10 minutes" - but maybe this was too often?

@MartinGris
Copy link
Owner

Till now I have not encountered any limits. I'm requesting the API every 2 minutes!
Can you please tell me your skoda model name?
Please check the node red logs by calling "node-red-log" on the console. There should be some messages while requesting the data like this:
getVehicles
getHomeRegion
getVehicleData
getVehicleStatus: status
getVehicleStatus: position
getVehicleStatus: climater
getVehicleStatus: charger
getVehicleStatus: timer

@ChristophCaina
Copy link

Hi :)
It is an Enyaq...

at the moment, there's not much in the log:

20 Jul 08:29:01 - [info] Stopping modified flows
20 Jul 08:29:01 - [info] Stopped modified flows
20 Jul 08:29:01 - [info] Updated flows
20 Jul 08:29:01 - [info] Starting modified flows
20 Jul 08:29:01 - [info] Started modified flows
getVehicles
20 Jul 08:29:07 - [error] [skoda-get:Christoph Caina] 401
20 Jul 08:29:18 - [info] Stopping modified flows
20 Jul 08:29:18 - [info] Stopped modified flows
20 Jul 08:29:18 - [info] Updated flows
20 Jul 08:29:18 - [info] Starting modified flows
20 Jul 08:29:18 - [info] Started modified flows
getVehicles
20 Jul 08:29:18 - [error] [skoda-get:Christoph Caina] 401
20 Jul 08:35:48 - [info] Stopping modified flows
20 Jul 08:35:48 - [info] Stopped modified flows
20 Jul 08:35:48 - [info] Updated flows
20 Jul 08:35:48 - [info] Starting modified flows
20 Jul 08:35:48 - [info] Started modified flows
getVehicles
20 Jul 08:35:48 - [error] [skoda-get:Christoph Caina] 401
getVehicles
20 Jul 08:37:55 - [error] [skoda-get:Christoph Caina] 401

Before renewing the node, it was showing the 401 directly on the node itself.
After replacing it, it's only showing the "requesting data" - So I think - the main issue I had is still the same.

I've checked the credentials and logged in into the app without any issues.
I am also using skoda-connect as an integration in my HomeAssistant - and even this is working without any issues at the moment.
So it's only the node-red which seems to has issues...

@MartinGris
Copy link
Owner

Are you using the newest version of the node and have you selected the enyaq in the configuration of the node?

@ChristophCaina
Copy link

I have selected the Enyaq. Yes.
How can I confirm the version of the node? - It should update itself ... while the previous node has shown "error" - it is now just showing the "request data" after replacing the node in the flow.

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

5 participants