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

Enforce User-Agent header to be set. Fixes #54 #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mschaeuble
Copy link

@mschaeuble mschaeuble commented Jan 22, 2025

A User-Agent header is required for the login. Fixes #54.

@andig
Copy link
Contributor

andig commented Jan 22, 2025

Just dont set the header at all and it will be present.

@mschaeuble
Copy link
Author

Just tried it: If the ua-header is not set explicitly, "Go-http-client/1.1" is used. But in this case, I get the 404 error again. Looks like Nissan is blocking some user agents.

@andig
Copy link
Contributor

andig commented Jan 22, 2025

…or thats the login error now?

@mschaeuble
Copy link
Author

Why don't you try it yourself? The behaviour is reproducible. I would not be suprised if they would try to block "non-official" requests. Ideally, we would set the user agent identical to the official app. Does anyone know what is set there?

@andig
Copy link
Contributor

andig commented Jan 22, 2025

Why don't you try it yourself?

I did. Doesn't work for me. That's why I've asked

…or thats the login error now?

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 this pull request may close these issues.

2 participants