It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST POST worklog on issue fails with 500

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

Anyone got an idea on this?

Have you been able to get POST working in Cloud?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Jira Cloud for Google Sheets: Automatically Refresh Your Data!

Remember that time you realized it was possible to refresh your Jira data in Google sheets with just one click? What if we told you that you can now get the latest data with no clicks at all?! Zero! ...

7,364 views 33 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you