Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET Storefront returning 404 #61

Closed
raphaelruedo opened this issue Sep 24, 2024 · 4 comments · May be fixed by #62
Closed

GET Storefront returning 404 #61

raphaelruedo opened this issue Sep 24, 2024 · 4 comments · May be fixed by #62

Comments

@raphaelruedo
Copy link

Hello!

The https://pd.{shard}.a.pvp.net/store/v2/storefront/{puuid} is returning a 404 error, even with correct requests.

Request:

curl --request GET \
  --url https://pd.{shard}.a.pvp.net/store/v2/storefront/{puuid} \
  --header 'Authorization: {access_token}' \
  --header 'X-Riot-ClientPlatform: {client_platform}' \
  --header 'X-Riot-ClientVersion: {client_version}' \
  --header 'X-Riot-Entitlements-JWT: {entitlement_token}'

The 404 error started happening today, while yesterday the requests were working correctly.

@faroukbmiled
Copy link

faroukbmiled commented Sep 25, 2024

Api now is at /v3/ and it doesn't work like this anymore, its a POST request
Not sure if anyone figured out what the POST data is yet

posting to the new endpoint with no data returns this
{
"httpStatus": 400,
"errorCode": "JSON_PARSE_ERROR",
"message": "JSON decode failure"
}

so it is definitely expecting some sort of JSON as request data

EDIT:
if you pass an empty json object "{}" to it it will work as expected

@raphaelruedo
Copy link
Author

Thank you so much, you saved Spikehub app's life haha
I did some tests and it worked perfectly with what you pointed out.

Do you know where I can follow these version changes?

@faroukbmiled
Copy link

Thank you so much, you saved Spikehub app's life haha I did some tests and it worked perfectly with what you pointed out.

Do you know where I can follow these version changes?

Hey no problem, I was actually experimenting with the API and discovered this on my own, but seems like others beat me to it in this Discord server. I'd say its worth joining: https://discord.gg/nf25c6YYM8

@raphaelruedo
Copy link
Author

That's awesome. I’ll definitely check out the Discord server thanks for sharing the link!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants