2captcha icon indicating copy to clipboard operation
2captcha copied to clipboard

Please solve params problem

Open GlistenSTAR opened this issue 1 year ago • 6 comments

Hello, I faced this issues while I am using 2captcha module.

Screenshot_5

Some parameters are missing in this request. If you're using a pre-provided function, please open up an issue on the GitHub (https://github.com/furry/2captcha)   
solving captcha...

So I contacted you. Could you solve this problem, please?

Warm regards Waiting your kindly reply.

GlistenSTAR avatar Jun 03 '24 22:06 GlistenSTAR

Howdy there,

What type of captcha are you attempting to solve, and what version of the library are you using?

In the meantime, npm i 2captcha/next is the newest refactor, fixing many changes in the API and supporting more captcha types. Do let me know where the issue is from, or if the newer version fixes it!

Furry avatar Jun 04 '24 03:06 Furry

following your word, I used next version, but it's still same. I got same error.

Some parameters are missing in this request. If you're using a pre-provided function, please open up an issue on the GitHub (https://github.com/furry/2captcha)

my code.


      const solver = new Captcha.Solver(process.env.twocaptchaKey)
      await solver.recaptcha(sitekey, url)

now I am using only one param but in the message, they are requiring more parameter

Please solve my problem thanks in advance

Solver.recaptcha("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/")
.then((res) => {
    console.log(res);
})
.catch((err) => {
    console.log(err);
})

Using the sample recaptcha solve (sitekey and url) it works correctly after just testing it; could be a recaptcha v3 or something of that nature. Could you share the website you're trying to solve for?

Furry avatar Jun 04 '24 15:06 Furry

Problem Description: I've encountered a similar issue with the FunCaptcha solver that was previously working fine a couple of months ago but recently stopped functioning. The error message returned is:

"Some parameters are missing in this request. If you're using a pre-provided function, please open up an issue on the GitHub (https://github.com/furry/2captcha)."

Steps Taken: I have double-checked that the siteKey and my 2captcha API key are both correct.

Below is the relevant code snippet where the error occurs:

const Captcha = require("2captcha");
const solver = new Captcha.Solver(2CaptchaApiKey)

let res = await solver.funCaptcha(siteKey, captchaUrl).catch((e) => {
    console.error(e.message);
});

Additional Information: I also attempted to install the latest (experimental?) version of the package using:

npm i 2captcha/next

However, I encountered a permission-related issue while trying to install it:

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/2captcha/next.git
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

Environment: Current Package Version: "2captcha": "^3.0.7" Node: v20.10.0

Brainpepper avatar Aug 26 '24 08:08 Brainpepper