phongse / pyosrs

pyosrs is a Python library that provides a simple interface for retrieving and parsing data from the Old School RuneScape hiscores.
https://pypi.org/project/pyosrs/
GNU Lesser General Public License v3.0
1 stars 1 forks source link

InvalidAPIResponseException: A new skill/boss/activity has been added to osrs #10

Closed tylersfd2 closed 1 year ago

tylersfd2 commented 1 year ago

This exception is being raised when using a valid old-school runescape username as a parameter for the get_hiscore method.

phongse commented 1 year ago

Hey @tylersfd2,

Thanks for the issue report! Looks like they've added Bounty Hunter legacy into the API. It is now fixed in 0.0.4, let me know if it works for you now.

tylersfd2 commented 1 year ago

Hey @tylersfd2,

Thanks for the issue report! Looks like they've added Bounty Hunter legacy into the API. It is now fixed in 0.0.4, let me know if it works for you now.

I updated the package to 0.0.4 and it's still throwing the InvalidAPIResponseException: A new skill/boss/activity

phongse commented 1 year ago

Strange, it works for me on two different machines.

What is your username input if I may ask? Or could you perhaps try a different username?

This worked for me:

hiscore = await pyosrs.get_hiscore("Lynx Titan")
print(hiscore.json(indent=4))

{
    "username": "Lynx Titan",
    "game_mode": "hiscore_oldschool",
    "combat_level": 126,
    "skills": {
    ...
    },
    ...
}
tylersfd2 commented 1 year ago

Strange, it works for me on two different machines.

What is your username input if I may ask? Or could you perhaps try a different username?

This worked for me:

hiscore = await pyosrs.get_hiscore("Lynx Titan")
print(hiscore.json(indent=4))

{
    "username": "Lynx Titan",
    "game_mode": "hiscore_oldschool",
    "combat_level": 126,
    "skills": {
    ...
    },
    ...
}

Hey, it's working now. Thanks for the fast updates.