스프링 - Google OAuth2 value too long for type character varying(255) 문제 해결 작성 일자 : 2025년 04월 27일 발생한 문제 서비스 운영 도중 유저분께서 구글 로그인을 시도하였으나, Unauthorized 에러가 발생했다는 제보를 받았습니다. 해당 시간에 로그를 확인해보니 아래와 같은 에러가 발생했습니다.2025-04-26T08:57:32.195Z ERROR 1 --- [lumo] [nio-8080-exec-3] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: value too long for type character varying(255)org.springframework.dao.DataIntegri..
Trouble Shooting

스프링 - NICE 본인인증 API connection timed out 해결 작성 일자 : 2025년 03월 23일 발생 오류 NICE 본인인증 API를 호출하는 중, AWS ECS Production 환경에서 connection timed out 오류가 발생했습니다.2025-03-18T14:52:36.194Z ERROR 1 --- [xxxx] [nio-8080-exec-3] c.g.l.d.u.s.AdultVerificationService : Failed to initialize adult verificationorg.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://svc.ni..
Curl 로 Claude API 요청 시, 아래와 같은 오류가 발생하였다.# 오류"messages.0.cache_control: Extra inputs are not permitted" # 해결 방법아래와 같이 "cache_control": {"type": "ephemeral"} 부분을 "content"와 동일한 레벨이 아닌 "content" 내부에 위치시킨다.curl https://api.anthropic.com/v1/messages \ --header "x-api-key: $ANTHROPIC_API_KEY" \ --header "anthropic-version: 2023-06-01" \ --header "content-type: application/json" \ --da..

GithubActions에서 CloudFlare WAF ByPass하기 작성 일자 : 2025년 02월 16일 발생 오류 GithubActions를 통해 CI/CD 파이프라인을 구축하던 중, CloudFlare WAF로 인해 NextJS 빌드가 실패하는 문제가 발생했습니다. (필자는 모든 해외 IP를 차단하는 WAF 설정을 사용하고 있습니다.)#16 667.4 Error: Failed to fetch XXX#16 667.4 at p (/app/.next/server/app/(main)/page.js:1:29086)#16 667.4 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)#16 667.4 ..
문제혹시나 스프링 부트에서 Google OAuth2 소셜 로그인 기능을 구현하고, 프로덕션 도메인(https)에서 접속하였을 때 아래와 같은 증상이 발생한다면:Error 400: redirect_uri_mismatcherror details를 눌러서 확인하면, Request details에 http://example.com/login/oauth2/code/google 이라고 적혀있음(http!!!) 해결application.yml에 아래와 같이 redirect-uri를 https로 명시해준다spring: security: oauth2: client: registration: google: client-id: ${GOOGLE_CLIENT_ID..

Cloudflare - R2 Bucket CORS 에러 해결하기 작성일자 : 2024_년 12월 29일 (이미지) 개요 아래와 같은 JS 코드에서 Cloudflare R2 Bucket에 있는 이미지를 불러오려고 할 때, CORS 에러가 발생하였다.const createImage = (url: string): Promise => { return new Promise((resolve, reject) => { const image = new Image(); image.addEventListener("load", () => resolve(image)); image.addEventListener("error", error => reject(error)); image.setAttribute(..
NextJS - ReferenceError: File is not defined 해결하기 작성 일자 : 2024년 12월 21일 (이미지) 어떤 문제가 발생했는가?Answer: NextJS에서 Production 서버에서만 ReferenceError: File is not defined 에러 발생 CloudWatch 로그ReferenceError: File is not definedat 40901 (/app/.next/server/chunks/438.js:1:5746)at Function.t (/app/.next/server/webpack-runtime.js:1:128)at process.processTicksAndRejections (node:internal/process/task_queues:95..
GithubActions - ERROR: failed to solve: process "/dev/.buildkit_qemu_emulator... 해결하기 작성 일자 : 2024년 12월 19일 (이미지) 어떤 문제가 발생했는가? 발단: Github Actions에서 NextJS Docker 이미지 빌드docker buildx build --platform linux/arm64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . --push -f $DOCKER_FILE 에러 메시지prod.Dockerfile:30-------------------- 29 | 30 | >>> RUN \ 31 | >>> if [ -f yarn.lock ]; then yarn run bu..