✅ 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?
No description
7 Replies
Thing from Human Resources
(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)
Angius
Angius8mo ago
What does the debugger tell you? Where does the code go?
Thing from Human Resources
it gets stuck on the Prefix add part
No description
No description
Angius
Angius8mo ago
FWIF Prefixes.Add() can throw an exception, so try catching that explicitly, maybe?
Thing from Human Resources
aight bruh it didnt work cause it didnt end with "/"
Thing from Human Resources
it seems to work now
Want results from more Discord servers?
Add your server