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

Authorization does not work in staging due to invalid Accept request header value #9

Open
akaine opened this issue Nov 7, 2019 · 0 comments

Comments

@akaine
Copy link

akaine commented Nov 7, 2019

Hey,

It seems there is a problem, at least in the staging env (api.staging.arcusapi.com), with the Accept request header generation. Current implementation does this:

public String getAccept() {
    return "application/vnd.regalii.v" + getVersion() + "+json";
}

leaving resulting values as: application/vnd.regalii.v3.2+json or application/vnd.regalii.v3.0+json
This in turn produces a 404 response.

While the supposedly working value is: application/vnd.regalii.v3.mx+json. At least it allowed me to get the API working again.

Not sure if the production env would have a similar problem.

Best Regards

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

1 participant