Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on suppressionList.delete(email) method #255

Open
pablomargareto opened this issue Sep 30, 2020 · 0 comments
Open

Exception on suppressionList.delete(email) method #255

pablomargareto opened this issue Sep 30, 2020 · 0 comments

Comments

@pablomargareto
Copy link

pablomargareto commented Sep 30, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant