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