-
google oauth에러 unable to verify the first certificate 해결 방법개발 공부 2023. 10. 6. 10:07반응형[error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.[debug] [2023-10-05T23:52:50.620Z] *** [apiv2] error from fetch(https://firebase-public.firebaseio.com/cli.json, {"headers":{},"method":"GET"}): FetchError: request to https://firebase-public.firebaseio.com/cli.json failed, reason: unable to verify the first certificate[warn] ! Unable to fetch the CLI MOTD and remote config.[debug] [2023-10-05T23:52:50.620Z] Failed to fetch MOTD FirebaseError: Failed to make request to https://firebase-public.firebaseio.com/cli.json
해당 에러가 계속 나서 해결 방법 찾아보는데 잘 안나옴
현 상황 : Vue.js + PWA 프로젝트 Firebase 호스팅하려하는데 안됨
Firebase-devug.log 찾아보니 위와 같음
뭐가 문제인가하니
{ "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "CREDENTIALS_MISSING", "domain": "googleapis.com", "metadata": { "method": "google.firebase.service.v1beta1.FirebaseProjectService.ListFirebaseProjects", "service": "firebase.googleapis.com" } } ] } }
계속 이렇게 401 에러 리턴받았는데 알고보니 ssl 세팅에 문제였음
npm config list
명령어 입력하여 strict-ssl 값 확인.
해당 값이 false로 되어있다면 true로 변경해줘야됨
npm config set strict-ssl true npm config get strict-ssl
해당 값 변경하고 해보시길
반응형'개발 공부' 카테고리의 다른 글
Visual Studio 2019 git 메뉴 안 보일 때 추가 방법 (0) 2025.02.19 티스토리 블로그 포스팅 버튼 만들기 html CSS 코드 (0) 2025.02.04 윈도우 방화벽 포트 오픈 하는 방법 초간단 (0) 2023.10.06 google api OAuth 클라이언트 ID 생성 (0) 2023.05.10 Google Api 사용하기 - 프로젝트 생성 (0) 2023.05.10