Why is the local development server not working with Yesod?

I am using the latest version of Yesod and the Haskell platform on Windows 8.

I created a new scaffold project with yesod init, and then executed the following commands in the project directory:

cabal install yesod devel 

Yesod devel answers

 Devel application launched: http://localhost:3000 

However, when I go to localhost: 3000 with Chrome, it gives the following error:

 Error 101 (net::ERR_CONNECTION_RESET): The connection was reset. 

This is different from a random local port (which simply gives the following):

 Oops! Google Chrome could not connect to localhost:3010 

Any ideas why this is the case and what I can do to fix it?

+4
source share
1 answer

An error was introduced in Warp that caused problems with Windows and was fixed about a week ago. The latest version of the yesod platform should solve the problem (it worked correctly on Windows for my test).

+2
source

Source: https://habr.com/ru/post/1437097/


All Articles