본문 바로가기

🤪 뜨거운 맛 오류 일기37

error = Cannot set headers after they are sent to the client 해결하기 내가 하고싶은건 네이버 api에서 통신받아온 데이터를 json타입으로 클라이언트측에 res.send 를 하는거였는데 바로 아래 요넘이 문제였당 res.setHeader("Content-Type", "application/json"); 매우 바보같이 setHeader를 아래에 설정해놨었음 ^_^!!!! res.setHeader("Content-Type", "application/json"); res.send(data); // res.setHeader("Content-Type", "application/json"); 2023. 5. 11.
오류메시지 : SSL :CERTIFICATE_VERIFY_FAILED 오늘 해커톤을 하면서 python을 실행하는데 아래와 같은 에러가 발생했다 SSL :CERTIFICATE_VERIFY_FAILED 해결방법 : python 파일을 열고 Install Certificates.command를 실행시켜주었더니 해결되었당 (파이썬을 잘 사용하지 않아서 확실히 어떤 에러 때문인지는 모르겠는데 파이썬 Certificate를 다시 해주니 해결이 된 듯 하다) 2023. 3. 18.
Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output / yarn build할때 sentry 에러난 부분 잡기 sentry를 설치하고 다시 바셀에 릴리즈 version1.1을 배포하기 위해 yarn build를 하려고 하니 에러가 발생했다. [에러메세지] Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output. next.confing.js 파일은 웹팩 설정 파일인데 센트리를 깔고나서 이 설정을 withSentryConfig로 감싸주어야 한다고 한다. yarn build할때 저 withSentryConfig가 적용이 되고 빌드한 파일이 센트리에 업로드가 되는 거라고 한다. https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ Manual S.. 2023. 3. 3.
varcel module-not-found-error nextjs (next.js 바셀 배포하려고 하는데 뜬 에러) 에러메세지 varcel module-not-found-error nextjs 원인 프로젝트 계속 작업하면서 중간에 한번 컴포넌트 이름을 대문자로 바꿨는지, "대문자" , "소문자"가 달라서 경로가 달랐다............ 해결 경로수정 하면 성공 ㅇ. 2023. 2. 23.
오류메세지 : Firebase App named '[DEFAULT]' already exists (app/duplicate-app) 에러메세지명 Firebase App named '[DEFAULT]' already exists (app/duplicate-app) 해결코드 let firebase; if (!getApps().length) firebase = initializeApp(firebaseConfig); -> 이건 파이어베이스 9버전인가 그거부터되는것같던데 참고로 내 파이어베이스 버전은 이거임 "firebase": "^9.17.1", 전체코드 import { initializeApp, getApps } from "firebase/app"; import { getAuth } from "firebase/auth"; import { getFirestore } from "firebase/firestore"; import { getSto.. 2023. 2. 23.
오류메세지 : FirebaseError: Firebase: Error (auth/invalid-api-key) 에러 메세지 FirebaseError: Firebase: Error (auth/invalid-api-key). 원인 1. api키를 처음에 NEXT_PUBLIC을 안해줬다. 2. .env 파일에서 ""와 , 를 모두 떼주어야했다. 2023. 2. 23.