ERR_CREDITS_INSUFFICIENT β Credits Insufficient
HTTP Status: 402 Retryable: No Automatic retry: None. This is a business logic check, not a transient error.
What the User Sees
Insufficient credits for this conversion. (ERR_CREDITS_INSUFFICIENT)
What Causes This Error
The userβs credit balance is lower than the number of pages in the document they are attempting to convert. Credits are checked before conversion starts to avoid wasting AI processing resources on conversions that cannot be completed.
This is normal business logic, not an error condition. The credit check compares the userβs current balance against the estimated cost (typically 1 credit per page). If the balance is insufficient, the conversion is rejected immediately with a clear message.
The credit check accounts for page ranges β if the user specifies a page range (e.g., pages 1-5), only the cost for those specific pages is checked, not the entire document.
Resolution Steps
For Users
- Purchase more credits from the Credits page. Multiple credit packages are available at different price points.
- Alternatively, use page ranges to convert fewer pages at a time, staying within your current credit balance.
- Check your current credit balance on the Credits page or in the account dropdown.
- If you believe your credit balance is incorrect, contact support.
For Administrators
- No action is needed for this error β it is working as designed.
- To grant credits manually to a specific user: navigate to Admin > Users > select the user > Grant Credits.
- Credits can also be granted programmatically via the API:
POST /api/admin/credits/grantwith the user ID and credit amount. - To adjust credit pricing or package sizes, update the
credit_packagestable in Supabase. Ensure corresponding Stripe price IDs are valid. - If multiple users are reporting this error unexpectedly, verify that the credit deduction amounts are correct and that a recent code change did not inflate the per-page cost.
Related Errors
- ERR_CREDITS_DEDUCTION_FAILED β Credits exist but the deduction operation itself failed