Log work fails with Internal server error

Issue #626 new
Bálint Medvey created an issue

Couldn’t create a worklog, got error:

Error creating worklog

Internal server error

After turning on curl debugging and setting the output level to debug this is what the vscode sends:

[2021-08-17 09:11:02:164] curl -X POST -H "Content-Type:application/json" -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Authorization:Basic ......" --data '{"comment":"","started":"2021-08-17T09:10:46.828Z","timeSpent":"1h"}' "https://jira.telenor.hu/rest/api/2/issue/LIG-124/worklog?adjustEstimate=auto" 
[2021-08-17 09:11:02:164] ---------------------------------------------------------------------- 
[2021-08-17 09:11:02:338]   Error: error creating worklog: Error: Request failed with status code 500
[2021-08-17 09:13:05:619] ---------------------------------------------------------------------- 

I can successfully send a post request from the terminal with the slight difference the body’s started value.

"started":"2021-08-17T09:10:46.828+0000"

Either vscode sends the wrong timeformat, or our custom Jira site doesn’t recognize .toISOString() format

"started":"2021-08-17T09:10:46.828Z" should be "started":"2021-08-17T09:10:46.828+0000"

Can you help me out?

Atlassian labs version v2.9.1
Jira v8.5.1

Comments (1)

  1. Log in to comment