Error: 7 PERMISSION_DENIED: Permission denied on resource project first
500 에러가 떳습니다.
이유는 .env 파일 내부에서 projectId에 프로젝트 이름을 작성해서였습니다.
projectId를 정상적으로 다시 입력하니 정상 동작했습니다.
아래는 에러메시지입니다.
Error: 7 PERMISSION_DENIED: Permission denied on resource project first. at Object.callErrorFromStatus (/Users/jominhyeog/blahx2/node_modules/@grpc/grpc-js/build/src/call.js:31:26) at Object.onReceiveStatus (/Users/jominhyeog/blahx2/node_modules/@grpc/grpc-js/build/src/client.js:189:52) at Object.onReceiveStatus (/Users/jominhyeog/blahx2/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141) at Object.onReceiveStatus (/Users/jominhyeog/blahx2/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181) at /Users/jominhyeog/blahx2/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) Caused by: Error at WriteBatch.commit (/Users/jominhyeog/blahx2/node_modules/@google-cloud/firestore/build/src/write-batch.js:417:23) at DocumentReference.set (/Users/jominhyeog/blahx2/node_modules/@google-cloud/firestore/build/src/reference.js:355:14) at handler (/Users/jominhyeog/blahx2/.next/server/pages/api/members.add.js:82:102) at Object.apiResolver (/Users/jominhyeog/blahx2/node_modules/next/dist/server/api-utils/node.js:185:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NextNodeServer.runApi (/Users/jominhyeog/blahx2/node_modules/next/dist/server/next-server.js:395:9) at async Object.fn (/Users/jominhyeog/blahx2/node_modules/next/dist/server/base-server.js:496:37) at async Router.execute (/Users/jominhyeog/blahx2/node_modules/next/dist/server/router.js:226:36) at async NextNodeServer.run (/Users/jominhyeog/blahx2/node_modules/next/dist/server/base-server.js:606:29) at async NextNodeServer.handleRequest (/Users/jominhyeog/blahx2/node_modules/next/dist/server/base-server.js:321:20) { code: 7, details: 'Permission denied on resource project first.',