Skip to content

Exception on suppressionList.delete(email) method #255

@pablomargareto

Description

@pablomargareto

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions