firecrawl icon indicating copy to clipboard operation
firecrawl copied to clipboard

[py-sdk] Error when throwing an error :)

Open iuliaturc opened this issue 5 months ago • 2 comments

Scraping https://azure.microsoft.com/en-us/solutions/hugging-face-on-azure/ I get:

url = "https://azure.microsoft.com/en-us/solutions/hugging-face-on-azure/"
scrape_result = app.scrape_url(url, params={"formats": ["markdown"]})
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python3.12/site-packages/firecrawl/firecrawl.py", line 86, in scrape_url
    raise Exception(f'Failed to scrape URL. Error: {response["error"]}')
                                                    ~~~~~~~~^^^^^^^^^
KeyError: 'error'

iuliaturc avatar Sep 13 '24 00:09 iuliaturc