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

Serverabfrage User Agent Problem #47

Closed
leon558 opened this issue Mar 13, 2025 · 0 comments · Fixed by #48
Closed

Serverabfrage User Agent Problem #47

leon558 opened this issue Mar 13, 2025 · 0 comments · Fixed by #48

Comments

@leon558
Copy link

leon558 commented Mar 13, 2025

Die aller erste Abfrage an den Server, welche mittels "evcc-app-compatible" schaut ob der Server mit der App kompatibel ist, wird mittels Axios gemacht. Bei mir hat diese Anfrage den User Agent "okhttp/4.9.2".

Dies führt zu Problemen wenn der evcc Server hinter einem Reverse Proxy wie Nginx ist. Diese haben meist eine Bot Protection welche diese Anfrage wegen des User Agents blockieren. Dies ist zumindest bei mir der Fall gewesen.

Ich denke es wäre sinnvoll den User Agent bei dieser Anfrage zu überschreiben. Sonst bleibt einem nur die Möglichkeit die Bot Protection zu deaktivieren, was aber vielleicht auch nicht immer möglich ist. Außerdem muss man in solchen Fällen erstmal drauf kommen, da die App einem nur sagt der Server wäre nicht erreichbar. Hätte ich sofort den 403 Status Code angezeigt bekommen wüsste ich das es an Nginx liegt.

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.

1 participant