Skip to content

Conversation

christopher-besch
Copy link

@christopher-besch christopher-besch commented Jan 31, 2023

What type of PR is this?

  • bug

When doing a POST /jira/rest/servicedeskapi/request HTTP/1.1 I sometimes get this error:

2023/01/31 15:24:25 json: cannot unmarshal array into Go struct field RequestFieldValue.requestFieldValues.value of type string: http: read on closed response body
exit status 1

This PR fixes that issue (reference: https://stackoverflow.com/questions/47723193/panic-json-cannot-unmarshal-array-into-go-value-of-type-main-structure).

@christopher-besch christopher-besch changed the title Update jira.go Fix failure to unmarshal closed response body Jan 31, 2023
@github-actions github-actions bot added the jira-onpremise Changes related to the Jira On-Premise client label Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-onpremise Changes related to the Jira On-Premise client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants