Error parsing HTML #269

Closed
opened 2026-02-16 00:17:20 -05:00 by yindo · 1 comment
Owner

Originally created by @SuryaThiru on GitHub (Sep 12, 2024).

Originally assigned to: @hexapode on GitHub.

Describe the bug
I'm working with the HTML documents, and Im' currently running into errors when trying to load it. When I try to load a simple HTML file (attached below), with this code, I get errors.

parser = LlamaParse(
    api_key=API_TOKEN,  # can also be set in your env as LLAMA_CLOUD_API_KEY
    result_type="text",  # "markdown" and "text" are available
    num_workers=6,  # if multiple files passed, split in `num_workers` API calls
    verbose=True,
    language="en",  # Optionally you can define a language, default=en
    skip_diagonal_text=True
)

parsed_docs = parser.load_data('llamaparse/test.html')
print(parsed_docs)

Files

HTML upload wasn't allowed so I'm uploading a zip

test.html.zip

Content:

<html>
    <head>
        <title>Test</title>
    </head>
    <body>
        <div>
            <div>dummy content</div>
            <h1>Hello</h1>
            <p>World</p>
            <h2>List</h2>
            <ul>
                <li>Item 1</li>
                <li>Item 2</li>
                <li>Item 3</li>
            </ul>
        </div>
    </body>
</html>

Job ID

72934284-787f-4acb-8e24-17355c80beff

Screenshots

Started parsing the file under job_id 72934284-787f-4acb-8e24-17355c80beff
Error while parsing the file 'llamaparse/test.html': Failed to parse the file: 72934284-787f-4acb-8e24-17355c80beff, status: ERROR
[]

Client:

  • Python Library

Options
See code above

Originally created by @SuryaThiru on GitHub (Sep 12, 2024). Originally assigned to: @hexapode on GitHub. **Describe the bug** I'm working with the HTML documents, and Im' currently running into errors when trying to load it. When I try to load a simple HTML file (attached below), with this code, I get errors. ```python parser = LlamaParse( api_key=API_TOKEN, # can also be set in your env as LLAMA_CLOUD_API_KEY result_type="text", # "markdown" and "text" are available num_workers=6, # if multiple files passed, split in `num_workers` API calls verbose=True, language="en", # Optionally you can define a language, default=en skip_diagonal_text=True ) parsed_docs = parser.load_data('llamaparse/test.html') print(parsed_docs) ``` **Files** HTML upload wasn't allowed so I'm uploading a zip [test.html.zip](https://github.com/user-attachments/files/16981315/test.html.zip) Content: ```html <html> <head> <title>Test</title> </head> <body> <div> <div>dummy content</div> <h1>Hello</h1> <p>World</p> <h2>List</h2> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> </div> </body> </html> ``` **Job ID** 72934284-787f-4acb-8e24-17355c80beff **Screenshots** ``` Started parsing the file under job_id 72934284-787f-4acb-8e24-17355c80beff Error while parsing the file 'llamaparse/test.html': Failed to parse the file: 72934284-787f-4acb-8e24-17355c80beff, status: ERROR [] ``` **Client:** - Python Library **Options** See code above
yindo added the bug label 2026-02-16 00:17:20 -05:00
yindo closed this issue 2026-02-16 00:17:20 -05:00
Author
Owner

@BinaryBrain commented on GitHub (Sep 12, 2024):

Thanks for reporting the bug. It'll be fix in about 30min.

@BinaryBrain commented on GitHub (Sep 12, 2024): Thanks for reporting the bug. It'll be fix in about 30min.
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#269