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

addSubscriber error

Open ir-fuel opened this issue 8 years ago • 3 comments

I try adding a subscriber to a list:

    const api = new createsend(auth)

    const details = {
      EmailAddress: '[email protected]',
      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:
"[email protected]"]

Any idea what's going on?

ir-fuel avatar Jul 04 '16 10:07 ir-fuel

@ir-fuel Check to make sure your api key is correct

drj-io avatar Feb 08 '17 16:02 drj-io

@ir-fuel I'm getting back into this project now. Are you still having issues?

nufyoot avatar Feb 16 '17 01:02 nufyoot

I don't even remember in which project I was using this. Since it didn't work I started using something else.

ir-fuel avatar Feb 16 '17 08:02 ir-fuel