FlareSolverr: Unable to solve captcha

Have you checked our README?

  • I have checked the README

Is there already an issue for your problem?

  • I have checked older issues, open and closed

Have you checked the discussions?

  • I have read the Discussions

Environment

- FlareSolverr version: 3.0.2
- Last working FlareSolverr version: none
- Operating system: windows
- Are you using Docker: [yes/no] no
- FlareSolverr User-Agent (see log traces or / endpoint): FlareSolverr User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
- Are you using a VPN: [yes/no]no
- Are you using a Proxy: [yes/no]yes
- Are you using Captcha Solver: [yes/no] no
- If using captcha solver, which one:
- URL to test this issue:https://yggtorrent.lol/

Description

hi , when i want to unlock this page with FlareSolverr i get code 500

this is a really simple captcha , is made a challenger spinner then a button is appear we nee to click on it to verify we are a humain

FlareSolver has detect the div ID but seem unable to solve it

Logged Error Messages

2023-02-07 16:46:30 DEBUG    ReqId 16752 Launching web browser...
2023-02-07 16:46:30 DEBUG    ReqId 16752 Started executable: `C:\Users\Administrateur\appdata\roaming\undetected_chromedriver\chromedriver.exe` in a child process with pid: 4972
2023-02-07 16:46:30 DEBUG    ReqId 15988 Navigating to... https://www6.yggtorrent.lol/
2023-02-07 16:46:31 INFO     ReqId 15988 Challenge detected. Selector found: #challenge-spinner
2023-02-07 16:46:31 DEBUG    ReqId 15988 Waiting for title: Just a moment...
2023-02-07 16:46:31 DEBUG    ReqId 15988 Waiting for title: DDOS-GUARD
2023-02-07 16:46:31 DEBUG    ReqId 15988 Waiting for selector: #cf-challenge-running
2023-02-07 16:46:31 DEBUG    ReqId 15988 Waiting for selector: .ray_id
2023-02-07 16:46:31 DEBUG    ReqId 15988 Waiting for selector: .attack-box
2023-02-07 16:46:31 DEBUG    ReqId 15988 Waiting for selector: #cf-please-wait
2023-02-07 16:46:31 DEBUG    ReqId 15988 Waiting for selector: #challenge-spinner
2023-02-07 16:46:41 DEBUG    ReqId 15988 Timeout waiting for selector
2023-02-07 16:46:41 DEBUG    ReqId 15988 Waiting for title: Just a moment...
2023-02-07 16:46:41 DEBUG    ReqId 15988 Waiting for title: DDOS-GUARD
2023-02-07 16:46:41 DEBUG    ReqId 15988 Waiting for selector: #cf-challenge-running
2023-02-07 16:46:41 DEBUG    ReqId 15988 Waiting for selector: .ray_id
2023-02-07 16:46:41 DEBUG    ReqId 15988 Waiting for selector: .attack-box
2023-02-07 16:46:41 DEBUG    ReqId 15988 Waiting for selector: #cf-please-wait
2023-02-07 16:46:41 DEBUG    ReqId 15988 Waiting for selector: #challenge-spinner
2023-02-07 16:46:51 DEBUG    ReqId 15988 Timeout waiting for selector
2023-02-07 16:46:52 DEBUG    ReqId 15988 Waiting for title: Just a moment...
2023-02-07 16:46:52 DEBUG    ReqId 15988 Waiting for title: DDOS-GUARD
2023-02-07 16:46:52 DEBUG    ReqId 15988 Waiting for selector: #cf-challenge-running
2023-02-07 16:46:52 DEBUG    ReqId 15988 Waiting for selector: .ray_id
2023-02-07 16:46:52 DEBUG    ReqId 15988 Waiting for selector: .attack-box
2023-02-07 16:46:52 DEBUG    ReqId 15988 Waiting for selector: #cf-please-wait
2023-02-07 16:46:52 DEBUG    ReqId 15988 Waiting for selector: #challenge-spinner
2023-02-07 16:47:02 DEBUG    ReqId 15988 Timeout waiting for selector
2023-02-07 16:47:02 DEBUG    ReqId 15988 Waiting for title: Just a moment...
2023-02-07 16:47:02 DEBUG    ReqId 15988 Waiting for title: DDOS-GUARD
2023-02-07 16:47:02 DEBUG    ReqId 15988 Waiting for selector: #cf-challenge-running
2023-02-07 16:47:02 DEBUG    ReqId 15988 Waiting for selector: .ray_id
2023-02-07 16:47:02 DEBUG    ReqId 15988 Waiting for selector: .attack-box
2023-02-07 16:47:02 DEBUG    ReqId 15988 Waiting for selector: #cf-please-wait
2023-02-07 16:47:02 DEBUG    ReqId 15988 Waiting for selector: #challenge-spinner
2023-02-07 16:47:12 DEBUG    ReqId 15988 Timeout waiting for selector
2023-02-07 16:47:12 DEBUG    ReqId 15988 Waiting for title: Just a moment...
2023-02-07 16:47:12 DEBUG    ReqId 15988 Waiting for title: DDOS-GUARD
2023-02-07 16:47:12 DEBUG    ReqId 15988 Waiting for selector: #cf-challenge-running
2023-02-07 16:47:12 DEBUG    ReqId 15988 Waiting for selector: .ray_id
2023-02-07 16:47:12 DEBUG    ReqId 15988 Waiting for selector: .attack-box
2023-02-07 16:47:12 DEBUG    ReqId 15988 Waiting for selector: #cf-please-wait
2023-02-07 16:47:12 DEBUG    ReqId 15988 Waiting for selector: #challenge-spinner
2023-02-07 16:47:22 DEBUG    ReqId 15988 Timeout waiting for selector
2023-02-07 16:47:22 DEBUG    ReqId 15988 Waiting for title: Just a moment...
2023-02-07 16:47:22 DEBUG    ReqId 15988 Waiting for title: DDOS-GUARD
2023-02-07 16:47:22 DEBUG    ReqId 15988 Waiting for selector: #cf-challenge-running
2023-02-07 16:47:22 DEBUG    ReqId 15988 Waiting for selector: .ray_id
2023-02-07 16:47:22 DEBUG    ReqId 15988 Waiting for selector: .attack-box
2023-02-07 16:47:22 DEBUG    ReqId 15988 Waiting for selector: #cf-please-wait
2023-02-07 16:47:22 DEBUG    ReqId 15988 Waiting for selector: #challenge-spinner
2023-02-07 16:47:26 ERROR    ReqId 16752 Error: Error solving the challenge. Timeout after 55.0 seconds.
2023-02-07 16:47:26 DEBUG    ReqId 16752 Response => POST /v1 body: {'status': 'error', 'message': 'Error: Error solving the challenge. Timeout after 55.0 seconds.', 'startTimestamp': 1675784790239, 'endTimestamp': 1675784846180, 'version': '3.0.2'}
2023-02-07 16:47:26 INFO     ReqId 16752 Response in 55.941 s
2023-02-07 16:47:26 INFO     ReqId 16752 86.201.34.81 POST http://xx.xx.xx.xx:8191/v1 500 Internal Server Error

