Ошибка от сервера при авторизации / регистрации: failed to decode JSON

Сам я 50/50 новичек. Решил попробовать сделать код на авторизацию и регистрацию без входа на сайт. Пытаюсь регистрировать (со входом тоже самое) на twitch.tv

Code:

import requests
reg = "https://passport.twitch.tv/register"
payload = {
    "username":"example1111111",
    "password":"exmpl014324424",
    "email":"[email protected]",
    "birthday":{"day":10,"month":2,"year":1999},
    "client_id":"kimne78kx3ncx6brgo4mv6wki5h1ko",
    "include_verification_code":"true",
    "arkose":{"token":"4635f63631f6d4c84.9242432605|r=eu-west-1|metabgclr=transparent|guitextcolor=%23000000|metaiconclr=%23757575|meta=3|lang=ru|pk=E5554D43-23CC-1982-971D-6A2262A2CA24|at=40|sup=1|rid=35|atp=2|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-eu-west-1.arkoselabs.com|surl=https://client-api.arkoselabs.com"}
           }
response = s.post(reg, params=payload)
print(response.url)
print(f"Ответ регистрации: {response}")

Получаю ответ: b'{"error":"Oops! We encountered an unexpected error. Please try again.","errors":["Oops! We encountered an unexpected error. Please try again."],"error_code":1002,"error_description":"failed to decode JSON"}' (Ошибка декодирования JSON)

URL получается таким:

https://passport.twitch.tv/register?username=r43543tre&password=dfere4gtgbrg45&email=sfre%40f.co&birthday=day&birthday=month&birthday=year&client_id=kimne78kx3ncx6brgo4mv6wki5h1ko&include_verification_code=true&arkose=token

В чём моя ошибка? Люди добрые, подскажите.


Ответы (0 шт):