onepointAI/onepoint

UnhandledPromiseRejectionWarning

Dickens-Shaw opened this issue · 1 comments

/src/electron/apis/prompt.ts

(node:58102) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Error
    at new NodeError (node:internal/errors:399:5)
    at write_ (node:_http_outgoing:862:11)
    at ServerResponse.write (node:_http_outgoing:827:15)
    at ServerResponse.write (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:14265:18)
    at _callee$ (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80110:15)
    at tryCatch (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80013:1357)
    at Generator.<anonymous> (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80013:4235)
    at Generator.throw (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:80013:2208)
    at asyncGeneratorStep (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:82113:24)
    at _throw (/Users/*/Desktop/Projects/onepoint/.webpack/main/index.js:82135:9)
(Use `Electron --trace-warnings ...` to show where the warning was created)
(node:61451) 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: 2)

It has been fixed. Thank you for your feedback.