Nick Eh Likes 15
Nick Eh Likes 15
CC#
Created by Nick Eh Likes 15 on 2/26/2025 in #help
API request issue
So to me, this is strange for me I can run the code perfectly fine but when other people run the code the api request gets “Forbidden” Is there some kind of special way C sharp gets request that could be preventing this?
52 replies
CC#
Created by Nick Eh Likes 15 on 2/22/2025 in #help
https request which is a bool but it also isnt?
okay so my code is pretty long but ill sum it up real quick, so pretty much im making a https request in which i get this json back "isJunior":false now i want to compare this false statment with the rest of my code but its making it harder than what it should be
False
Error while scraping: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'bool'. An explicit conversion exists (are you missing a cast?)
at CallSite.Target(Closure, CallSite, Object)
at AE.Scraper.<>c__DisplayClass3_0.<<StartScrapingAsync>g__ScrapeThread|0>d.MoveNext() in C:\Users\t\Documents\Programming\C#\a\Program.cs:line 489
False
Error while scraping: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'bool'. An explicit conversion exists (are you missing a cast?)
at CallSite.Target(Closure, CallSite, Object)
at AE.Scraper.<>c__DisplayClass3_0.<<StartScrapingAsync>g__ScrapeThread|0>d.MoveNext() in C:\Users\t\Documents\Programming\C#\a\Program.cs:line 489
c#
Console.WriteLine($"{playerInfo["isJunior"]}");
bool checkJunior = false;
if (playerInfo["isJunior"].ToString() == "true") {
checkJunior = true;
} else {
checkJunior = false;
}
c#
Console.WriteLine($"{playerInfo["isJunior"]}");
bool checkJunior = false;
if (playerInfo["isJunior"].ToString() == "true") {
checkJunior = true;
} else {
checkJunior = false;
}
162 replies