Repository navigation
fix(ai-proxy): Worker 실행 위치를 미국 리전으로 고정해 Anthropic 403 해결 - #151
Merged
Merged
Conversation
한국 요청이 Cloudflare 홍콩(HKG) 데이터센터로 들어가면 Anthropic이 미지원 지역으로 보고 403 forbidden을 돌려줘 AI 플랜이 AI_UNAVAILABLE로 실패했다. 키 없는 probe Worker로 HKG=403, NRT=401을 확인했고, placement region을 aws:us-east-1로 지정하면 20/20 IAD에서 실행됐다. region 키는 wrangler 4부터 지원하므로 ai-proxy만 wrangler를 올린다. 최신 4.15x는 workers-types v5를 요구해 범위가 커지므로, 현재 workers-types v4와 호환되는 4.100으로 고정한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AI_UNAVAILABLE로 실패하던 원인 수정. 한국 요청이 Cloudflare 홍콩(HKG) 데이터센터로 들어가면 Anthropic이 미지원 지역으로 보고403 {"type":"forbidden","message":"Request not allowed"}를 반환함wrangler dev경유는 성공 → 키·코드 문제 아님ai-proxy/wrangler.toml에[placement] region = "aws:us-east-1"추가. probe에 적용 시 20/20 IAD 실행·401(cf-placement: remote-IAD)region키는 wrangler 4부터 지원 → ai-proxy만 wrangler^3.99.0→~4.100.0@cloudflare/workers-typesv5를 요구해 범위가 커지므로, 현재 v4와 호환되는 4.100으로 고정. 다른 Worker 3개는 wrangler 3 유지배포 주의
wrangler deploy로 선배포 예정Test plan
npm run typecheck통과npm test42개 통과wrangler deploy --dry-run(4.100)에서 placement region 설정 수용🤖 Generated with Claude Code