grahamjenson / hapiger

HapiGer is an http-wrapper around the Good Enough Recommendation engine using the Hapi.js framework
174 stars 36 forks source link

Returns empty recommendations array #20

Open memmm opened 6 years ago

memmm commented 6 years ago

I follow the quick start guide, and running hapiger with in-memory event store gives a WARN: (node:19148) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

Anyways, the server starts up, but after feeding it with the events of Bob and Alice, it never returns any recommendation:

curl -X POST 'http://localhost:3456/recommendations' -d '{
    "namespace": "movies",
    "person": "Alice",
    "configuration": {
      "actions" : {"view": 5, "buy": 10}
    }
}'

returns: {"recommendations":[],"neighbourhood":{"Alice":1},"confidence":0}

grahamjenson commented 6 years ago

Could you check the events are actually being added. Then look at the dates. Also, I have not updated this in a while, so it might be silently failing somewhere.