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

ERROR: Cannot run server #7

Closed
KangHyeongMin opened this issue Apr 18, 2018 · 2 comments
Closed

ERROR: Cannot run server #7

KangHyeongMin opened this issue Apr 18, 2018 · 2 comments

Comments

@KangHyeongMin
Copy link

Steps to reproduce

  1. Clone project
  2. Run train
    $ node examples/train.js
  3. Run server
    $ node examples/server.js

Expected behaviour

Server starting with below message

model loaded
server is listening on 3000

Actual behaviour

Fail to start server with below message

events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:1024:11)
    at WriteWrap.afterWrite [as oncomplete] (net.js:851:14)

I wll fix and make PR

@loretoparisi
Copy link
Owner

@KangHyeongMin thanks for point this out. I have also updated the docs in the case you want to serve a specific model:

$ cd examples/
$ export MODEL=data/lid.176.ftz
$ node server.js 
model loaded
server is listening on 3000

Basically you have to export the MODEL env to point to the model to load, after that you should be able to call http://localhost:3000/?text=LBi%20Software%20provides%20precisely%20engineered,%20customer-focused%20#HRTECH

@loretoparisi
Copy link
Owner

Closing this then since fixed by PR #8

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