EricTheMagician / node-gdrive-fuse

This is a simple filesystem written in NodeJS to mount Google Drive as a local drive.
73 stars 21 forks source link

Stability issue - random - TypeError: Cannot read property 'id' of undefined #42

Closed ecchi closed 9 years ago

ecchi commented 9 years ago

Pulled f3a6c64b15 Did the usual, deleted cache. At random intervals Issue #37 shows up during media playback. Mac 10.10.1, node 0.10.35 No additional errors precede or identify the cause.

Turned on debug, this about the only difference:

2015-1-6T17:51::50 - debug: Getting changes from Google Drive. The last change id was 249091.
2015-1-6T17:51::51 - debug: There was 1 to parse

until the error kicked in:

TypeError: Cannot read property 'id' of undefined
  at parseChanges (/Users/ecchi/Code/node-gdrive-fuse/src/client.coffee:326:32)
  at callback (/Users/ecchi/Code/node-gdrive-fuse/src/client.coffee:279:7)
  at /Users/ecchi/Code/node-gdrive-fuse/src/client.coffee:260:7
  at Request._callback (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/lib/transporters.js:90:7)
  at Request.self.callback (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/node_modules/request/request.js:372:22)
  at Request.emit (events.js:98:17)
  at Request.<anonymous> (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/node_modules/request/request.js:1317:14)
  at Request.emit (events.js:117:20)
  at IncomingMessage.<anonymous> (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/node_modules/request/request.js:1265:12)
  at IncomingMessage.emit (events.js:117:20)
  at _stream_readable.js:944:16
  at process._tickCallback (node.js:442:13)

Anything to suggest changing? Different versions to test with, or commands?

ecchi commented 9 years ago

Does not even require browsing or accessing files. It eventually produces this error on its own. Looks like 1 min or so intervals. Doing some sort of interval refresh with google?

2015-1-6T20:33::40 - debug: There was 0 to parse
2015-1-6T20:33::40 - debug: Finished parsing changes from google
2015-1-6T20:34::52 - debug: Getting changes from Google Drive. The last change id was 249091.
2015-1-6T20:34::52 - debug: There was 1 to parse

TypeError: Cannot read property 'id' of undefined
EricTheMagician commented 9 years ago

duplicate of #37