Description
"file-box": "^0.16.8"
const { FileBox } = require('file-box')
const fileBox = FileBox.fromUrl("https://s3.cn-northwest-1.amazonaws.com.cn/xiaoju-message-payload-bucket/message/6037190a939de800386de0c5/1616211743128/企业微信截图_1616211733614.png")
const imageStream = await fileBox.toStream();
(node:6173) UnhandledPromiseRejectionWarning: TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
at new ClientRequest (_http_client.js:151:13)
at request (https.js:313:10)
at get (https.js:317:15)
at res (/Users/cctvabu/renhejituan/chatbot-webapi/node_modules/file-box/dist/src/misc.js:102:9)
at new Promise ()
at Object.httpStream (/Users/cctvabu/renhejituan/chatbot-webapi/node_modules/file-box/dist/src/misc.js:101:23)
at /Users/cctvabu/renhejituan/chatbot-webapi/node_modules/file-box/dist/src/file-box.js:374:24
at new Promise ()
at FileBox.transformUrlToStream (/Users/cctvabu/renhejituan/chatbot-webapi/node_modules/file-box/dist/src/file-box.js:372:16)
at FileBox.toStream (/Users/cctvabu/renhejituan/chatbot-webapi/node_modules/file-box/dist/src/file-box.js:318:37)
(node:6173) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)