C
C#4w ago
FlashJ

✅ speedrun.com app creating issue

https://pastebin.com/ZE2UWkgx Hi, I have issue with SpeedrunComSharp API. I can't to add all categories in combo box by searching the game, 'cause this variable is null. Anyone help me!
Pastebin
game variable issue - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
No description
23 Replies
canton7
canton74w ago
Run it in the debugger, see exactly what line it's throwing an exception at I don't see anything in your pastebin which could throw that
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
FlashJ
FlashJOP4w ago
I'm running in debugger and still throwing an exception
No description
No description
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
FlashJ
FlashJOP4w ago
for game variable or what?
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
FlashJ
FlashJOP4w ago
LMAO I just check this example from github on console and it does work by same exception
No description
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
canton7
canton74w ago
It'll be somewhere in here: https://github.com/LiveSplit/SpeedrunComSharp/blob/1a7f8dd7c8ae1f4c15f160d26fe98d6e7427fff7/src/SpeedrunComSharp/SpeedrunComClient.cs#L292 That's doing a bunch of stuff with dynamic, and that exception is thrown by the dynamic machinery It looks like it's making a request against some API, but the response it's getting doesn't have the same shape as what it's expecting. Presumably the API changed what it returns at some point Raise an issue on that github issue tracker
Async
Async4w ago
This is an older version of the speedrun com api from 2015. There is a newer version under the name "SpeedrunDotComAPI" which is from 2022
FlashJ
FlashJOP4w ago
GitHub
GitHub - mirrorcult/SpeedrunDotComAPI: A full .NET wrapper over the...
A full .NET wrapper over the speedrun.com API, available on NuGet - mirrorcult/SpeedrunDotComAPI
Async
Async4w ago
yes
FlashJ
FlashJOP4w ago
Where Can I get token for SRCApiClient object
Async
Async4w ago
i think you can leave it empty
FlashJ
FlashJOP4w ago
The categories are added in combo box after find button click. It's awesome : 3
No description
FlashJ
FlashJOP4w ago
The GameModel object is meaning as search filter? How to use it correctly? @Async I can't to create leaderboard for display in label world record player
Async
Async4w ago
What?
FlashJ
FlashJOP4w ago
https://pastebin.com/6CSsRF6x I'm trying all ways to fix this bug and I dunno how to fix it
Pastebin
System.ArgumentException problem - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
No description
Async
Async4w ago
How does the stacktrace look like?
FlashJ
FlashJOP4w ago
wdym stacktrace?
Async
Async4w ago
In the exception details should be a stacktrace that shows exactly where the error occured In the bottom of your exception is the button "Show Call Stack" That should be it
FlashJ
FlashJOP4w ago
Like this one?
No description
Async
Async4w ago
this seems like something in the library and not something you can control. You might want to make an issue on github

Did you find this page helpful?