Giter Club home page Giter Club logo

Comments (6)

Frygidairus avatar Frygidairus commented on August 23, 2024 1

I just tested it too, and indeed, getting rid of the string fixed it!
Thank you so much :)

from psnawp.

Frygidairus avatar Frygidairus commented on August 23, 2024

Note that I tested this on several PS5 and PS4 games, with similar results

from psnawp.

Frygidairus avatar Frygidairus commented on August 23, 2024

I was able to query the endpoints directly thanks to my bearer token, resulting in 200 HTTP status codes. Both the trophy set and the progress set were retrieved thanks to the Postman queries as per the screenshots.
I have yet to understand what goes wrong...
image
image

from psnawp.

isFakeAccount avatar isFakeAccount commented on August 23, 2024

@Frygidairus

Can you try with the latest version of PSNAWP because it works for me.

image

Also, assuming if you are looking up your own trophies you can use the client class

from psnawp_api import PSNAWP
from psnawp_api.models.trophies import PlatformType

client = psn.me()
trophies = client.trophies("NPWR22810_00", PlatformType.PS5)
print(next(trophies))

This will save you some extra HTTP requests.

from psnawp.

isFakeAccount avatar isFakeAccount commented on August 23, 2024

I think I might know the issue. I switch platform type from string to Enum and passing in enum threw off the API wrapper.

default case is for PS4 so which it is why it worked. but PS5 didn't

from psnawp.

isFakeAccount avatar isFakeAccount commented on August 23, 2024

image

Yup, I get the same error when string is passed.

from psnawp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.