nodejs-storage
nodejs-storage copied to clipboard
Unhandled Error in startResumableUpload_ Function
Cannot handle the error by try...catch nor writable.on('error')
Environment details
- OS: All
- Node.js version: All
- npm version: All
-
@google-cloud/storageversion: 7.11.2
Steps to reproduce
- partial upload without url provided
- run
file.createWriteStream
const opitons = {
offset: 1,
isPartialUpload: true,
};
let writable;
try {
writable = file.createWriteStream(opitons);
} catch (error) {
// cannot catch the error
return;
}
writable.on('error', (err: RangeError) => {
// cannot catch the error
});
writable.write('data');