작성
·
208
0
npm run start 후에 postman에서 request를 보내면 콘솔에 다음과 같은 로그가 나옵니다. 해당 내용을 검색해서 권한 등을 수정해보았는데도 해결되지 않아서 질문 남깁니다.ㅠㅠ 답변해주시면 정말 감사하겠습니다.ㅠㅠ
(node:7468) UnhandledPromiseRejectionWarning: Error: 7 PERMISSION_DENIED: IAM permission 'dialogflow.sessions.detectIntent' on 'projects/chatbot-302402/agent' denied.
at Object.exports.createStatusError (E:\node.js\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\common.js:91:15)
at Object.onReceiveStatus (E:\node.js\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\client_interceptors.js:1209:28)
at InterceptingListener._callNext (E:\node.js\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (E:\node.js\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\client_interceptors.js:618:8)
at callback (E:\node.js\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\client_interceptors.js:847:24)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7468) 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: 1)
(node:7468) [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-zero exit code.
강의 만들어 주셔서 감사합니다!