Hello, I am solving hcaptcha using node.js 20. I constantly get this error, while api data is passed correctly (I can withdraw the balance) and the parameters are definitely transferred correctly - the site key and the URL of the page on which the captcha is located. Error 400, with and without proxy parameter.
Data passed:
{"type":"hcaptcha","sitekey":"correct_sitekey","url":"correct_url","proxy":{}}
Error:
InvalidRequestError: Invalid request
at NopeCHAApi.handle_error_response (/Projectdir/node_modules/nopecha/nopecha.js:143:20)
at NopeCHAApi.post (/Projectdir/node_modules/nopecha/nopecha.js:198:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NopeCHAApi.solve (/Projectdir/node_modules/nopecha/nopecha.js:205:17)
at async NopeCHAApi.solveToken (/Projectdir/node_modules/nopecha/nopecha.js:223:16)
at async solveHCaptcha (file:///Projectdir/index.mjs:155:19)
at async automation (file:///Projectdir/index.mjs:254:37)
at async execute (file:///Projectdir/index.mjs:619:13)
Hello, I am solving hcaptcha using node.js 20. I constantly get this error, while api data is passed correctly (I can withdraw the balance) and the parameters are definitely transferred correctly - the site key and the URL of the page on which the captcha is located. Error 400, with and without proxy parameter.
Data passed:
{"type":"hcaptcha","sitekey":"correct_sitekey","url":"correct_url","proxy":{}}
Error:
InvalidRequestError: Invalid request
at NopeCHAApi.handle_error_response (/Projectdir/node_modules/nopecha/nopecha.js:143:20)
at NopeCHAApi.post (/Projectdir/node_modules/nopecha/nopecha.js:198:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NopeCHAApi.solve (/Projectdir/node_modules/nopecha/nopecha.js:205:17)
at async NopeCHAApi.solveToken (/Projectdir/node_modules/nopecha/nopecha.js:223:16)
at async solveHCaptcha (file:///Projectdir/index.mjs:155:19)
at async automation (file:///Projectdir/index.mjs:254:37)
at async execute (file:///Projectdir/index.mjs:619:13)