Repository navigation
π μ΅λͺ λλ€μ μ€λ³΅ μ 503 λ° λμμ± μ€λ₯ μμ - #49
Merged
Merged
Conversation
- μ€λ³΅: μμ±κΈ°λ₯Ό λ€μ λΆλ₯΄μ§ μκ³ "#μ«μ4μ리" μ λ―Έμ¬(μ: μ©κ°νκ³ μμ΄#4821)λ₯Ό λΆμ¬ μ΅λ 5ν μ¬μλ. ν΄λ°± νμ΄ 8κ°λΏμ΄λΌ μμ±κΈ° μ¬νΈμΆλ§μΌλ‘λ 9λ²μ§Έ μ¬μ©μλΆν° μꡬ 503μ΄ λλ λ¬Έμ ν΄κ²°. μμ§ μ error λ‘κ·Έ + NicknameGenerationFailedException(503) - νΈλμμ : λλ€μ μμ±(OpenAI νΈμΆ)μ νΈλμμ λ°μΌλ‘ λΆλ¦¬νκ³ μ μ₯λ§ TransactionTemplateμΌλ‘ μ§§κ² μ²λ¦¬. μ΄λ―Έ λλ€μμ΄ μμΌλ©΄ μμ±κΈ° νΈμΆκ³Ό μ€λ³΅ μ‘°νλ₯Ό 건λλ - λμμ±: μ μ₯ μ UNIQUE μλ°(DataIntegrityViolationException)μ μ‘μ κ°μ μ λ―Έμ¬ μ¬μλλ‘ μ°κ²°(κΈ°μ‘΄μ 500) - AI λͺ¨λ(NicknameService, ν΄λ°± ν)μ μμ νμ§ μμ - ν μ€νΈ: ν 8κ° μμ§ ν 9λ²μ§Έ μ΄ν μ μ μμ±, κΈ°μ‘΄ λλ€μμ΄λ©΄ μμ±κΈ° λ―ΈνΈμΆ, UNIQUE μλ° μ¬μλ μ±κ³΅/μμ§, μμ±μ΄ νΈλμμ λ°μμ μΌμ΄λλμ§ κ²μ¦. κΈ°μ‘΄ μ€λ³΅ μ²λ¦¬ 2건μ μ λ―Έμ¬ λ°©μμ λ§κ² μμ Co-Authored-By: Claude Sonnet 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.
κ°μ
μ΅λͺ λλ€μ ν κΈ(
PATCH /users/me/anonymous)μμ λ°κ²¬λ μν 3κ°μ§λ₯Ό μμ ν©λλ€.UserServiceλ§ μμ νκ³ AI λͺ¨λ(NicknameService, ν΄λ°± ν)μ λ³κ²½νμ§ μμμ΅λλ€.μμ λ΄μ©
#4821κ°μ 4μ리 μ λ―Έμ¬λ₯Ό λΆμ¬ μ΅λ 5ν μ¬μλ. μμ§λλ©΄ error λ‘κ·Έ +NicknameGenerationFailedException(503)@TransactionalTransactionTemplateμΌλ‘ μ§§κ². κΈ°μ‘΄ λλ€μμ΄ μμΌλ©΄ μμ±κΈ° νΈμΆ μλ΅saveAndFlushμμDataIntegrityViolationExceptionμ μ‘μ β μ μ λ―Έμ¬ μ¬μλλ‘ μ°κ²°ν μ€νΈ
DemoNicknameGeneratorμ¬μ©)νκ³
UNIQUE κ²½ν© μ¬μλλ mock κΈ°λ° λ¨μ ν μ€νΈλ‘λ§ κ²μ¦νμ΅λλ€.
μ€μ DB λμ μμ²μ 11μ ν΅ν© ν μ€νΈμμ νμΈν μμ μ λλ€.
리뷰 μμ²
(ν νμ₯μ΄λ ν΄λ°± μ κ±°λ λμ€μ λ€κ° νλ¨νλ©΄ λΌ)