From 0c60619d8545642c6f69c456e49f652e6b471002 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 2 Dec 2025 08:11:00 +0000 Subject: [PATCH] Add missing /v2/batch/scrape/:jobId/errors endpoint The V2 router was missing the batch scrape errors endpoint that both the JS and Python V2 SDKs expect. This caused a 'Cannot GET' error when clients tried to fetch batch scrape errors via the V2 API. The fix adds the route using the same crawlErrorsController that handles /v2/crawl/:jobId/errors, matching the V1 implementation pattern. Co-Authored-By: gaurav@sideguide.dev --- apps/api/src/routes/v2.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/api/src/routes/v2.ts b/apps/api/src/routes/v2.ts index 87d58d767..8396b5173 100644 --- a/apps/api/src/routes/v2.ts +++ b/apps/api/src/routes/v2.ts @@ -252,6 +252,12 @@ v2Router.delete( wrap(crawlCancelController), ); +v2Router.get( + "/batch/scrape/:jobId/errors", + authMiddleware(RateLimiterMode.CrawlStatus), + wrap(crawlErrorsController), +); + v2Router.get( "/crawl/:jobId/errors", authMiddleware(RateLimiterMode.CrawlStatus),