fix: use /v1 endpoint for FlareSolverr API
CI / check (push) Successful in 24s
CI / release (push) Skipped
CI / deploy (push) Successful in 43s

FlareSolverr v3.x uses /v1 endpoint, not root /.
The previous implementation was hitting the root endpoint which
returned 405 Method Not Allowed.
This commit is contained in:
openhands committed 2026-08-04 19:07:37 +02:00
1 parent 3edc987281
commit 0abcead359
1 file changed
+3 -1
+3 -1
View File
@@ -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<string> {
const res = await fetch(FLARESOLVERR_URL, {
const res = await fetch(FLARESOLVERR_API, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({