Furry / 2captcha

A wrapper around the 2captcha api
76 stars 27 forks source link

Some parameters are missing in this request #52

Closed Brainpepper closed 2 months ago

Brainpepper commented 2 months ago

Problem Description: I've encountered a problem 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://git@github.com/2captcha/next.git npm ERR! git@github.com: 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 commented 2 months ago

i did solve it by including the empty blob like: data: {"blob": ""}