Cannot retrieve events
On Debian Stable with nodejs 6.11.1-2nodesource1~stretch1 I got the following error when trying to sync (after deleting the previous working directory):
node matrix-recorder.js /home/user/workspace/matrix
Loading olm...
Your homeserver (give full URL): https://matrix.org/
Your username at the homeserver: Jetable
Your password at the homeserver: <redacted>
Trying to log in...
Logged in as @Jetable:matrix.org
No of items to retrieve for initial sync: 9999
Starting client for initial sync...
Got push rules
/sync error ORG.MATRIX.JSSDK_TIMEOUT: Locally timed out waiting for a response
{ [ORG.MATRIX.JSSDK_TIMEOUT: Locally timed out waiting for a response]
errcode: 'ORG.MATRIX.JSSDK_TIMEOUT',
name: 'ORG.MATRIX.JSSDK_TIMEOUT',
message: 'Locally timed out waiting for a response',
data:
{ error: 'Locally timed out waiting for a response',
errcode: 'ORG.MATRIX.JSSDK_TIMEOUT',
timeout: 80000 } }
Number of consecutive failed sync requests: 1
Starting keep-alive
/sync error ORG.MATRIX.JSSDK_TIMEOUT: Locally timed out waiting for a response
{ [ORG.MATRIX.JSSDK_TIMEOUT: Locally timed out waiting for a response]
errcode: 'ORG.MATRIX.JSSDK_TIMEOUT',
name: 'ORG.MATRIX.JSSDK_TIMEOUT',
message: 'Locally timed out waiting for a response',
data:
{ error: 'Locally timed out waiting for a response',
errcode: 'ORG.MATRIX.JSSDK_TIMEOUT',
timeout: 80000 } }
Number of consecutive failed sync requests: 2
Starting keep-alive
/sync error ORG.MATRIX.JSSDK_TIMEOUT: Locally timed out waiting for a response
{ [ORG.MATRIX.JSSDK_TIMEOUT: Locally timed out waiting for a response]
errcode: 'ORG.MATRIX.JSSDK_TIMEOUT',
name: 'ORG.MATRIX.JSSDK_TIMEOUT',
message: 'Locally timed out waiting for a response',
data:
{ error: 'Locally timed out waiting for a response',
errcode: 'ORG.MATRIX.JSSDK_TIMEOUT',
timeout: 80000 } }
Number of consecutive failed sync requests: 3
Starting keep-alive
/home/user/workspace/sources/matrix/matrix-recorder/node_modules/olm/olm.js:19
"undefined"!==typeof module&&(module.exports=a);process.on("uncaughtException",function(a){if(!(a instanceof T))throw a;});a.inspect=function(){return"[Emscripten Module object]"}}else if(ma)a.print||(a.print=print),"undefined"!=typeof printErr&&(a.printErr=printErr),a.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},a.readBinary=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");z("object"===typeof a);return a},"undefined"!=
^
TypeError: Cannot read property 'error' of undefined
at MatrixClient.<anonymous> (/home/user/workspace/sources/matrix/matrix-recorder/matrix-recorder.js:457:66)
at emitThree (events.js:121:20)
at MatrixClient.emit (events.js:194:7)
at SyncApi._updateSyncState (/home/user/workspace/sources/matrix/matrix-recorder/node_modules/matrix-js-sdk/lib/sync.js:1164:17)
at /home/user/workspace/sources/matrix/matrix-recorder/node_modules/matrix-js-sdk/lib/sync.js:638:14
at _rejected (/home/user/workspace/sources/matrix/matrix-recorder/node_modules/q/q.js:864:24)
at /home/user/workspace/sources/matrix/matrix-recorder/node_modules/q/q.js:890:30
at Promise.when (/home/user/workspace/sources/matrix/matrix-recorder/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch (/home/user/workspace/sources/matrix/matrix-recorder/node_modules/q/q.js:808:41)
at /home/user/workspace/sources/matrix/matrix-recorder/node_modules/q/q.js:624:44