HypixelDev / PublicAPI

Official Java implementation of the Hypixel Public API.
https://api.hypixel.net
MIT License
533 stars 152 forks source link

[Bug] Key information in dev-api/legacy is wrong #603

Closed matteopolak closed 1 year ago

matteopolak commented 1 year ago

Viewing my key at https://dev-api.hypixel.net/key/legacy shows the following information (redacted most of it):

{
    "key": {
        "id": "...",
        "key": "...",
        "owner": "...",
        "type": "LEGACY",
        "usable": true,
        "limit": 120,
        "limitDuration": 60000,
        "totalQueries": 0,
        "created": 0,
        "allowedIps": []
    }
}

However, my key only has a limit of 60, as seen by https://api.hypixel.net/key:

{
    "success": true,
    "record": {
        "key": "...",
        "owner": "...",
        "type": "LEGACY",
        "limit": 60,
        "totalQueries": 0,
        "queriesInPastMin": 0
    }
}

The second one is correct, as it matches all of the RateLimit-* headers correctly.

ConnorLinfoot commented 1 year ago

Legacy keys aren't something we support in the developer dashboard, hence the mismatched response.