We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
stream.timings.end
Depending on the target host end field of the stream.timings object may undefined. Output of the provided code to reproduce:
end
stream.timings
stream.timings.end (jsdelivr.com): 1689262466012 stream.timings.end (www.zenlayer.com): undefined
stream.timings.end (jsdelivr.com): 1689262466012 stream.timings.end (www.zenlayer.com): 1689262466012
import got from 'got'; const stream = got.stream('https://www.zenlayer.com:443/'); stream.on('data', (data) => { stream.destroy(new Error()); }); stream.on('error', (...args) => { console.log('stream.timings.end (www.zenlayer.com):', stream.timings.end); }); const stream2 = got.stream('https://jsdelivr.com:443/'); stream2.on('data', (data) => { stream2.destroy(new Error()); }); stream2.on('error', (...args) => { console.log('stream.timings.end (jsdelivr.com):', stream2.timings.end); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Actual behavior
Depending on the target host
end
field of thestream.timings
object may undefined.Output of the provided code to reproduce:
Expected behavior
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: