RiotGames / developer-relations

Riot Games Developer Ecosystem Bug Reporting
http://developer.riotgames.com
742 stars 44 forks source link

Constant 400s when trying to query Summoner Info #953

Closed bradvandyk closed 1 month ago

bradvandyk commented 2 months ago

Account Information What's your summoner name (e.g., Tuxedo) or riot id (e.g., Tuxedo#AYAYA)? Narkazokh

Have you played any of Riot's games or did you just create an account for the Developer Portal? Yes. Both player and developer

Issue Description
Always getting 400s invalid IDs when querying https://na1.api.riotgames.com/lol/summoner/v4/summoners/me

Have tried resetting developer API key twice.

What I've Tried Query param, body param, via python, via web request in Riot Developer API. I'm able to get successful responses for champion rotation and other simple requests but not getting Summoner info

Repro Steps

  1. Go to https://developer.riotgames.com/apis#summoner-v4/GET_getByAccessToken
  2. Execute with query or body param
  3. Response is "status": { "message": "Bad Request - invalid token", "status_code": 400 } }

Issue Context Please add any additional context that is useful.

Cypherous commented 2 months ago

Thats an RSO endpoint, which only production keys have access to, your developer key won't have access, can you confirm you have a production key with RSO access?

bradvandyk commented 2 months ago

I do not! I tried creating a production app for "personal access" but do not have a production app yet. However according to the documentation in my dashboard it says I should have access to this API:

image
Cypherous commented 2 months ago

Yeah i would ignore that as that is likely wrong

If you visit the endpoint https://developer.riotgames.com/apis#account-v1/GET_getByAccessToken and scroll down you'll likely see

image

bradvandyk commented 2 months ago

Correct. I see that for https://developer.riotgames.com/apis#account-v1 but not for https://developer.riotgames.com/apis#summoner-v4.

In order to create a production key, it looks like I need to have a full prototype and app/website already running. I'm using this for a small personal project (which eventually I'd like to publish to the iOS App Store).

Is it not possible to use the developer key to test this out so I can build the prototype? Or do I need to submit an application for a production key now?

Cypherous commented 2 months ago

You would need a production key to get access to RSO, although you probably don't actually need RSO unless you're trying to link a user account to a specific league account, the name and tagline is enough to do a lookup

Also worth noting that there are extra requirements if you want to release an iOS app as you'll specifically need to tell them in the application that you're releasing an app as there is documentation that riot will need to provide you in order to upload it and not have the app flagged automatically

And yes for all production keys a website detailing what your product does is a requirement and the app store page would not be enough for that

bradvandyk commented 2 months ago

That's fine I can create a website but I can't create an app or a prototype without using the developer key. Just seems backwards to use a production key for development purposes.

I don't need RSO at least I don't think right now. I'm just trying to create an app that shows my current summoner match history using SwiftUI. Happy to create a website for that if required in advance.

Cypherous commented 2 months ago

Yeah you can just skip the RSO part and just use the name + tagline endpoint on account-v1 to get the PUUID and then do your searches from there, when it comes to apps i'm not sure if they need to see an actual prototype, if you have a website that details what you're making, how it will work and some screenshots of a development build of the app you should be good to go

Not familiar with how development works with iOS as with android you can just self sign and sideload a development build of an app on to a device in order to test it, i assume iOS has some sort of equivalent, or atleast some sort of development studio that can run the app in an emulator of sorts for you to take some images of etc

bradvandyk commented 2 months ago

Cool, that worked with name+tagline. I was then able to use the puuid to get match info. This gives me a good starting point. Thanks @Cypherous !

tisbells commented 1 month ago

Closing as this seems resolved. Feel free to reply or open a new issue if needed.