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 never responds and gets stuck somewhere. Program execution never moves ahead.
Expected behavior
Got should fire proper response
Code to reproduce
constgot=require("got"),http=require("http"),https=require("https");constagent={http: newhttp.Agent({keepAlive: true}),https: newhttps.Agent({keepAlive: true})};varrequestOptions={timeout: 35000,// millisecondsresponseType: 'buffer',retry: 0,maxRedirects: 5,dnsCache: false,shared: false,// this code works if below argument is commented.
agent,cache: newMap()};(async()=>{constresponse=awaitgot.get("https://www.lttc.ntu.edu.tw/eju.htm?fill=solid&v=8",requestOptions);// below line line never gets printed....console.log("response received");})();
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:
After some investigation I have come to a conclusion that this is a duplicate of #1385 (I first wasn't initially really sure how to reproduce the issue, so thanks for this report!)
Describe the bug
Actual behavior
Got never responds and gets stuck somewhere. Program execution never moves ahead.
Expected behavior
Got should fire proper response
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: