fix: increase VIN decode timeout for Gemini cold start #230

Merged
egullickson merged 1 commits from issue-223-replace-nhtsa-vin-decode-gemini into main 2026-02-20 03:37:50 +00:00
Owner

Summary

  • Increase decodeVin API timeout from 10s (default) to 60s to handle Gemini cold starts (observed 34s+ on first call)
  • Fixes "Failed to decode VIN" frontend error when OCR service returns 200 OK but the response arrives after the client timeout

Test plan

  • Decode a VIN after OCR container restart (cold start scenario)
  • Verify no timeout error in the frontend
  • Verify cached decodes still return quickly

Fixes #229

🤖 Generated with Claude Code

## Summary - Increase `decodeVin` API timeout from 10s (default) to 60s to handle Gemini cold starts (observed 34s+ on first call) - Fixes "Failed to decode VIN" frontend error when OCR service returns 200 OK but the response arrives after the client timeout ## Test plan - [ ] Decode a VIN after OCR container restart (cold start scenario) - [ ] Verify no timeout error in the frontend - [ ] Verify cached decodes still return quickly Fixes #229 🤖 Generated with [Claude Code](https://claude.com/claude-code)
egullickson added 1 commit 2026-02-20 03:31:46 +00:00
fix: increase VIN decode timeout to 60s for Gemini cold start (refs #229)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 3m31s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 51s
Deploy to Staging / Verify Staging (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
3b5b84729f
Default 10s API client timeout caused frontend "Failed to decode" errors
when Gemini engine cold-starts (34s+ on first call).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
egullickson merged commit e2e6471c5e into main 2026-02-20 03:37:50 +00:00
egullickson deleted branch issue-223-replace-nhtsa-vin-decode-gemini 2026-02-20 03:37:50 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#230