improve error handling if a REST request has missing data #86

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

Author: @jstrachan Posted at: 03.02.2018 08:54

I was trying to create a webhook and was getting this opaque message back:

error: json: cannot unmarshal array into Go value of type map[string]interface {}

After a bit of debugging it turned out a 422 was being returned with nice error message that was hidden.

A PR is on its way shortly to fix this to return the issue with the missing data

Author: @jstrachan Posted at: 03.02.2018 08:54 I was trying to create a webhook and was getting this opaque message back: ``` error: json: cannot unmarshal array into Go value of type map[string]interface {} ``` After a bit of debugging it turned out a 422 was being returned with nice error message that was hidden. A PR is on its way shortly to fix this to return the issue with the missing data
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#86
No description provided.