smashgg / developer-portal

A place for developers interested in smash.gg's API
MIT License
47 stars 42 forks source link

Sortby Statement in Tournament By Videogame Example Creates "Unknown Error" #202

Open SarahEGood opened 7 months ago

SarahEGood commented 7 months ago

Edit: This seems to actually be an issue with the sortby statement, since removing this solved the issue, so I'll be changing the title to reflect this.

I've been attempting to use the GraphQL tester to see if I could search tournaments by video game, but every time I run the example code (or slight variations where the videogameID is a string), I keep getting an "unknown error has occurred" message. Other queries seem to be working fine in the api tester. I'm really not sure what I've done since the code is copy-pasted from this example.

My authorization token is included in the format specified in the Developer Portal instructions (under "Headers") per instructions.

image

CarlosSpicyWiener17 commented 4 months ago

replace "tournament.startAt asc" with "startAt asc" and it will work. Ive already suggested the changes to them