강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của hoihoi0591
hoihoi0591

câu hỏi đã được viết

Chuỗi bài học về Node và React để học theo - Tạo trang chatbot

Tạo ứng dụng chatbot #3 Giải thích cấu trúc & Tạo Route textQuery

credential 관련 문제

Đã giải quyết

Viết

·

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

Câu trả lời 2

1

Hoi님의 프로필 이미지
Hoi
Người đặt câu hỏi

저 해결 했어요!

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

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

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

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

감사합니당

0

John Ahn님의 프로필 이미지
John Ahn
Người chia sẻ kiến thức

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

Hình ảnh hồ sơ của hoihoi0591
hoihoi0591

câu hỏi đã được viết

Đặt câu hỏi