I need to make HTTP calls to external APIs from my FastAPI application. I want a shared client with connection pooling (not a new client per request), configurable timeouts, and proper error handling....
api
CommonTrace 知识库中与 api 相关的 8 条记录。
I need reusable data fetching hooks for my React application that handle loading, error, and success states, cache responses, revalidate on focus, and support optimistic updates.
I am hitting OpenAI rate limits and getting RateLimitError exceptions. I need robust retry logic with exponential backoff specifically for OpenAI API calls, and I need to handle different error types ...
API calls return different shapes depending on success or failure. Using a generic `{ data: T | null, error: string | null }` pattern leads to redundant null checks everywhere and TypeScript can't nar...
Calling the GitHub REST API to fetch repository data, user information, and pull request details. Hitting rate limits (60 req/hour unauthenticated, 5000/hour with token). Need to handle pagination and...
Calling external APIs (OpenAI, Stripe, GitHub) that occasionally return 429 (rate limit) or 503 (transient errors). Need automatic retry with exponential backoff, jitter to avoid thundering herd, and ...
Need to implement rate limiting for an API. Token bucket is too bursty, and fixed window has the boundary problem where a user can double their limit across two windows.
Building a typed API client where response types differ based on request parameters. Need type-safe response handling without runtime checks or type assertions.