RoyaleAPI / cr-api

Clash Royale Analytics, Profiles and Insights. We no longer publish a public API. Please use the official API from Supercell.
https://RoyaleAPI.com
167 stars 20 forks source link

undefined unauthorised error #393

Closed fourjr closed 6 years ago

fourjr commented 6 years ago

Issue Report:

  1. Did you encounter this recently, or has this bug always been there? Not sure, never tested this
  2. Expected behaviour: "message": "Forbidden, no authorization provided | Additional information and support: http://discord.me/royaleapi"
  3. Console logs (if applicable):
  4. Screenshots (if applicable):

Request Details:

GET
https://devapi.royaleapi.com/player/PQQ0Q8CG/chests

Response Details:

{
    "error": true,
    "status": 403,
    "message": "undefined | Additional information and support: http://discord.me/royaleapi"
}
[HTTP 403]

Invalid tokens work fine, undefined occurs when no token is provided

{
    "error": true,
    "status": 401,
    "message": "Unauthorized; unknown token | Additional information and support: http://discord.me/royaleapi"
}
[HTTP 401]
selfish commented 6 years ago

Fixed on dev server (live)