HttpRequest is not supported but it says it is

I am not a backend dev so I don't know what's causing this https://www.pastiebin.com/652eab01393e2 Logs:::::::::::::::::::::: Main started HttpListener is supported ❤️ An error occurred: The request is not supported. listener closed
No description
6 Replies
Percy
Percy8mo ago
Project ID: N/A
Discipol
Discipol8mo ago
N/A
Medim
Medim8mo ago
Hey there 1- Why did u respond with N/A when that's clearly from a project? lol 2- Can u be more specific in what are you trying to deploy? Framework, project, etc.. I'm not experienced in C#, so being more descriptive about it really matters And try listener.Prefixes.Add( "http://*:3000/api/" ); or even listener.Prefixes.Add( "http://localhost:3000/api/" );
Discipol
Discipol8mo ago
1) The project isn't irelevant, is it? I have a code issue 😄 So I asked ChatGPT to make me a simple C# application to reply to my post it seems like HTTPListener is supported, but then Railway says that the request is not supported so it kind of looks to me like a contradiction. the pastiebin has the server code
Brody
Brody8mo ago
The project isn't irelevant, isn't it? I have a code issue
you arent wrong, but its still good to have it
So I asked ChatGPT to make me a simple C# application
never blatantly trust the output of chatgpt
it seems like HTTPListener is supported, but then Railway says that the request is not supported
this is not railway saying anything, this is your code saying the request is not supported, if you want the request to be supported, then code support for it this is a code issue, you are right, and unfortunately these threads are for platform help, not code help, i recommend watching some youtube videos on the topic of C# web servers (you dont learn by asking chatgpt)
Medim
Medim8mo ago
Well, you can try what i suggested: But Brody is right, u just don't ask chatGpt for a code, run it on a PaaS and blame the PaaS that it doesn't run lol