Skip to content

addSubscriber error #12

@ir-fuel

Description

@ir-fuel

I try adding a subscriber to a list:

    const api = new createsend(auth)

    const details = {
      EmailAddress: 'joris@test.com',
      Name: 'Joris Joris'
    }
    api.subscribers.addSubscriber('some-list-id', details, (err) => {
      if (err) {

Result:

[Error: Unable to parse JSON.  Error: Error: Can't render headers after they are sent to the client.
Body:
"joris@test.com"]

Any idea what's going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions