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

Error 500 #19

Closed
SvenAbels opened this issue Jun 14, 2024 · 9 comments · Fixed by #22
Closed

Error 500 #19

SvenAbels opened this issue Jun 14, 2024 · 9 comments · Fixed by #22

Comments

@SvenAbels
Copy link

Since about 2 days I get an error 500 in the logs and the programm terminates:

Access token expired (Login Token has expired). Trying to refresh token...
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at libgwmapi.GwmApiClient.GetResponseAsync[T](HttpResponseMessage response, CancellationToken cancellationToken) in /app/libgwmapi/GwmApiClient.cs:line 116
   at libgwmapi.GwmApiClient.PostH5Async[TIn,TOut](String url, TIn body, CancellationToken cancellationToken) in /app/libgwmapi/GwmApiClient.cs:line 92
   at ora2mqtt.RunCommand.RefreshTokenAsync(GwmApiClient client, Ora2MqttOptions options, CancellationToken cancellationToken) in /app/ora2mqtt/RunCommand.cs:line 102
   at ora2mqtt.RunCommand.Run(CancellationToken cancellationToken) in /app/ora2mqtt/RunCommand.cs:line 40
   at Program.<Main>$(String[] args) in /app/ora2mqtt/Program.cs:line 23

Does anyone have the same error?

@zivillian
Copy link
Owner

I had the same error a few weeks ago and the only way I found to fix this was to create new tokens by running configure again and logging in using the email and code.

@daemonenstall
Copy link

daemonenstall commented Jul 30, 2024

I also had this error and running configure again fixed it. Today it happened again, but now it's not working anymore. Any ideas?

System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at libgwmapi.GwmApiClient.GetResponseAsync[T](HttpResponseMessage response, CancellationToken cancellationToken) in /home/runner/work/ora2mqtt/ora2mqtt/libgwmapi/GwmApiClient.cs:line 116
   at libgwmapi.GwmApiClient.PostH5Async[TIn,TOut](String url, TIn body, CancellationToken cancellationToken) in /home/runner/work/ora2mqtt/ora2mqtt/libgwmapi/GwmApiClient.cs:line 92
   at ora2mqtt.ConfigureCommand.LoginAsync(GwmApiClient client, Ora2MqttOptions options, CancellationToken cancellationToken) in /home/runner/work/ora2mqtt/ora2mqtt/ora2mqtt/ConfigureCommand.cs:line 110
   at ora2mqtt.ConfigureCommand.Run(CancellationToken cancellationToken) in /home/runner/work/ora2mqtt/ora2mqtt/ora2mqtt/ConfigureCommand.cs:line 41
   at Program.<Main>$(String[] args) in /home/runner/work/ora2mqtt/ora2mqtt/ora2mqtt/Program.cs:line 23

@cram-89
Copy link

cram-89 commented Aug 6, 2024

@zivillian auch mit der neuen v0.0.3 bekomme ich bei der win64 Version weiterhin den 500 Fehler nach E-Mail- und Passwort-Eingabe

@holger1414
Copy link

holger1414 commented Aug 6, 2024 via email

@zivillian
Copy link
Owner

can you try the binaries from #22?

@daemonenstall
Copy link

I have just tried the fresh binaries and error 500 is gone. Mille grazie :)

@gratefulUser1
Copy link
Contributor

gratefulUser1 commented Aug 7, 2024

So do you get the SOC and range values again in MQTT? For me,I still have the issue, that even the My GWM app does not show these values ...

EDIT:
@zivillian: Thx for fixing the two issues. I never had the Error 500 so far, but nevertheless I don't get the SOC and range values anymore. But as I said, it's not in the HTML response and also not in the app so I suppose there is an issue on the server or vehicle side. The app says, the last update received from vehicle side was on 29th of July ...

Here is what I get in MQTT, which totally corresponds to the HTML/JSON response:

GWM/VID/status/AcquisitionTime 1722271899000
GWM/VID/status/UpdateTime 1722272795888
GWM/VID/status/Latitude XXX
GWM/VID/status/Longitude XXX
GWM/VID/status/items/2310001/value 1
GWM/VID/status/items/2310001/unit (null)
GWM/VID/status/items/2042082/value 0
GWM/VID/status/items/2013023/value 0

@holger1414
Copy link

Everything working very well.
Thank you!

@daemonenstall
Copy link

Everything is working.

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

Successfully merging a pull request may close this issue.

6 participants