Error while parsing the PDF files. #361

Closed
opened 2026-02-16 00:17:37 -05:00 by yindo · 4 comments
Owner

Originally created by @UsamaAmjad03 on GitHub (Dec 4, 2024).

Originally assigned to: @BinaryBrain on GitHub.

Describe the bug
I have submitted the multiple PDF and images files, one PDF file took 10-12 minutes in processing and got "Error while parsing". I do get this issue frequently, but not always.

Files
cant share file due to privacy issue.

Job ID
dfd1c132-a888-4447-905a-9aa0c98f4770

Client:
Please remove untested options:

  • Python Library
  • API

Additional context
Using accurate mode with parsing instruction and do not unroll column = true.

Originally created by @UsamaAmjad03 on GitHub (Dec 4, 2024). Originally assigned to: @BinaryBrain on GitHub. **Describe the bug** I have submitted the multiple PDF and images files, one PDF file took 10-12 minutes in processing and got "Error while parsing". I do get this issue frequently, but not always. **Files** cant share file due to privacy issue. **Job ID** dfd1c132-a888-4447-905a-9aa0c98f4770 **Client:** Please remove untested options: - Python Library - API **Additional context** Using accurate mode with parsing instruction and do not unroll column = true.
yindo added the bug label 2026-02-16 00:17:37 -05:00
yindo closed this issue 2026-02-16 00:17:37 -05:00
Author
Owner

@BinaryBrain commented on GitHub (Dec 4, 2024):

Hi @UsamaAmjad03,
I see you're receiving a 401 error when trying to retrieve the results.
Can you double check you API key is valid and correctly injected in the request?
Can you see the job in the history tab on https://cloud.llamaindex.ai/parse ?
Can you share your Python code so we can help you debug it?

@BinaryBrain commented on GitHub (Dec 4, 2024): Hi @UsamaAmjad03, I see you're receiving a 401 error when trying to retrieve the results. Can you double check you API key is valid and correctly injected in the request? Can you see the job in the history tab on https://cloud.llamaindex.ai/parse ? Can you share your Python code so we can help you debug it?
Author
Owner

@UsamaAmjad03 commented on GitHub (Dec 5, 2024):

Hi @UsamaAmjad03, I see you're receiving a 401 error when trying to retrieve the results. Can you double check you API key is valid and correctly injected in the request? Can you see the job in the history tab on https://cloud.llamaindex.ai/parse ? Can you share your Python code so we can help you debug it?

1)Yes my API key is valid and correctly injected in the request.
2)No, i cannot see the job in the history tab.
3)Following is the code:

llama_parser = LlamaParse(
                            api_key=my_api_key,
                            result_type="markdown",
                            num_workers=5,
                            verbose=True,
                            do_not_unroll_columns=True,
                            invalidate_cache=False,  # Disable caching
                            do_not_cache=False,  # Disable caching
                            parsing_instruction="""
    [INST] 
    You are a table extraction expert.
    Please follow these instructions:
.............................................................................
    [/INST]
"""
                        )

                    # Load and parse the PDF using LlamaParse
                    extracted_documents = await llama_parser.aload_data(temp_pdf_path)
@UsamaAmjad03 commented on GitHub (Dec 5, 2024): > Hi @UsamaAmjad03, I see you're receiving a 401 error when trying to retrieve the results. Can you double check you API key is valid and correctly injected in the request? Can you see the job in the history tab on https://cloud.llamaindex.ai/parse ? Can you share your Python code so we can help you debug it? 1)Yes my API key is valid and correctly injected in the request. 2)No, i cannot see the job in the history tab. 3)Following is the code: ``` llama_parser = LlamaParse( api_key=my_api_key, result_type="markdown", num_workers=5, verbose=True, do_not_unroll_columns=True, invalidate_cache=False, # Disable caching do_not_cache=False, # Disable caching parsing_instruction=""" [INST] You are a table extraction expert. Please follow these instructions: ............................................................................. [/INST] """ ) # Load and parse the PDF using LlamaParse extracted_documents = await llama_parser.aload_data(temp_pdf_path) ```
Author
Owner

@UsamaAmjad03 commented on GitHub (Dec 5, 2024):

@BinaryBrain got the error again today and now in image pdf file and openai gpt4o model, job is "db1aaab9-d23c-4d37-a01f-ebeff4224aab", and it is also getting shown in history tab, but in the code i got this "Error while parsing the file '/tmp/tmpf7dg7_6i.pdf'"

@UsamaAmjad03 commented on GitHub (Dec 5, 2024): @BinaryBrain got the error again today and now in image pdf file and openai gpt4o model, job is "db1aaab9-d23c-4d37-a01f-ebeff4224aab", and it is also getting shown in history tab, but in the code i got this "Error while parsing the file '/tmp/tmpf7dg7_6i.pdf'"
Author
Owner

@BinaryBrain commented on GitHub (Dec 5, 2024):

On what I see from my side for job db1aaab9-d23c-4d37-a01f-ebeff4224aab, you have exceeded your token limit in your gpt4o org (RATE_LIMIT_EXCEEDED).

@BinaryBrain commented on GitHub (Dec 5, 2024): On what I see from my side for job `db1aaab9-d23c-4d37-a01f-ebeff4224aab`, you have exceeded your token limit in your gpt4o org (`RATE_LIMIT_EXCEEDED`).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#361