Screenshots

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 12
  • Comments: 31 (2 by maintainers)

Most upvoted comments

I also had this issue. I crossed another repo that added a few commits (newer undetected chrome + cloudflare related), I made an image of it and now everything works for me. Here’s the repo: https://github.com/furdarius/FlareSolverr/tree/patched_302 Build locally and use it instead then see if it changes anything.

For reference:

With Flaresolverr from this repo:

curl -sL -X POST http://localhost:8191/v1 -H 'Content-Type: application/json' --data-raw '{"cmd": "request.get","url": "https://nowsecure.nl","maxTimeout": 60000,"returnOnlyCookies": "true"}'

{"status": "error", "message": "Error: Error solving the challenge. Timeout after 60.0 seconds.", "startTimestamp": 1677505788629, "endTimestamp": 1677505849465, "version": "3.0.2"}

With Flaresolverr from https://github.com/furdarius/FlareSolverr/tree/patched_302 :

curl -sL -X POST http://localhost:8191/v1 -H 'Content-Type: application/json' --data-raw '{"cmd": "request.get","url": "https://nowsecure.nl","maxTimeout": 60000,"returnOnlyCookies": "true"}'

  {"status": "ok", "message": "Challenge solved!", "solution": {"url": "https://nowsecure.nl/", "status": 200, "cookies": [{"domain": ".nowsecure.nl", "expiry": 1709041818, "httpOnly": true, "name": "cf_clearance", "path": "/", "sameSite": "None", "secure": true, "value": "XXX"}], "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}, "startTimestamp": 1677505815830, "endTimestamp": 1677505818745, "version": "3.0.2-patched"}

Both requested from the same machine and IP.

Same here, no work anymore on ygg because of the button (human verification)

I also had this issue. I crossed another repo that added a few commits (newer undetected chrome + cloudflare related), I made an image of it and now everything works for me. Here’s the repo: https://github.com/furdarius/FlareSolverr/tree/patched_302 Build locally and use it instead then see if it changes anything.

Nice. Confirmed working.

v3.0.2 Docker implementation, container on a vanilla bridge network, not behind a VPN.

$ curl -sL -X POST http://localhost:8191/v1 \
     -H 'Content-Type: application/json' \
     --data-raw \
     '{"cmd": "request.get","url": "https://nowsecure.nl","maxTimeout": 60000,"returnOnlyCookies": "true"}' \
     | jq
{
  "status": "error",
  "message": "Error: Error solving the challenge. Timeout after 60.0 seconds.",
  "startTimestamp": 1677078730978,
  "endTimestamp": 1677078792192,
  "version": "3.0.2"
}

$ docker logs flaresolverr
2023-02-22 10:12:10 INFO     Incoming request => POST /v1 body: {'cmd': 'request.get', 'url': 'https://nowsecure.nl', 'maxTimeout': 60000, 'returnOnlyCookies': 'true'}
2023-02-22 10:12:13 INFO     Challenge detected. Title found: Just a moment...
2023-02-22 10:13:12 ERROR    Error: Error solving the challenge. Timeout after 60.0 seconds.
2023-02-22 10:13:12 INFO     Response in 61.214 s
2023-02-22 10:13:12 INFO     172.20.0.1 POST http://localhost:8191/v1 500 Internal Server Error

[Edited to add Docker log]

Can confirm, everything working in 3.0.4! Many thanks 😃

I have the exact same logs as @macdis. Anything we can test to help on the investigation ? I’m with FlareSolverr 3.0.2 (no VPN). I use FlareSolver with YGG and can confirm my IP is not flagged.

docker run -d \
  -p 8191:8191 \
  --name=flaresolverr \
  -e LOG_LEVEL=info \
  -e LOG_HTML=true \
  -e maxTimeout=120000 \
  -e BROWSER_TIMEOUT=120000 \
  --restart unless-stopped \
  ghcr.io/flaresolverr/flaresolverr:latest
2023-02-24 11:45:36 INFO     172.17.0.1 POST http://192.168.1.24:8191/v1 500 Internal Server Error
2023-02-24 11:58:44 INFO     Incoming request => POST /v1 body: {'cmd': 'request.get', 'url': 'https://nowsecure.nl', 'maxTimeout': 60000, 'returnOnlyCookies': 'true'}
2023-02-24 11:58:45 INFO     Challenge detected. Title found: Just a moment...
2023-02-24 11:59:07 INFO     Incoming request => POST /v1 body: {'cmd': 'request.get', 'url': 'https://nowsecure.nl', 'maxTimeout': 60000, 'returnOnlyCookies': 'true'}
2023-02-24 11:59:08 INFO     Challenge detected. Title found: Just a moment...
2023-02-24 11:59:45 ERROR    Error: Error solving the challenge. Timeout after 60.0 seconds.
2023-02-24 11:59:45 INFO     Response in 60.653 s
####:/home/# curl -sL -X POST http://localhost:8191/v1      -H 'Content-Type: application/json'      --data-raw      '{"cmd": "request.get","url": "https://nowsecure.nl","maxTimeout": 60000,"returnOnlyCookies": "true"}'      | jq
{
  "status": "error",
  "message": "Error: Error solving the challenge. Timeout after 60.0 seconds.",
  "startTimestamp": 1677239947403,
  "endTimestamp": 1677240008045,
  "version": "3.0.2"
}