Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recv: failed (Unknown error) messages in rest wai example #150

Open
cnd opened this issue May 25, 2016 · 4 comments
Open

recv: failed (Unknown error) messages in rest wai example #150

cnd opened this issue May 25, 2016 · 4 comments

Comments

@cnd
Copy link

cnd commented May 25, 2016

When I run rest wai example

generate some client and then use _run "localhost" (User.list []) it works and I can see full info loaded by example but in rest-wai console I'm getting messages: recv: failed (Unknown error)

win 10 x64 ghc 8.0.1

@hesselink
Copy link
Member

What is the _run function? And how are you running the server (i.e. what command to start it)?

I just tried and can't reproduce here on OS X.

@cnd
Copy link
Author

cnd commented May 25, 2016

@hesselink I've pushed example on github to reproduce https://github.com/Heather/NeverLand/blob/master/client/src/APITest.hs#L12 it's really minimal based on rest-example

@hesselink
Copy link
Member

Thanks, that's really useful! I've built the main package with -fwai, built the client, and ran both executables. This printed the following in the client:

PluginInfo {name = "plugin 1"}
PluginInfo {name = "plugin 2"}
PluginInfo {name = "plugin 3"}

In the server it printed

Starting warp server on http://localhost:3000

And nothing else. So I'm not seeing the messages you're seeing. It could be a windows specific issue, I guess. Sadly I don't know much about windows.

@cnd
Copy link
Author

cnd commented May 25, 2016

@hesselink yes, it works the same for me but after Starting warp server on http://localhost:3000 line I saw recv: failed (Unknown error) message (however it doesn't break server), I think I will invest some more time to get more related information and will post here as soon as I will find something related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants