Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Got error "2 required positional arguments" #71

Open
GlistenSTAR opened this issue Jan 23, 2025 · 3 comments
Open

Got error "2 required positional arguments" #71

GlistenSTAR opened this issue Jan 23, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@GlistenSTAR
Copy link

Describe the bug

Image

Now I am solving captcha using capmonster. but it's working as well before. But until 1~2 months ago, I got an error like the above image.

Desktop (please complete the following information):

  • OS: win10
  • Browser chrome
  • Version 131.0.6778.265
        capmonster = RecaptchaV2Task(capmonster_key)
                try:
                    taskId = capmonster.create_task(
                        '***', self.ticket_url)
                except:
                    try:
                        taskId = capmonster.create_task(
                            '***', self.ticket_url)
                    except:
                        taskId = capmonster.create_task(
                            '***', self.ticket_url)

                print("Waiting to solution by capmonster workers")
                try:
                    response = capmonster.join_task_result(
                        taskId).get("gRecaptchaResponse")
                except:
                    print(0, 'Tickets added....')
                    driver.quit()
                    return 0```
@GlistenSTAR GlistenSTAR added the bug Something isn't working label Jan 23, 2025
@alperensert
Copy link
Owner

Hi @GlistenSTAR,

I’m sorry to hear you’re experiencing issues with this. I’ve tested the code snippet you provided on my end, and it seems to work without any problems. Could this issue potentially be related to multithreading in your code? Could you provide more details about the issue?

Happy to help once I have more information.

@GlistenSTAR
Copy link
Author

Yes, Correct, Now I am using multithreading. but anticaptcha module is working even though I am using multithreading

@GlistenSTAR
Copy link
Author

Hello, @alperensert could you kindly reply, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants