Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Self-Host] RangeError: Invalid string length #848

Open
shaxiaozz opened this issue Oct 30, 2024 · 0 comments
Open

[Self-Host] RangeError: Invalid string length #848

shaxiaozz opened this issue Oct 30, 2024 · 0 comments

Comments

@shaxiaozz
Copy link

environment:
firecrawl: main-branch
docker: 24.0.7
dify: 0.10.2

Describe the Issue
I am crawling a website with a lot of data. I am not using cURL to crawl, but dify to crawl.

I found that when the number of crawled pages reaches about 15,000 pages, the firecrawl-api-1 container will report an error "ERROR - RangeError: Invalid string length". As shown in the following log::
[2024-10-30T03:13:29.584Z]ERROR - RangeError: Invalid string length

And the dify front end will also report an error 500, as shown in the following screenshot:
image

I don't know where the problem is. I tried to adjust the --max-old-space-size parameter in the "apps/api/docker-entrypoint.sh" file to --max-old-space-size=30720
image

I also found that after firecrawl-api-1 reported an error, firecrawl-worker-1 continued to crawl until the crawl was completed. And I observed that the queue webui did not report any errors. (The website crawled a total of 16793 pages)
image

Expected Behavior
After firecrawl-worker-1 finishes crawling, firecrawl-api-1 responds to requests normally.

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

No branches or pull requests

1 participant