✅ HttpListener not starting
Im trying to add a HttpListener to my Discord Bot using System.Net.HttpListener, it doesnt seem to ever reach the point where it prints "Running Preview Server on: <serverAddress>", it seems to be stuck on
listener.Start();
any solution?7 Replies
(yes i have considered the firewall to be an issue, however I have deployed the build onto a server that by default lets me access any and all ports, but it still doesnt work)
What does the debugger tell you? Where does the code go?
it gets stuck on the Prefix add part
FWIF
Prefixes.Add()
can throw an exception, so try catching that explicitly, maybe?aight
bruh
it didnt work cause it didnt end with "/"
what
it seems to work now