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

[Bug] asyncBatchScrapeUrls + schema extract doesn't work #1091

Closed
hala94 opened this issue Jan 25, 2025 · 3 comments · Fixed by #1195
Closed

[Bug] asyncBatchScrapeUrls + schema extract doesn't work #1091

hala94 opened this issue Jan 25, 2025 · 3 comments · Fixed by #1195
Assignees
Labels
bug Something isn't working

Comments

@hala94
Copy link

hala94 commented Jan 25, 2025

Describe the Bug

  • invoking asyncBatchScrapeUrls SDK method with extract+schema will silently fail
  • data is not received when checking the status via checkBatchScrapeStatus
  • batch_scrape.page event is never received in the supplied webhook
  • everything looks like a success, but the data is just missing
  • same action will complete successfully when a sync method is used

Status response example:

{
  success: true,
  status: "completed",
  total: 0,
  completed: 0,
  creditsUsed: 0,
  next: undefined,
  expiresAt: 2025-01-26T09:47:16.000Z,
  data: [],
}

To Reproduce

await firecrawl.asyncBatchScrapeUrls(
    ["https://www.firecrawl.dev/"],
    {
      onlyMainContent: true,
      formats: ["extract"],
      extract: {
        prompt: "Extract title.",
        schema: z.object({
          title: z.string(),
        }),
      },
    }
  );

Expected Behavior

  • either extract is completed sucessfully or a webhook event + status check should indicate an error

webhook events should be:

  1. batch_scrape.started
  2. batch_scrape.page - this contains data
  3. batch_scrape.completed or batch_scrape.failed

Environment (please complete the following information):

  • OS: [macOS]
  • Firecrawl Version: [1.15.7]
  • Node.js Version: [20.0.0]
@hala94 hala94 added the bug Something isn't working label Jan 25, 2025
@nickscamara
Copy link
Member

@mogery can you please take a look at this one?

@hala94
Copy link
Author

hala94 commented Feb 16, 2025

any progress on this?

Copy link
Member

mogery commented Feb 18, 2025

Fixed! Thanks for reporting, sorry for taking so long!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants