-
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
Body can be null #6
Comments
Just ran into this as well. |
I did find out why it was throwing this error for me. It was due to NPM trying to load a package that was in a private repo (fontawesome pro) and because i forgot to set the token in my config it resulted in the body being null (and thus throwing this error). But i'm pretty certain that it should not throw this TypeError. |
Same here it ended up being my token for fontawesome got regenerated causing it to 401. i was able to view the error verbosely by running |
The error message though wasn't helpful though so i think this issue is still valid but maybe renamed to something like update error handling message when request isn't what is expected |
Closed by #9 |
This thread got me out of dead-end trying to figure out why a Bitrise build is failing. |
We're getting an error in our pipeline that references to the following:
Which is
body.toString('utf-8')
, i see that there's anotherbody.toString('utf-8')
higher up that is being try catched, shouldn't that also happen here?The text was updated successfully, but these errors were encountered: