You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: PDF upload shows “uploaded successfully” but indexing fails (“Index failed”) #1457
When uploading a PDF file, the system shows a success message, but the file fails during indexing. This creates a mismatch between system feedback and actual processing status.
Steps to reproduce
Open Chat
Click Attach
Upload a PDF file
Observe upload status
Expected behavior
Upload success message should only show after indexing is completed successfully
Affected service
Platform
Version or commit
No response
Browser and OS
No response
Relevant log output
Screenshots or recordings
Before submitting
I searched existing issues and this hasn't been reported yet.
@mdabdulkarimqa456-code Could you verify that the API key configured for the AI provider has valid credits and can be used for normal chat? The 402 error ("Insufficient credits") suggests the key may not have an active balance.
Activity
larryro commentedon Apr 12, 2026
@mdabdulkarimqa456-code can you run
docker compose logs tale_ragin another terminal and share the logs?I don't see any logs
mdabdulkarimqa456-code commentedon Apr 12, 2026
openai.APIStatusError: Error code: 402
'Insufficient credits. This account never purchased credits.'
Here is the relevant log snippet related to the PDF indexing failure:
openai.APIStatusError: Error code: 402
'Insufficient credits. This account never purchased credits.'
This occurs during the embedding generation step, which causes the indexing process to fail.
larryro commentedon Apr 12, 2026
@mdabdulkarimqa456-code Could you verify that the API key configured for the AI provider has valid credits and can be used for normal chat? The 402 error ("Insufficient credits") suggests the key may not have an active balance.
fix(platform): defer chat upload success toast until indexing complet…
test: cover deferred indexing toast firing in use-file-indexing-status (
fix(platform): defer chat upload success toast until indexing complet…