video-maker
video-maker copied to clipboard
erro (node:5780) UnhandledPromiseRejectionWarning: Error: Unauthorized: Access is denied due to invalid credentials.
Segue o erro abaixo:
(node:5780) UnhandledPromiseRejectionWarning: Error: Unauthorized: Access is denied due to invalid credentials.
at Request._callback (C:\Users\DOWNBIOS\Desktop\PROJETO\video-maker\node_modules\ibm-cloud-sdk-core\lib\requestwrapper.js:102:21)
at Request.self.callback (C:\Users\DOWNBIOS\Desktop\PROJETO\video-maker\node_modules\request\request.js:185:22)
at Request.emit (events.js:315:20)
at Request.--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli
unhandled_rejections_mode). (rejection id: 1)
(node:5780) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zer
o exit code.
alguém sabe me dizer como resolver?
you need to replace the URL in robots/text.js with your IBM credential URL
const watsonUrl = require('../credentials/watson-nlu.json').url
const nlu = new NaturalLanguageUnderstandingV1({
iam_apikey: watsonApiKey,
version: '2019-07-12',
url: watsonUrl
})