HypixelDev / PublicAPI

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

[bug/question] SkyBlock jacob2 contest field returning zero participants and negative position #604

Closed IamMusavaRibica closed 12 months ago

IamMusavaRibica commented 1 year ago

While I was gathering some data I noticed this entry for someone's record in a Jacob's Farming Contest:

{"collected": 11370, "claimed_rewards": true, "claimed_position": -2, "claimed_participants": 0}

Why is claimed_participants zero and claimed_position negative two? Here's sample python code for reaching this data through the api:

import requests

r = requests.get(  # fetch data from api
    'https://api.hypixel.net/skyblock/profiles',
    params=(('uuid', 'd41a945a99514299b9da773bbbe7a04d'),),
    headers={'api-key': 'abcd'}  # put api key here
).json()

for p in r['profiles']:  # locate this profile
    if p['profile_id'] == 'ca94266e-e548-4b54-81b3-6a14676bff5f':
        break

contests = p['members']['d41a945a99514299b9da773bbbe7a04d']['jacob2']['contests']
print(contests['206:9_27:MUSHROOM_COLLECTION'])  # year 207, month 9, day 27 mushroom contest
ConnorLinfoot commented 12 months ago

It's likely something with the leaderboard data not existing for some unknown reason, but considering how long ago this was we won't have anything internally to find out what happened to cause it