10000 TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters at new ClientRequest · Issue #56 · huan/file-box · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters at new ClientRequest #56
Closed
@zhihuifanqiechaodan

Description

@zhihuifanqiechaodan

"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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0