-
Notifications
You must be signed in to change notification settings - Fork 41
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
templates.get broken with v > 2.1.0 #220
Comments
Hi. I'm not getting the error. What version of node.js are you using? |
v4.8.4 |
I first ran it with v6.11.2 and it worked. I also ran it with v4.8.4 and it also worked. I am using v2.1.2 of node-sparkpost. |
Ok - I'll try to isolate the environment more. |
Yeah. Maybe include a stack trace. Just let us know what you figure out. |
My Bad. I was parsing res elsewhere in the code and the key 'body' is undefined. Sorry for the fire alarm. Thanks for your help. |
Glad you were able to track it down. That was a change from 1.x to 2.x, the second argument is the data from the request. So it is res.body. |
The error returned is 'SyntaxError: Unexpected token u'
When using the callback method.
The text was updated successfully, but these errors were encountered: