Running Subscribers.Delete successfully deleted the entry but threw an error.
The issue was cause by Line 203 in client.go, because we were feeding the rootSubscriber into the Do function (and thus it not being nil).
According to the MailerLite Docs, the DELETE operation shouldn't have a request / response body, so I decided to fix the issue by removing them from the Delete function itself.
Additionally, I've fixed the test to catch this behaviour.
Running
Subscribers.Delete
successfully deleted the entry but threw an error.The issue was cause by Line 203 in
client.go
, because we were feeding therootSubscriber
into theDo
function (and thus it not beingnil
). According to the MailerLite Docs, theDELETE
operation shouldn't have a request / response body, so I decided to fix the issue by removing them from theDelete
function itself.Additionally, I've fixed the test to catch this behaviour.