강의

멘토링

커뮤니티

Inflearn コミュニティ Q&A

hoihoi0591 のプロフィール画像
hoihoi0591

投稿した質問数

フォローして学ぶノード、リアクトシリーズ - チャットボットサイトを作る

チャットボットアプリケーション作成#3 構造の説明 & textQuery Route作成

credential 관련 문제

解決済みの質問

作成

·

393

0

혹시 ㅅ해결하신 분들어떻게 ㅎㅏ셨을까요???

포스트맨 에서는 게속 sending request 중이고요..

PS C:\Users\dbsgh\chatbot-app-master\chatbot-app-master> set GOOGLE_APPLICATION_CREDENTIALS=Users\dbsgh\chatbot-app-master\chat-app-test-iipa-6dc37356f180.json     

PS C:\Users\dbsgh\chatbot-app-master\chatbot-app-master> npm run start

> chatbot-app@1.0.0 start C:\Users\dbsgh\chatbot-app-master\chatbot-app-master    

> node index.js

Server Running at 5000

(node:17964) UnhandledPromiseRejectionWarning: Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.

    at GoogleAuth.<anonymous> (C:\Users\dbsgh\chatbot-app-master\chatbot-app-master\node_modules\google-auth-library\build\src\auth\googleauth.js:167:23)

    at Generator.next (<anonymous>)

    at fulfilled (C:\Users\dbsgh\chatbot-app-master\chatbot-app-master\node_modules\google-auth-library\build\src\auth\googleauth.js:19:58)

    at process._tickCallback (internal/process/next_tick.js:68:7)

(node:17964) 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(). (rejection id: 

1)

(node:17964) [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.

nodejsreact

回答 2

1

Hoi님의 프로필 이미지
Hoi
質問者

저 해결 했어요!

저는 윈도우 터미널 파워셀 사용중이었고 

$env:GOOGLE_APPLICATION_CREDENTIALS="c:\Users\~~~유저~~~~\Downloads\~~~credential ~~~~~.json"   

윈도우라서 계속 set으로 하다가 오류 났던것이였습니다! 

혹시 윈도우 터미널 파워셀 쓰시는 분은 환경변수 설정 저처럼 해보세요

감사합니당

0

John Ahn님의 프로필 이미지
John Ahn
インストラクター

안녕하세요 전윤회님  해결 방법을 공유해주셔서 너무 감사합니다 !!! 

hoihoi0591 のプロフィール画像
hoihoi0591

投稿した質問数

質問する