Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

when I use the terminal, Its throwing me this error #185

Open
Sukumar777 opened this issue Jan 9, 2025 · 6 comments
Open

when I use the terminal, Its throwing me this error #185

Sukumar777 opened this issue Jan 9, 2025 · 6 comments

Comments

@Sukumar777
Copy link

/workspaces/texas-dps-scheduler (main) $ npm run start

texas-dps-scheduler@5.0.2 start
ts-node --transpile-only src/index.ts

[01/09/2025 3:47:42] ERROR: Config file is not valid
ZodError: [
{
"received": "",
"code": "invalid_enum_value",
"options": [
"2captcha",
"capsolver"
],
"path": [
"appSettings",
"captcha",
"solverOptions",
"solverService"
],
"message": "Invalid enum value. Expected '2captcha' | 'capsolver', received ''"
}
]
at Object.get error [as error] (/workspaces/texas-dps-scheduler/node_modules/zod/lib/types.js:55:31)
at ZodObject.parse (/workspaces/texas-dps-scheduler/node_modules/zod/lib/types.js:131:22)
at parseConfig (/workspaces/texas-dps-scheduler/src/Config/index.ts:28:26)
at Object. (/workspaces/texas-dps-scheduler/src/CaptchaSolver/index.ts:8:27)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module.m._compile (/workspaces/texas-dps-scheduler/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Object.require.extensions. [as .ts] (/workspaces/texas-dps-scheduler/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Function.Module._load (node:internal/modules/cjs/loader:1104:12) {
issues: [
{
received: '',
code: 'invalid_enum_value',
options: [Array],
path: [Array],
message: "Invalid enum value. Expected '2captcha' | 'capsolver', received ''"
}
],
addIssue: [Function (anonymous)],
addIssues: [Function (anonymous)],
errors: [
{
received: '',
code: 'invalid_enum_value',
options: [Array],
path: [Array],
message: "Invalid enum value. Expected '2captcha' | 'capsolver', received ''"
}
]
}
➜ /workspaces/texas-dps-scheduler (main) $

@Sukumar777
Copy link
Author

[01/09/2025 4:01:15] Texas Scheduler v5.0.2 is starting...
[01/09/2025 4:01:15] Requesting Available Location....
[01/09/2025 4:01:19] ERROR: Error while getting captcha token:
Error: Node is either not clickable or not an Element
at CdpElementHandle.clickablePoint (/workspaces/texas-dps-scheduler/node_modules/puppeteer-core/src/api/ElementHandle.ts:728:13)
at async CdpElementHandle. (/workspaces/texas-dps-scheduler/node_modules/puppeteer-core/src/api/ElementHandle.ts:129:14)
at async CdpElementHandle.click (/workspaces/texas-dps-scheduler/node_modules/puppeteer-core/src/api/ElementHandle.ts:767:20)
at async CdpElementHandle. (/workspaces/texas-dps-scheduler/node_modules/puppeteer-core/src/api/ElementHandle.ts:139:20)
at async CdpFrame.click (/workspaces/texas-dps-scheduler/node_modules/puppeteer-core/src/api/Frame.ts:1054:5)
at async getAuthTokenFromBroswer (/workspaces/texas-dps-scheduler/src/Browser/index.ts:42:9)
at async TexasScheduler.getAuthToken (/workspaces/texas-dps-scheduler/src/Client/index.ts:434:27)
at async TexasScheduler.run (/workspaces/texas-dps-scheduler/src/Client/index.ts:65:93)
[01/09/2025 4:01:19] Try to get captcha token again or manual set it in config.yml

@phamleduy04
Copy link
Owner

What are you running on? (codespace, local, docker) etc?

@Sukumar777
Copy link
Author

codespace, was following your youtube video

@phamleduy04
Copy link
Owner

codespace didn't support browser solving.

@Sukumar777
Copy link
Author

[01/09/2025 5:37:35] ERROR: ERROR_INVALID_TASK_DATA: clientKey is required
/workspaces/texas-dps-scheduler/src/CaptchaSolver/Capsolver.ts:30
throw new Error(Got ${getTaskID.statusCode} status code);
^
Error: Got 400 status code
at Object.CapSolverCreateTask (/workspaces/texas-dps-scheduler/src/CaptchaSolver/Capsolver.ts:30:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TexasScheduler.getCatpchaToken (/workspaces/texas-dps-scheduler/src/Client/index.ts:445:31)
at async TexasScheduler.getAuthToken (/workspaces/texas-dps-scheduler/src/Client/index.ts:418:34)
at async TexasScheduler.run (/workspaces/texas-dps-scheduler/src/Client/index.ts:65:93)

@phamleduy04
Copy link
Owner

The error tell you what you are missing, if you use solver option you need clientKey. Check the docs

https://github.com/phamleduy04/texas-dps-scheduler/wiki/Captcha-(Auth-Token)#external-solver-require-payment

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants