-
Notifications
You must be signed in to change notification settings - Fork 35
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
sometimes crashs with "TypeError: Cannot create property 'statusCode' on...." #82
Comments
@macrozone , I am also facing this issue once in a while and it forces to stop the docker container too. Did you find the solution to this? |
not yet, i thought it was related to the chunk size, so i lowered the amount of members that i sent to the mailchimp api. at first i thought it fixed the problem, but that is not the case, it still happens, but unfortunatly not consistently. I also use meteor so i thought it would be a node-fiber related issue, since the whole thing is in a try-catch but still does not manage to catch this error. |
it seems because it uses the deprecated request package which has bugs on its own |
so here is my conclusion:
so here i worked around this problem:
that way i can at least handle it gracefully. i then try to retry the request in my application code. The error happens rarley, so on second attempt it usually works |
@macrozone , Thanks for the detailed information. I will try to implement your solution. |
if you have the capacity its best to move away from this library as its not maintained anymore and is based on deprecated packages |
when doing certain requests (currently investigating which one), it sometimes crashes with
The text was updated successfully, but these errors were encountered: