Skip to content

Bug: PDF upload shows “uploaded successfully” but indexing fails (“Index failed”) #1457

Closed

Description

@mdabdulkarimqa456-code

What happened?

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

  1. Open Chat
  2. Click Attach
  3. Upload a PDF file
  4. 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

Image

Before submitting

  • I searched existing issues and this hasn't been reported yet.

Activity

  1. larryro commented on Apr 12, 2026

    @larryro
    Contributor

    @mdabdulkarimqa456-code can you run docker compose logs tale_rag in another terminal and share the logs?

    I don't see any logs

    Image
  2. mdabdulkarimqa456-code commented on Apr 12, 2026

    @mdabdulkarimqa456-code
    Author

    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.

  3. self-assigned this
    on Apr 12, 2026
  4. larryro commented on Apr 12, 2026

    @larryro
    Contributor

    @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.

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

Metadata

Metadata

Assignees

Labels

bugservice: platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions