node-sparkpost icon indicating copy to clipboard operation
node-sparkpost copied to clipboard

Exception on suppressionList.delete(email) method

Open pablomargareto opened this issue 5 years ago • 0 comments

I get the following exception every time that I try to delete an email that does not exists from the suppressionList:

Code: await client.suppressionList.delete(email)

Exception: node_modules/request/request.js:1154:10 name: 'SparkPostError', errors: undefined, statusCode: 404

I assume that this should be catch on the promise "catch", or even on the resolve, but instead is throwing an exception, I assume related to the use of the "request" library (which is also deprecated).

Can anyone help me with this one? Thanks!

pablomargareto avatar Sep 30 '20 07:09 pablomargareto