Closed trendchaser4u closed 4 years ago
Can you update your Node.js version to the latest v10.x version? To rule out it’s not an already fixed Node.js issue.
Also please try out the newest Got release (11.0.0-beta.1
).
Can you update your Node.js version to the latest v10.x version? To rule out it’s not an already fixed Node.js issue.
yes, I've updated the node version, still, error occurs. This type of error will come only in strict mode.
if I comment "use strict" it is working fine.
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only
Also please try out the newest Got release (
11.0.0-beta.1
).
Sure will try this version and let you know the result. :)
Update:
Issue resolved in 11.0.0-beta.1
release.
Glad to hear this. You must've used a custom IncomingMessage
instance since Node.js doesn't define the ip
property.
Describe the bug
Actual behavior
Executing the below code should console response body
...
Expected behavior
But throwing below error
...
Code to reproduce
Checklist