inwx / terraform-provider-inwx

INWX Terraform Provider plugin for Terraform
MIT License
19 stars 5 forks source link

Fix deletes & updates breaking on "unexpected end of JSON input" #16

Closed costasd closed 11 months ago

costasd commented 11 months ago

Call is always attempting to parse response body, which leads to errors in case of no-response calls such as nameserver.deleteRecord.

In order to allow for such without breaking our API, let's:

Then,

Use the new client.CallNoResponseBody instead of client.Call and avoid erroring on body failing to parse in NameserverRecordUpdate & NameserverRecordDelete.

Fixes #12