Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST POST worklog on issue fails with 500

Jakob Reiter October 1, 2018

Hey guys

I am trying to post to the worklog endpoint at `/issue/${issue.number}/worklog`
But the request fails with 500 and a very long and mysterious response.

Full request:
Path: /issue/${issue.number}/worklog
Method: POST
Body: { timeSpentSeconds: 120 }
Authorization: Basic ***
Headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-cache' }

 

Response:

{"data":{"message":"Expected authority at index 7: file://", "status-code":500, "stack-trace":"java.lang.IllegalArgumentException: Expected authority at index 7: file://
at java.net.URI.create(URI.java:852)
at com.atlassian.applinks.cors.auth.DefaultCorsService.getApplicationLinksByOrigin(DefaultCorsService.java:54)
at com.atlassian.applinks.cors.auth.AppLinksCorsDefaults.allowsOrigin(AppLinksCorsDefaults.java:37)
at com.atlassian.plugins.rest.common.security.jersey.XsrfResourceFilter$1.apply(XsrfResourceFilter.java:269)
at com.atlassian.plugins.rest.common.security.jersey.XsrfResourceFilter$1.apply(XsrfResourceFilter.java:267)
at com.google.common.collect.Iterators.indexOf(Iterators.java:796)\n\tat com.google.common.collect.Iterators.any(Iterators.java:706)
at com.google.common.collect.Iterables.any(Iterables.java:621)\n\tat com.atlassian.plugins.rest.common.security.jersey.XsrfResourceFilter.isAllowedViaCors(XsrfResourceFilter.java:267)
at com.atlassian.plugins.rest.common.security.jersey.XsrfResourceFilter.passesAdditionalBrowserChecks(XsrfResourceFilter.java:206)
...

Some sidenodes:
- This only happens at THIS endpoint, all the others work file.
- I am aware that I need to log min 60 sec

2 answers

1 vote
Jakob Reiter January 31, 2019
Sami Kangas October 4, 2019

Have you been able to get POST working in Cloud?

1 vote
Jakob Reiter October 5, 2018

Anyone got an idea on this?

Suggest an answer

Log in or Sign up to answer