Comments (3)
@joalisonx Can you provide details on how to reproduce this error?
Also paste the full stack trace.
from psnawp.
Sure. It also gives me the same error with PS Vita platform.
client = PSNAWP(get_env()["npsso"])
game = client.game_title(title_id="NPWR04151_00", np_communication_id="NPWR04151_00").trophy_groups_summary("PS3")
Traceback (most recent call last):
File "/platinador/src/ext/find.py", line 26, in find
game = get_game(game_id, platform)
File "/platinador/src/utils/utils.py", line 35, in get_game
raise err
File "/platinador/src/utils/utils.py", line 26, in get_game
game = client.game_title(title_id=game_id, np_communication_id=game_id).trophy_groups_summary(platform)
File "/lib/python3.8/site-packages/psnawp_api/models/game_title.py", line 119, in trophy_groups_summary
return TrophyGroupsSummaryBuilder(
File "/lib/python3.8/site-packages/psnawp_api/models/trophies/trophy_group.py", line 162, in game_title_trophy_groups_summary
return _trophy_groups_dict_to_obj(response)
File "/lib/python3.8/site-packages/psnawp_api/models/trophies/trophy_group.py", line 99, in _trophy_groups_dict_to_obj
trophy_title_platform=PlatformType(trophy_groups_dict.get("trophyTitlePlatform", "UNKNOWN")),
File "/lib/python3.8/enum.py", line 304, in __call__
return cls.__new__(cls, value)
File "/lib/python3.8/enum.py", line 595, in __new__
raise exc
File "/lib/python3.8/enum.py", line 579, in __new__
result = cls._missing_(value)
File "/lib/python3.8/enum.py", line 608, in _missing_
raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 'PS3,PSVITA' is not a valid PlatformType
from psnawp.
This bug is fixed in version 1.3.2 https://github.com/isFakeAccount/psnawp/releases/tag/v1.3.2
from psnawp.
Related Issues (20)
- Support for Languages HOT 1
- N00b here ๐๏ธclient.title_stats() Question HOT 2
- search question HOT 7
- Is there any way to use this and have access to the PSN Store and add or checkout avatars? HOT 5
- download photo from messages HOT 3
- `get_groups` not working HOT 3
- Is it possible to learn all of my PSN account nickname history? HOT 1
- requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url HOT 5
- Is creation date possible? Suggestion HOT 1
- profile colour HOT 2
- PSNAWPNotFound from a TrophyIterator on PS5 games HOT 6
- Add Endpoint to remove player from Groups endpoint
- Add method to Remove friends
- Add Rate Limiter to the Library to make it more accessible
- Is the API down? HOT 1
- No more get_title_id() HOT 5
- Playstation plus 12 month membership
- All name history of the account HOT 3
- Doesn't show previous name, only current one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psnawp.