Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(v0/scrape): ensure url is string

Gergő Móricz83a165db0fd0
diff --git a/apps/api/src/controllers/v0/scrape.ts b/apps/api/src/controllers/v0/scrape.ts
index bc91da18c..2a5f1d4f8 100644
--- a/apps/api/src/controllers/v0/scrape.ts
+++ b/apps/api/src/controllers/v0/scrape.ts
@@ -39,7 +39,7 @@ export async function scrapeHelper(
returnCode: number;
}> {
const url = req.body.url;
- if (!url) {
+ if (typeof url !== "string") {
return { success: false, error: "Url is required", returnCode: 400 };
}