go-force icon indicating copy to clipboard operation
go-force copied to clipboard

Handle 204 (no content) response in `ForceApi.request`

Open yufeiliu opened this issue 10 years ago • 0 comments

Currently calling ForceApi.UpsertSObjectByExternalId would return an object unmarshal error when salesforce endpoint returns a 204. The code causing this behavior is in ForceApi.request which attempts to unmarshal an empty response byte slice.

yufeiliu avatar Aug 13 '15 01:08 yufeiliu