Client: handle 409 HTTP code #130

Open
opened 2018-12-17 14:22:47 +00:00 by JonasFranz · 0 comments
Owner

Author: @noerw Posted at: 04.12.2018 22:02

This is helpful, as POST /api/v1/releases returns no HTTP body for a 409 request,
eg when there already is a release for the specified tag.

The underlying problem is bigger:
The Client cannot handle error responses which do not contain a valid JSON body.
I tried to solve it by still printing a usable error message instead of a JSON parsing error

Author: @noerw Posted at: 04.12.2018 22:02 This is helpful, as `POST /api/v1/releases` returns no HTTP body for a 409 request, eg when there already is a release for the specified `tag`. The underlying problem is bigger: The Client cannot handle error responses which do not contain a valid JSON body. I tried to solve it by still printing a usable error message instead of a JSON parsing error
JonasFranz added the
kind/enhancement
label 2018-12-17 14:22:47 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: JonasFranz/go-sdk#130
No description provided.