From 5242cf3359618eb3e1aae8a27916178155c61390 Mon Sep 17 00:00:00 2001 From: ngosang Date: Sun, 30 May 2021 14:15:08 +0200 Subject: [PATCH] Show an error in hcaptcha-solver. Resolves #132 --- src/captcha/hcaptcha-solver.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/captcha/hcaptcha-solver.ts b/src/captcha/hcaptcha-solver.ts index 856e550..5a3fa40 100644 --- a/src/captcha/hcaptcha-solver.ts +++ b/src/captcha/hcaptcha-solver.ts @@ -11,10 +11,15 @@ import { SolverOptions } from '.' */ export default async function solve({ url }: SolverOptions): Promise { + throw new Error("hcaptcha-solver is not able to solve the new hCaptcha challenge. This issue is already reported #31."); + +/* try { return await solveCaptcha(url) } catch (e) { console.error(e) return null } +*/ + }