uWebSockets icon indicating copy to clipboard operation
uWebSockets copied to clipboard

HttpServer.cpp example returns error when attempting to connect

Open jakubcieslak22 opened this issue 3 years ago • 5 comments

The error I'm getting upon trying to reach the server with my browser is:

Did not find file: /
Error: Returning from a request handler without responding or attaching an abort handler is forbidden!

Now I know that there has been an issue regarding the same error in the past, however the answer is mostly vague and does not fix the problem. I know that the JavaScript example is working just fine, however I would like this C++ version to work properly as well. How could I make it work?

jakubcieslak22 avatar Sep 03 '22 18:09 jakubcieslak22

Looks like the file not being found makes the server not respond

uNetworkingAB avatar Sep 03 '22 19:09 uNetworkingAB

What file? At no point have I specified "/" as any kind of path. The root directory of the server is a folder inside of my solution's main directory.

jakubcieslak22 avatar Sep 03 '22 19:09 jakubcieslak22

Looks like that example is broken. I haven't looked at it in a long while.

uNetworkingAB avatar Sep 04 '22 03:09 uNetworkingAB

I'd be grateful if you managed to have a look at it, thank you.

jakubcieslak22 avatar Sep 04 '22 07:09 jakubcieslak22

This example hasn't been updated or finished, ever. So consider it a broken example that's not supposed to work.

uNetworkingAB avatar Nov 01 '22 20:11 uNetworkingAB