F
Firecrawl14mo ago
Emma

Cannout get around of cloudfare with the nodejs API call

This is my code const params = { pageOptions: { includeHtml: true, onlyMainContent: false, waitFor: 8000 } }; const scrapedData = await firecrawlApp.scrapeUrl(link, params); if (!scrapedData.success) { throw new Error('Firecrawl crawling failed'); } console.log(scrapedData)
No description
17 Replies
Emma
EmmaOP14mo ago
I noticed that the website play ground has no issues though. What's the reason for the difference? The curl request will just give a unexpected error
No description
Emma
EmmaOP14mo ago
updated to the newest js-sdk to try and still get the cloudfare error
No description
Adobe.Flash
Adobe.Flash14mo ago
@thomas cloudflare is blocking this one. Can you look into it?
Emma
EmmaOP14mo ago
the issue is only with the js-sdk . Not sure why the website playground is good but the js-sdk is bad
Adobe.Flash
Adobe.Flash14mo ago
weird that looks like a different url from the one you tried on the playground ccing @rafaelmiller here for visibility in the js sdk in case that has smth to do with it
Emma
EmmaOP14mo ago
I tried two URLs under the nivod.cc domain with js-sdk. Both don't work see here: https://discord.com/channels/1226707384710332458/1281654421322862754/1281654421322862754 it is also having the cloudfare issue.
rafaelmiller
rafaelmiller13mo ago
hey @Emma ! I tested the js-sdk with both urls and didn't get the cloudflare pages you're seeing. Are you self-hosting firecrawl?
Emma
EmmaOP13mo ago
No, we are using the js-sdk. Which website did you test? Did you test with https://nivod.cc/ ? It will trigger the cloudfare 100% of time
Emma
EmmaOP13mo ago
this is the scrapedData
No description
rafaelmiller
rafaelmiller13mo ago
this shouldn't be happening. @thomas have you had a chance to look into this?
Emma
EmmaOP13mo ago
it is still happening
Emma
EmmaOP13mo ago
The difference is that previous it get resolved 0% times . Now, it get resolved 50% . But there are still chances that the cloudfare protection is still resolved and the result is returned back. See the Slack channel for examples https://alttmdsdujxrfnakrkyi.supabase.co/storage/v1/object/public/media/screenshot-4813021.png
Emma
EmmaOP13mo ago
This is what happening this morning. The fix is not stable
Emma
EmmaOP13mo ago
No description

Did you find this page helpful?