dzmitry-duboyski / 2captcha-ts

JavaScript package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
https://www.npmjs.com/package/2captcha-ts
MIT License
17 stars 3 forks source link

getting error when sending funcapthca+data[blob] param #4

Closed dzmitry-duboyski closed 1 year ago

dzmitry-duboyski commented 1 year ago

Error:

{
  status: 0,
  request: 'ERROR_DATA',
  error_text: 'data parameter incorrect.'
}

What needs to be changed:

  1. The value of data can be an object (maybe you should make this possible) ?
  2. Update example for funcaptcha+data: data:{"blob": "${captcha.dataExchangeBlob}"},
dzmitry-duboyski commented 1 year ago

Understood, I did not send correctly. In the current implementation of funcaptcha+data, you need to send it like this:

  solver.funCaptcha({
    pageurl: 'https://www.roblox.com/login',
    surl: 'https://roblox-api.arkoselabs.com',
    publickey: captcha.publicKey,
    data: `{"blob": "${captcha.dataExchangeBlob}"}`,
    useragent: userAgent,
    proxy: proxy,
    proxytype: proxytype
  })

captcha.dataExchangeBlob - is the data[blob] value you found on the page or in requests from the page (the data value can be named differently).