NopeCHALLC / nopecha-nodejs

Automated CAPTCHA solver for Node.js.
MIT License
954 stars 3 forks source link

UnknownError: Unknown error #5

Closed anmen5000 closed 4 months ago

anmen5000 commented 4 months ago

my code : const { Configuration, NopeCHAApi } = require("nopecha"); const configuration = new Configuration({ apiKey: 'key', }); const nopecha = new NopeCHAApi(configuration);

async function start() { nopecha.solveToken( type='turnstile', sitekey='sjtekey', url='url' ).then(data=>console.log(data)) } start()

error: return new UnknownError(error_data); ^ UnknownError: Unknown error at NopeCHAApi.handle_error_response (Z:\transfer token\wallet-evm\node_modules\nopecha\nopecha.js:153:20) at NopeCHAApi.post (Z:\transfer token\wallet-evm\node_modules\nopecha\nopecha.js:197:33) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NopeCHAApi.solve (Z:\transfer token\wallet-evm\node_modules\nopecha\nopecha.js:204:17) at async NopeCHAApi.solveToken (Z:\transfer token\wallet-evm\node_modules\nopecha\nopecha.js:222:16)

Node.js v18.17.1