-
Notifications
You must be signed in to change notification settings - Fork 23
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
TypeError: Cannot convert undefined or null to object #883
Comments
Hey! Thanks for reporting... I think that error is coming from these lines:
If I had to guess what's going on here, you have an HTTP request that looks like this:
With a method of POST, a content-type of application/x-www-form-urlencoded but no request body? I think we're (incorrectly) assuming that all POST requests will have bodies. We're then calling |
Yep.
|
We were wrongly assuming that POST bodies will always be set for `application/x-www-form-urlencoded` requests. This fixes that! Fixes #883
Fix for this over here, as soon as I get it reviewed then I'll release it! Thanks for your patience. |
We were wrongly assuming that POST bodies will always be set for `application/x-www-form-urlencoded` requests. This fixes that! Fixes #883
This fix has been published on npm at v6.2.0! Thanks again for reporting. |
We see this on production occasionally across different Node versions. Code wrongly assumes an object is always present.
The text was updated successfully, but these errors were encountered: