Skip to content

fix(captcha): support VK not_robot_captcha when captcha_sid is missing - #46

Open
Vova4o wants to merge 1 commit into
kiper292:mainfrom
Vova4o:fix/vk-not-robot-captcha-parsing
Open

fix(captcha): support VK not_robot_captcha when captcha_sid is missing#46
Vova4o wants to merge 1 commit into
kiper292:mainfrom
Vova4o:fix/vk-not-robot-captcha-parsing

Conversation

@Vova4o

@Vova4o Vova4o commented Aug 27, 2026

Copy link
Copy Markdown

Summary

When VK Calls API returns error_code: 14 (Captcha need), the modern SmartCaptcha response includes redirect_uri (with session_token) but no longer contains the legacy captcha_sid and captcha_img fields.

Previously, ParseVkCaptchaError failed immediately when captcha_sid was missing, returning nil with missing captcha_sid in captcha error data and preventing the built-in auto-solver (solvePoW / callCaptchaNotRobot), slider solver, and WebView fallback from ever executing.

Fix

  • Made captcha_sid and captcha_img optional in ParseVkCaptchaError.
  • Made redirect_uri properly populate session_token so captchaErr.IsCaptchaError() succeeds and delegates to the appropriate solving strategy.

…_img

VK Calls API error_code 14 responses now return redirect_uri containing
session_token without legacy captcha_sid and captcha_img fields.
Making these fields optional allows ParseVkCaptchaError to succeed and
trigger the built-in automated and manual captcha solving mechanisms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant