This endpoint is only available via a WebSocket
Hi, I am following the doc for creating my first project with ihp,
after the command ./start, I get this trace :
direnv: loading ~/Documenti/sketchbook/blog/.envrc
direnv: export ~PATH
[("ihpVersion","1.0.1"),("os","linux"),("arch","x86_64"),("projectId","fff63c1fdd97cf6fd77e5660f750d0a84b1f8f7dde25a7c86f5dd77b95e61eae09d02934fb0d01a776b959bccde30f45222523fd5258a308f47a1fe9eb3c0178")]
Gtk-Message: 17:01:43.469: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Web/Controller: getDirectoryContents:openDirStream: does not exist (No such file or directory)
GHCi, version 9.2.4: https://www.haskell.org/ghc/ :? for help
package flags have changed, resetting and loading new packages...
package flags have changed, resetting and loading new packages...
[1 of 2] Compiling Config ( Config/Config.hs, interpreted )
IHP Telemetry is activated. This can be disabled by setting env variable IHP_TELEMETRY_DISABLED=1
[2 of 2] Compiling Main ( Main.hs, interpreted )
Ok, two modules loaded.
Loaded GHCi configuration from .ghci
IHP> package flags have changed, resetting and loading new packages...
package flags have changed, resetting and loading new packages...
[1 of 2] Compiling Config ( Config/Config.hs, interpreted )
[2 of 2] Compiling Main ( Main.hs, i.nterpreted )
Ok, two modules loaded.
IHP> Server startedThis endpoint is only available via a WebSocket
it looks ok to me, but the browser at localhost:8000 give me this:
This endpoint is only available via a WebSocket
while the server prompt is:
GET /
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Status: 400 Bad Request 0.000049211s
I am working on Ubuntu 22.04.2 LTS
thanks in advance
I found the problem, gchi was not installed on my machine, after I installed it everything works