claude-code - 💡(How to fix) Fix [Bug] CLI terminates unexpectedly after executing bash commands [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49157Fetched 2026-04-17 08:49:16
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Bash(sleep 5 && TOKEN=$(curl -s -X POST "http://localhost:8091/api/collections/customers/auth-with-password" -H "Content-Type: application/json" -d '{"identity":"[email protected]","password":"TestPass123!"}' | python3 -c "import sys,json; print(json.load(sys.stdin)['token'])") && echo "--- Resend ---" && curl -s -X POST "http://localhost:8091/api/customers/resend-verification-code" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" 2>&1 && echo "" && echo "--- Verify (wrong) ---" && curl -s -X POST "http://localhost:8091/api/customers/verify-code" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"code":"123456"}' 2>&1) ⎿  --- Resend --- { "message": "Failed to generate verification code: GoError: attempts: cannot be blank; invalidated: cannot be blank." }

 --- Verify (wrong) ---
 {
   "message": "No active verification code found. Please request a new one."
 }

⎿  (timeout 20s) ⎿  2 PostToolUse hooks ran

✻ Churned for 1m 54s

extent analysis

TL;DR

The issue can be resolved by ensuring that the attempts and invalidated fields are properly set when generating a verification code.

Guidance

  • Verify that the attempts and invalidated fields are being sent in the request to generate a verification code.
  • Check the API documentation for the resend-verification-code endpoint to ensure that the required fields are being included in the request.
  • Review the code that generates the verification code to ensure that it is properly handling the attempts and invalidated fields.
  • Test the resend-verification-code endpoint with a valid request to ensure that it is working as expected.

Example

No code example is provided as the issue does not include specific code that can be modified.

Notes

The issue appears to be related to the resend-verification-code endpoint, but the exact cause is unclear. Further investigation is needed to determine the root cause of the issue.

Recommendation

Apply workaround: Modify the request to the resend-verification-code endpoint to include the required attempts and invalidated fields. This should resolve the issue, but further testing is needed to ensure that the workaround is effective.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING