Closed realkarmakun closed 5 years ago
Ok, I'm stupid and replaced in Authorization 'Bearer' along Your Token with my token. After proper replacing it gives me this now: UPD: script still doesn't work
{
"object": "list",
"data": [],
"meta": {
"pagination": {
"total": 0,
"count": 0,
"per_page": 15,
"current_page": 1,
"total_pages": 1,
"links": []
}
}
}
Hello, your issue is probably the same as the one on #1. I still plan to improve the script so that it reports better the errors.
I guess you right, but if we look in server response can it be just incorrect response form panel? Maybe API changed recently or something like that? I mean it should return list of servers right? But it returns just an empty list
I don't think that the API changed because I'm using the latest version of pterodactyl and my script is still working on it.
That was just my stupid mistake. I used wrong account to get Account API key
Oh nice, did you get it working then?
Logs:
After doing some research I found that output from this curl command might be useful:
jq --version output: