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

fix: wrong content type in request #84

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

grafvonb
Copy link
Contributor

@grafvonb grafvonb commented Aug 29, 2024

  private HttpPost buildRequest() throws URISyntaxException {
    HttpPost httpPost = new HttpPost(jwtCredential.authUrl().toURI());
    httpPost.addHeader("Content-Type", "application/json");

application/json causes java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "io.camunda.operate.auth.TokenResponse.getExpiresIn()" is null

should be application/x-www-form-urlencoded

@grafvonb
Copy link
Contributor Author

grafvonb commented Aug 29, 2024

/assign @jonathanlukas

@jonathanlukas
Copy link
Collaborator

@grafvonb thank you for this fix. I will go ahead and merge it.

Please consider creating fixes on top of main as we can backport them to the release branches from there. I will port-forward this fix for now.

@jonathanlukas jonathanlukas merged commit 92b868d into camunda-community-hub:release/8.5 Aug 30, 2024
3 checks passed
jonathanlukas pushed a commit that referenced this pull request Aug 30, 2024
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