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

addSubscriber error #12

Open
ir-fuel opened this issue Jul 4, 2016 · 3 comments
Open

addSubscriber error #12

ir-fuel opened this issue Jul 4, 2016 · 3 comments

Comments

@ir-fuel
Copy link

ir-fuel commented Jul 4, 2016

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?

@drj-io
Copy link

drj-io commented Feb 8, 2017

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

@nufyoot
Copy link
Owner

nufyoot commented Feb 16, 2017

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

@ir-fuel
Copy link
Author

ir-fuel commented Feb 16, 2017

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

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

3 participants