zorous
zorous
CC#
Created by zorous on 7/25/2024 in #help
Installed Entity framework SQLite but getting this error in console
how do i properly add a sqlite3 database which will store data from an api i have
83 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
i solved the issue i forgot to bind it in the file.xaml.cs
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
rip
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
any suggestions?
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
yes
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
No description
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
No description
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
alr let me rewrite my other .cs file and see if it still causes an issue
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
know any libs that has a clock that shows time for UTC and PH?
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
is it possible for it to be blocking it?
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
i just relaized the error is going on the api "timeapi.io" and not the TotalOnline
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
i tried putting debug statements before but they didnt even show up instead i got the error
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
i have another call made for http client
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
private async Task getGameStatus()
{
using (HttpClient client = new HttpClient())
{
try
{
string responseContent = await client.GetStringAsync("https://helmet-heroes-api.com/TotalOnline");
DateTime currentTime = DateTime.Now;
string dayOfWeek = currentTime.ToString("dddd", CultureInfo.InvariantCulture);
int hour = currentTime.Hour;

if (dayOfWeek == "Friday" && hour >= 17)
{
GameStatus = "Updating";
}
else
{
GameStatus = "Online";
}
}
catch
{
GameStatus = "Offline";
}
}
}
private async Task getGameStatus()
{
using (HttpClient client = new HttpClient())
{
try
{
string responseContent = await client.GetStringAsync("https://helmet-heroes-api.com/TotalOnline");
DateTime currentTime = DateTime.Now;
string dayOfWeek = currentTime.ToString("dddd", CultureInfo.InvariantCulture);
int hour = currentTime.Hour;

if (dayOfWeek == "Friday" && hour >= 17)
{
GameStatus = "Updating";
}
else
{
GameStatus = "Online";
}
}
catch
{
GameStatus = "Offline";
}
}
}
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
im still getting this:
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (timeapi.io:443)
The program '[24028] HHR Essentials.exe' has exited with code 0 (0x0).
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (timeapi.io:443)
The program '[24028] HHR Essentials.exe' has exited with code 0 (0x0).
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
alr
56 replies
CC#
Created by zorous on 7/25/2024 in #help
✅ getting error using http client
i've been using "ReadAsStringAsync"
56 replies