-
카테고리
-
세부 분야
풀스택
-
해결 여부
해결됨
credential 관련 문제
21.04.04 12:51 작성 조회수 207
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.
답변을 작성해보세요.
1
Hoi
질문자2021.04.04
저 해결 했어요!
저는 윈도우 터미널 파워셀 사용중이었고
$env:GOOGLE_APPLICATION_CREDENTIALS="c:\Users\~~~유저~~~~\Downloads\~~~credential ~~~~~.json"
윈도우라서 계속 set으로 하다가 오류 났던것이였습니다!
혹시 윈도우 터미널 파워셀 쓰시는 분은 환경변수 설정 저처럼 해보세요
감사합니당
0
답변 2