Skip to content

feat: improve PriceCharting service reliability and error handling#43

Open
poketonova wants to merge 1 commit into
mainfrom
dev-agent-improvement-2026-06-29
Open

feat: improve PriceCharting service reliability and error handling#43
poketonova wants to merge 1 commit into
mainfrom
dev-agent-improvement-2026-06-29

Conversation

@poketonova

Copy link
Copy Markdown
Collaborator

Pro Value Contribution

This automated PR improves the reliability and consistency of the PriceCharting service in Rarebox.

Key Improvements:

  1. Request Timeouts: Integrated AbortSignal.timeout (10s) into API calls. This prevents the app from waiting indefinitely on hanging network requests, ensuring a snappier user experience even on poor connections.
  2. Consistent Error Handling: Added a try-catch wrapper to getPCProduct, bringing it in line with searchPCProducts. Both methods now consistently catch CORS, network, and timeout errors, providing predictable error signals to the UI.
  3. Enhanced Reliability: By standardizing error handling and timeouts, the service is now better equipped to handle external API fluctuations without impacting the stability of the rest of the application.

This change aligns the PriceCharting service with the robust error-handling patterns found in other parts of the codebase (like pokemonApi.js).

- Added AbortSignal.timeout to fetch calls to prevent hanging requests.
- Added consistent try-catch blocks for network/CORS errors in both search and product details.
- Standardized error reporting for better UI feedback.
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pokemon-collectr Ready Ready Preview, Comment Jun 29, 2026 3:02pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant