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

Error with the Client class. #31

Closed
jac1013 opened this issue Jun 16, 2018 · 1 comment
Closed

Error with the Client class. #31

jac1013 opened this issue Jun 16, 2018 · 1 comment

Comments

@jac1013
Copy link

jac1013 commented Jun 16, 2018

I'm having an issue with the client library that I didn't have before, my code haven't changed at all and it was working.

Version: 1.6.1
OS: Linux
Node Version: 8.0.0

TypeError: Cannot read property 'processRequestWithBody' of undefined

I can see that the function processRequestWithBody is used by client.sendEmailWithTemplate.

Then again, this was working before, I haven't made any big changes to my code for this to happen. I noticed that before I was using version 1.3.1 (I reinstalled the library because I thought it might be a deprecation or something). Now with the version mentioned above is not working either.

Let me know if you need more details for solving this.

Thanks.

@jac1013
Copy link
Author

jac1013 commented Jun 26, 2018

It was an issue on my side guys, I'm using promisify to leverage async/await syntax and forgot to bind the functions back to the client.

@jac1013 jac1013 closed this as completed Jun 26, 2018
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

1 participant