You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside the Request function, there is a step where you are trying to unmarshal the request body to JSON. If it fails because the response is a 404 not found error, the json.Unmarshal's error will be something like: json: cannot unmarshal number into Go value of type ... which is not helping the developer to figure out what is the real issue.
Can you add an optional log there inside the error handling to print out the request URI and the raw response body if the error happens?
The text was updated successfully, but these errors were encountered:
Inside the Request function, there is a step where you are trying to unmarshal the request body to JSON. If it fails because the response is a
404 not found
error, the json.Unmarshal's error will be something like:json: cannot unmarshal number into Go value of type ...
which is not helping the developer to figure out what is the real issue.Can you add an optional log there inside the error handling to print out the request URI and the raw response body if the error happens?
The text was updated successfully, but these errors were encountered: