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
const fs = require('fs'); const { request } = require('urllib'); const writeStream = fs.createWriteStream(__dirname + '/not-exist/test.js').on('error', (e) => { console.log('folder not exist'); }) request('https://aaaaddd.oss-cn-zhangjiakou.aliyuncs.com/%E6%96%B0%E5%BB%BA%E6%96%87%E6%9C%AC%E6%96%87%E6%A1%A3.txt', { writeStream: writeStream }).then(data => { console.log('success'); }).catch(e => { console.log('error', e.message); })
use 2.33.1
folder not exist error ENOENT:
use 3.17.1
folder not exist success
The text was updated successfully, but these errors were encountered:
复现的 node 版本:14、16,确认 node >= 18 不会出现此问题。
Sorry, something went wrong.
fix: check writeStream destroyed before send request
602e5b0
Only check on Node.js < 18 closes #459
fix: check writeStream destroyed before send request (#460)
78515b9
fengmk2
Successfully merging a pull request may close this issue.
use 2.33.1
use 3.17.1
The text was updated successfully, but these errors were encountered: