-
Notifications
You must be signed in to change notification settings - Fork 113
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
current issues with network #653
Comments
This is breaking the
|
@aduh95 Downgrade to Node 16 temporally maybe ? In the long run, should we replace node-fetch ? |
I'd say yes, possibly with |
First issue since v18 became lts :) |
Related node-fetch issue: node-fetch/node-fetch#1624 |
There's another issue here which is the breakage doesn't cause the workflow to fail. From that run the |
I believe the issue is deeper than node-fetch specifically http.request('http://localhost:4040/api/tunnels')
.on('response', (res) => {
let str = '';
res.on('data', d => str += d);
res.on('end', () => console.log(
JSON.parse(str).tunnels[0].public_url
))
}).end() All of these are failing on 18 but working on 16. node -e "require('node-fetch').default('http://localhost:4040/api/tunnels').then(res=>res.json()).then(res=>res.tunnels[0].public_url).then(console.log)"
node -e "http.request('http://localhost:4040/api/tunnels').on('response',(res)=>{let str=''; res.on('data',d=>str+=d); res.on('end',()=>console.log(JSON.parse(str).tunnels[0].public_url))}).end()"
node -e "fetch('http://localhost:4040/api/tunnels').then(res=>res.json()).then(res=>res.tunnels[0].public_url).then(console.log)" Btw it's ngrok api, if you wish testing yourself, run |
@avivnakar better report it in |
The text was updated successfully, but these errors were encountered: