You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got on Node 14.0.0 returns empty bodies for all requests. After double-checking (I already did but messed the Node upgrade), it seems to work on 14.13. Still, it's an annoying behaviour for a minor release since it would make upgrading got in Yarn a BC-breaking change 🙁
Code to reproduce
The default one is enough:
constgot=require('got');(async()=>{try{constresponse=awaitgot('https://sindresorhus.com');console.log(response.body);//=> '<!doctype html> ...'}catch(error){console.log(error.response.body);//=> 'Internal server error ...'}})();
Checklist
I have read the documentation.
I have tried my code with the latest version of Node.js and Got.
The text was updated successfully, but these errors were encountered:
Describe the bug
Ref: #1256 (comment)
Got on Node 14.0.0 returns empty bodies for all requests. After double-checking (I already did but messed the Node upgrade), it seems to work on 14.13. Still, it's an annoying behaviour for a minor release since it would make upgrading
got
in Yarn a BC-breaking change 🙁Code to reproduce
The default one is enough:
Checklist
The text was updated successfully, but these errors were encountered: