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
3 month later ... still no clue.
I searched the entire forum ... none of the posts worked.
I tried:
https://community.atlassian.com/t5/Jira-questions/REST-API-Worklog-POST/qaq-p/638408
https://community.atlassian.com/t5/Jira-questions/Creating-a-worklog-through-JIRA-REST-API/qaq-p/988599
https://community.atlassian.com/t5/Answers-Developer-Questions/Using-JIRA-REST-to-add-a-worklog-still-can-t-figure-it-out/qaq-p/464626
https://community.atlassian.com/t5/Answers-Developer-Questions/troubles-logging-work-with-jira-rest-api/qaq-p/555659
I can rule out CORS (tried with request bin)
I can rule out Authorization (since other POST requests work)
I can rule out capitalization (tried all variations that make sense)
Happy for ideas :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.