OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

The discord register system with Python gives an error "Invalid-response"

  • Thread starter Thread starter yardimc
  • Start date Start date
Y

yardimc

Guest
I am trying to create a discord register system via Python. But hCaptcha gives the "Invalid-response" error.

Is Discord the real cause of this problem or is there a different factor?

Code:
from anticaptchaofficial.hcaptchaproxyless import *
import requests
import config

solver = hCaptchaProxyless()
solver.set_verbose(1)
solver.set_key(config.KEY)
solver.set_website_url("https://discord.com/register")
solver.set_website_key("4c672d35-0701-42b2-88c3-78380b0db560")
solver.set_user_agent(config.MY_USER_AGENT)

solver.set_soft_id(0)

g_response = solver.solve_and_return_solution()
if g_response != 0:
    print("g-response: "+g_response)
else:
    print("task finished with error "+solver.error_code)

register_url = "https://discord.com/api/v9/auth/register"
payload = {
    "fingerprint":"",
    "email":"@gmail.com",
    "username":"",
    "password":"",
    "invite":"null",
    "consent":"true",
    "date_of_birth":"1990-01-01",
    "gift_code_sku_id":"null",
    "captcha_key":g_response,
    "promotional_email_opt_in":"false"
    }
r = requests.post(register_url,json=payload)
print(r.text)```
<p>I am trying to create a discord register system via Python. But hCaptcha gives the "Invalid-response" error.</p>
<p>Is Discord the real cause of this problem or is there a different factor?</p>
<pre><code>from anticaptchaofficial.hcaptchaproxyless import *
import requests
import config

solver = hCaptchaProxyless()
solver.set_verbose(1)
solver.set_key(config.KEY)
solver.set_website_url("https://discord.com/register")
solver.set_website_key("4c672d35-0701-42b2-88c3-78380b0db560")
solver.set_user_agent(config.MY_USER_AGENT)

solver.set_soft_id(0)

g_response = solver.solve_and_return_solution()
if g_response != 0:
print("g-response: "+g_response)
else:
print("task finished with error "+solver.error_code)

register_url = "https://discord.com/api/v9/auth/register"
payload = {
"fingerprint":"",
"email":"@gmail.com",
"username":"",
"password":"",
"invite":"null",
"consent":"true",
"date_of_birth":"1990-01-01",
"gift_code_sku_id":"null",
"captcha_key":g_response,
"promotional_email_opt_in":"false"
}
r = requests.post(register_url,json=payload)
print(r.text)```
</code></pre>
 

Latest posts

Top