Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure to unmarshal closed response body #611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants