baslr / arangochair

🥑 arangochair is a Node.js module that adds changefeed capability to ArangoDB and make it realtime push ready
91 stars 18 forks source link

TypeError: Cannot read property 'add' of undefined #11

Open VladoDemcak opened 5 years ago

VladoDemcak commented 5 years ago

We are using the latest arangodb version (official docker image for arangodb) and we are getting following error:

This is simple info taken from arangodb dashboards:

screen shot 2019-01-08 at 2 46 02 pm
Currently listening #0 subscribers
/notification-api/node_modules/arangochair/index.js:152
                                txns.get(tid).add([type,entry.slice(idx0+14)]);
                                             ^

TypeError: Cannot read property 'add' of undefined
    at req.get (/notification-api/node_modules/arangochair/index.js:152:46)
    at HttpRequest.handleResponse (/notification-api/node_modules/request-easy/request.js:172:9)
    at rawRequest (/notification-api/node_modules/request-easy/request.js:100:16)
    at IncomingMessage.res.on (/notification-api/node_modules/request-easy/rawRequest.js:87:21)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1056:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
sudeepvd commented 5 years ago

+1

VladoDemcak commented 5 years ago

@sudeepvd we tried some of the forks of arangochair because this repo is dead. And fortunately the layro01/arangochair's fork worked. You can use it in your package.json as follows:

"dependencies": {
    "arangochair": "layro01/arangochair"

I dont know why the owner of the repo ignores PR and issues but at least we have the working fork. plz let me know if this helped.

sudeepvd commented 5 years ago

@VladoDemcak : It worked. Thanks for your quick turnaround.