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

API not working in js #8

Closed
SNKYNinja opened this issue Jul 2, 2023 · 1 comment
Closed

API not working in js #8

SNKYNinja opened this issue Jul 2, 2023 · 1 comment

Comments

@SNKYNinja
Copy link

i tried accessing the api but encountered a weird error:

const url = "https://web-production-32d8.up.railway.app/api/card";

const headers = new Headers();
headers.append("Content-Type", "application/json")

const data = { "uid": 819946168 };

fetch(url, {
    method: "POST",
    body: JSON.stringify(data),
    headers: {
        "Content-Type": "application/json"
    }
}).then((response) => console.log(response.json()))

Response:

{
    "enc": {
        "error": {
            "code": 101,
            "text": "Required parameter not specified: uid"
        }
    }
}

It's weird that when i tried using python requests library, it worked

@DEViantUA
Copy link
Owner

The API is now completely disabled.

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

No branches or pull requests

2 participants