-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cannot read property 'ok' of undefined in sendwithus.js #64
Comments
Hmm, this could be a result of an issue on the API or network issue, but I think something else is going on. We're taking a look. Thanks for reporting this! |
@demoore thanks for looking into this. edit: Please ignore. Our app has a retry mechanism. The emails were processed succesfully on the 2nd call |
No worries @thomasInes! We appreciate the report 😄 v6.0.2 was just pushed to npm if you want to give that a shot: https://www.npmjs.com/package/sendwithus |
Thank you @demoore. Will upgrade and monitor the lib's behavior. Just out of curiosity though, if the issue is network or API related, how would your update help? |
I don't think it's network related. I was able to reproduce the same error with some pretty basic code: api.render({ template: TEMPLATE_ID }, (r) => {
console.log(r); // this worked
console.log(Object.keys(r)); // this did NOT
}); I think this was happening in specific cases where the render/send callback was trying to access the response object. Without seeing your code it's tough to say for sure -- especially since we didn't have any API alarms go off. Keep me posted on whether the issue persists! If so, we might have to get you to reach out to our support so we can trace your account. |
Thank you. Will keep you posted |
Hi,
does the API have an issue this morning?
The library has started to throw errors in our app. It seems the API is not sending what the library expects (cf error below).
We didn't observe this behavior with this version of the library before.
Thank you :)
Client version
6.0.1
Expected behaviour
no error thrown
Actual behaviour
error being thrown by the library:
Steps to reproduce
not sure. either calling
send
orrender
The text was updated successfully, but these errors were encountered: