Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16979

CLI: Error thrown when analytics event file no longer exists

    Details

    • Sprint:
      2014 Sprint 10 Tooling

      Description

      Somehow, analytics events are being removed while being processed. It's as if another process is trying to send analytics at the same time. This is probably a very difficult issue to reproduce.

      Error: ENOENT, no such file or directory '/Users/ayeung/.titanium/events/2014-05-16T22:49:16.351Z_757.json'
          at Object.fs.unlinkSync (fs.js:760:18)
          at Request._callback (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/analytics.js:274:9)
          at Request.self.callback (/usr/local/lib/node_modules/titanium/node_modules/request/request.js:129:22)
          at Request.EventEmitter.emit (events.js:98:17)
          at Request.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/request/request.js:873:14)
          at Request.EventEmitter.emit (events.js:117:20)
          at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/request/request.js:824:12)
          at IncomingMessage.EventEmitter.emit (events.js:117:20)
          at _stream_readable.js:920:16
          at process._tickCallback (node.js:415:13)
      

      As a fix, ensure that the file exists before trying to delete the file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                cbarber Chris Barber
                Reviewer:
                Allen Yeung
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18717
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration