From 0abcead3598049e08da9c41d2038c2acdaab4cc1 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 4 Aug 2026 19:07:37 +0200 Subject: [PATCH] fix: use /v1 endpoint for FlareSolverr API FlareSolverr v3.x uses /v1 endpoint, not root /. The previous implementation was hitting the root endpoint which returned 405 Method Not Allowed. --- src/lib/services/flare-solver.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/services/flare-solver.ts b/src/lib/services/flare-solver.ts index e6fe796b..07b24148 100644 --- a/src/lib/services/flare-solver.ts +++ b/src/lib/services/flare-solver.ts @@ -1,11 +1,13 @@ const FLARESOLVERR_URL = process.env.FLARESOLVERR_URL ?? "http://localhost:8191"; +const FLARESOLVERR_API = `${FLARESOLVERR_URL}/v1`; + export async function fetchWithFlareSolver( url: string, timeout = 30000, ): Promise { - const res = await fetch(FLARESOLVERR_URL, { + const res = await fetch(FLARESOLVERR_API, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({