{"action":"closed","issue":{"url":"https://api.github.com/repos/OptimalBits/bull/issues/523","repository_url":"https://api.github.com/repos/OptimalBits/bull","labels_url":"https://api.github.com/repos/OptimalBits/bull/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/OptimalBits/bull/issues/523/comments","events_url":"https://api.github.com/repos/OptimalBits/bull/issues/523/events","html_url":"https://github.com/OptimalBits/bull/issues/523","id":226168320,"number":523,"title":"failedReason: undefined","user":{"login":"jcald1","id":5595867,"avatar_url":"https://avatars3.githubusercontent.com/u/5595867?v=3","gravatar_id":"","url":"https://api.github.com/users/jcald1","html_url":"https://github.com/jcald1","followers_url":"https://api.github.com/users/jcald1/followers","following_url":"https://api.github.com/users/jcald1/following{/other_user}","gists_url":"https://api.github.com/users/jcald1/gists{/gist_id}","starred_url":"https://api.github.com/users/jcald1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcald1/subscriptions","organizations_url":"https://api.github.com/users/jcald1/orgs","repos_url":"https://api.github.com/users/jcald1/repos","events_url":"https://api.github.com/users/jcald1/events{/privacy}","received_events_url":"https://api.github.com/users/jcald1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-04T03:15:01Z","updated_at":"2017-05-06T23:31:37Z","closed_at":"2017-05-06T23:31:37Z","body":"I'm using 3.0.0-alpha.1 on Red Hat Enterprise Linux Server release 6.9 (Santiago) with \"Redis server v=3.0.3 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=622adccefca98479\" and Node 6.9.1.\r\n\r\nI have an application that writes a message to the queue successfully, but then a second application tries to read it and there is a failure when testing \"`(!job || !job.jobId)`\".   I see that there is a failedReason: undefined in the job object.\r\n\r\nIn my process function, I printed out the job object and got the following:\r\n```\r\n\r\nfull message: Job {\r\n  opts:\r\n   { removeOnComplete: true,\r\n     attempts: 1,\r\n     delay: 0,\r\n     timestamp: 1493866628781 },\r\n  name: '__default__',\r\n  queue:\r\n   SecureQueue {\r\n     name: 'HealthSubscribe',\r\n     keyPrefix: 'bull',\r\n     token: 'e9966b65-58d4-4e0c-97bb-87baa50d88b0',\r\n     client:\r\n      Redis {\r\n        domain: null,\r\n        _events: [Object],\r\n        _eventsCount: 1,\r\n        _maxListeners: undefined,\r\n        options: [Object],\r\n        scriptsSet: [Object],\r\n        commandQueue: [Object],\r\n        offlineQueue: [Object],\r\n        connector: [Object],\r\n        retryAttempts: 0,\r\n        status: 'ready',\r\n        condition: [Object],\r\n        stream: [Object],\r\n        replyParser: [Object],\r\n        serverInfo: [Object],\r\n        addJob: [Function],\r\n        addJobBuffer: [Function],\r\n        extendLock: [Function],\r\n        extendLockBuffer: [Function],\r\n        isFinished: [Function],\r\n        isFinishedBuffer: [Function],\r\n        isJobInList: [Function],\r\n        isJobInListBuffer: [Function],\r\n        moveToActive: [Function],\r\n        moveToActiveBuffer: [Function],\r\n        moveToDelayed: [Function],\r\n        moveToDelayedBuffer: [Function],\r\n        moveToFinished: [Function],\r\n        moveToFinishedBuffer: [Function],\r\n        moveUnlockedJobsToWait: [Function],\r\n        moveUnlockedJobsToWaitBuffer: [Function],\r\n        pause: [Function],\r\n        pauseBuffer: [Function],\r\n        releaseLock: [Function],\r\n        releaseLockBuffer: [Function],\r\n        removeJob: [Function],\r\n        removeJobBuffer: [Function],\r\n        reprocessJob: [Function],\r\n        reprocessJobBuffer: [Function],\r\n        retryJob: [Function],\r\n        retryJobBuffer: [Function],\r\n        takeLock: [Function],\r\n        takeLockBuffer: [Function],\r\n        updateDelaySet: [Function],\r\n        updateDelaySetBuffer: [Function] },\r\n     clients: [ [Object] ],\r\n     redlock: { driftFactor: 0.01, retryCount: 0, retryDelay: 200 },\r\n     eclient:\r\n      Redis {\r\n        domain: null,\r\n        _events: [Object],\r\n        _eventsCount: 2,\r\n        _maxListeners: undefined,\r\n        options: [Object],\r\n        scriptsSet: {},\r\n        commandQueue: [Object],\r\n        offlineQueue: [Object],\r\n        connector: [Object],\r\n        retryAttempts: 0,\r\n        status: 'ready',\r\n        condition: [Object],\r\n        stream: [Object],\r\n        replyParser: [Object],\r\n        serverInfo: [Object] },\r\n     handlers: { __default__: [Function: ret] },\r\n     delayTimer: null,\r\n     processing: [ [Object] ],\r\n     retrieving: 0,\r\n     LOCK_DURATION: 5000,\r\n     LOCK_RENEW_TIME: 2500,\r\n     STALLED_JOB_CHECK_INTERVAL: 5000,\r\n     MAX_STALLED_JOB_COUNT: 1,\r\n     timers: TimerManager { idle: false, listeners: [], timers: [Object] },\r\n     _initializing:\r\n      Promise {\r\n        '0': undefined,\r\n        '1': undefined,\r\n        '2': undefined,\r\n        '3': undefined,\r\n        _bitField: 167772160,\r\n        _fulfillmentHandler0: [Function],\r\n        _rejectionHandler0: undefined,\r\n        _promise0: undefined,\r\n        _receiver0: undefined },\r\n     domain: null,\r\n     _events:\r\n      { 'waiting@HealthSubscribe': [Function],\r\n        'active@HealthSubscribe': [Function],\r\n        'progress@HealthSubscribe': [Function],\r\n        'stalled@HealthSubscribe': [Function],\r\n        'completed@HealthSubscribe': [Function],\r\n        'failed@HealthSubscribe': [Function],\r\n        'cleaned@HealthSubscribe': [Function],\r\n        'remove@HealthSubscribe': [Function],\r\n        error: [Function],\r\n        active: [Function],\r\n        completed: [Function],\r\n        failed: [Function] },\r\n     _eventsCount: 12,\r\n     _maxListeners: undefined,\r\n     uuid: 'a542cc43-2436-40cd-8596-bba2d8bf51c2',\r\n     pubClient:\r\n      Redis {\r\n        domain: null,\r\n        _events: [Object],\r\n        _eventsCount: 1,\r\n        _maxListeners: undefined,\r\n        options: [Object],\r\n        scriptsSet: [Object],\r\n        commandQueue: [Object],\r\n        offlineQueue: [Object],\r\n        connector: [Object],\r\n        retryAttempts: 0,\r\n        status: 'ready',\r\n        condition: [Object],\r\n        stream: [Object],\r\n        replyParser: [Object],\r\n        serverInfo: [Object],\r\n        addJob: [Function],\r\n        addJobBuffer: [Function],\r\n        extendLock: [Function],\r\n        extendLockBuffer: [Function],\r\n        isFinished: [Function],\r\n        isFinishedBuffer: [Function],\r\n        isJobInList: [Function],\r\n        isJobInListBuffer: [Function],\r\n        moveToActive: [Function],\r\n        moveToActiveBuffer: [Function],\r\n        moveToDelayed: [Function],\r\n        moveToDelayedBuffer: [Function],\r\n        moveToFinished: [Function],\r\n        moveToFinishedBuffer: [Function],\r\n        moveUnlockedJobsToWait: [Function],\r\n        moveUnlockedJobsToWaitBuffer: [Function],\r\n        pause: [Function],\r\n        pauseBuffer: [Function],\r\n        releaseLock: [Function],\r\n        releaseLockBuffer: [Function],\r\n        removeJob: [Function],\r\n        removeJobBuffer: [Function],\r\n        reprocessJob: [Function],\r\n        reprocessJobBuffer: [Function],\r\n        retryJob: [Function],\r\n        retryJobBuffer: [Function],\r\n        takeLock: [Function],\r\n        takeLockBuffer: [Function],\r\n        updateDelaySet: [Function],\r\n        updateDelaySetBuffer: [Function] },\r\n     subClient:\r\n      Redis {\r\n        domain: null,\r\n        _events: [Object],\r\n        _eventsCount: 2,\r\n        _maxListeners: undefined,\r\n        options: [Object],\r\n        scriptsSet: {},\r\n        commandQueue: [Object],\r\n        offlineQueue: [Object],\r\n        connector: [Object],\r\n        retryAttempts: 0,\r\n        status: 'ready',\r\n        condition: [Object],\r\n        stream: [Object],\r\n        replyParser: [Object],\r\n        serverInfo: [Object] },\r\n     delayedTimestamp: 1.7976931348623157e+308,\r\n     guardianTimer:\r\n      Timeout {\r\n        _called: false,\r\n        _idleTimeout: 5000,\r\n        _idlePrev: [Object],\r\n        _idleNext: [Object],\r\n        _idleStart: 1244,\r\n        _onTimeout: [Function],\r\n        _timerArgs: undefined,\r\n        _repeat: 5000 },\r\n     moveUnlockedJobsToWait: [Function: bound ],\r\n     processJob: [Function: bound ],\r\n     getJobFromId: [Function: bound ],\r\n     moveUnlockedJobsToWaitInterval:\r\n      Timeout {\r\n        _called: false,\r\n        _idleTimeout: 5000,\r\n        _idlePrev: [Object],\r\n        _idleNext: [Object],\r\n        _idleStart: 1303,\r\n        _onTimeout: [Function: bound ],\r\n        _timerArgs: undefined,\r\n        _repeat: 5000 } },\r\n  data: { encryptedData: 'U2FsdGVkX19KHALZkwf73PAe3Io8qKu6bgPnppzyZYHH41FYIsyzbJCujGTM67gyuxilr5IQ3utEvycyUa/ts/lWr8wGVEnNF8bx5wWUVBTqp5bGK/+mrHibx4uT/0GL7UJjlwhqbwuCD4hv4a8ccLZgw1Kv8HRPlWBAqFPD8CZHl3D/dAp4hqOwgr9rFujnr80MRNjXUju3/yxyFQYtGrnlFwm/qMV9lWwphHdFPWNocSgqhPifLaaNwZHbtIrweg2PvgghVNykI7hsagm4bDgcAOKTmjkhmbFIJo9OD27mCX+ASAqHOjfGlHuzphHb4Bs4bEwDTrxB0FUg1N5t2HqzqFzFIpHqwbAzWqIDvWWDksGaYcjON6jx6YCnIaNGH3cudLoVXLiQlhJIxls6WG1EX32zJItApCQA332f7tbYd57+U4w6wcNNTlyrCEc4sLwI612gdZm+51ajCI4HUOyG+6UZ4yorBdocRpJY+oKMc2iRB3k+A/5qvNjqDtHyrEZTjrUomtS2NKqhQTpBN1EVcJqjiWPgVYg5I+bKJPbMeygB0K94aNyHsQhjcPEe19QpcMgCcG33SbxR6WMlJasnTDuUgwVkrrCsoW7Cp/9JNCnI5U+UZboSUR5T+atMHYUiThULxUrHEH9VQgWFLLQRrhv5v0MpD/kz4apTfDkZoYbEYOXH5mf4ezi0DKLZA7cjI1kp/FuNlm1Wt/KxhVC+itB+baUy8UmtNqccdh2lsZwdaXhK5OnihWavcafIdKivpF15PG5igqEkfxT23UjbbZcXu8mZVGzcI2oxN6Vq8mDLhBKp7dCb1XlLoDbUCug7UWhZSZfPOcqUp/a5Ck86NcFHXdA8V2sXE65xFh3kG/e1eO59y4pmazUKMykpET+F9X4VT4yC8zdpDG7khm81YT9AQoMOp8uGZ0tej/OPS+Iys/nJGGouwcs7bM3O0soQ0n8V3v+eG9Xv5mALUgANl77XjGIUif4qHnufvIRdVqVrUQ08RjQYLNT8hflc+H9iuHiXe9zuspB/MLYKh1TvFErV6pAOnZJt44ZHCYpBa64kKYgN2Iz37a5boO8HtGyiv+knkIHIkeVfpCUzi9Cii7TtIJFf9Lc2ASBwFAFtyABTMonhR4QO06MlUh8tqtNosnfXm/WRp2jd2u66BNgwjvELOCNjTGdDo+OaSTycQ3knqjGEfQPpYVcEejvsPv+JcdiF9+z0/SlWwmsr0+RiRMDwKuX8dfseaJL6aNi2eA/LOwt04skPSOLf2Y2rYndQr6hJ4LPYkjoAD45oTyUhPsEaGwYoD9b6E15Z5Ej8X5Fdykl/L4JXfirV7LXem23TViRkkXJOeid7SemyBWject9b8m2+inBVLTs0660XRm4lK+YIegn0+y91yE+U3lPAyUoDDKTKWNSe7i0kLg==' },\r\n  _progress: 0,\r\n  delay: 0,\r\n  timestamp: 1493866628781,\r\n        serverInfo: [Object] },\r\n     delayedTimestamp: 1.7976931348623157e+308,\r\n     guardianTimer:\r\n      Timeout {\r\n        _called: false,\r\n        _idleTimeout: 5000,\r\n        _idlePrev: [Object],\r\n        _idleNext: [Object],\r\n        _idleStart: 1244,\r\n        _onTimeout: [Function],\r\n        _timerArgs: undefined,\r\n        _repeat: 5000 },\r\n     moveUnlockedJobsToWait: [Function: bound ],\r\n     processJob: [Function: bound ],\r\n     getJobFromId: [Function: bound ],\r\n     moveUnlockedJobsToWaitInterval:\r\n      Timeout {\r\n        _called: false,\r\n        _idleTimeout: 5000,\r\n        _idlePrev: [Object],\r\n        _idleNext: [Object],\r\n        _idleStart: 1303,\r\n        _onTimeout: [Function: bound ],\r\n        _timerArgs: undefined,\r\n        _repeat: 5000 } },\r\n  data: { encryptedData: 'U2FsdGVkX19KHALZkwf73PAe3Io8qKu6bgPnppzyZYHH41FYIsyzbJCujGTM67gyuxilr5IQ3utEvycyUa/ts/lWr8wGVEnNF8bx5wWUVBTqp5bGK/+mrHibx4uT/0GL7UJjlwhqbwuCD4hv4a8ccLZgw1Kv8HRPlWBAqFPD8CZHl3D/dAp4hqOwgr9rFujnr80MRNj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kjoAD45oTyUhPsEaGwYoD9b6E15Z5Ej8X5Fdykl/L4JXfirV7LXem23TViRkkXJOeid7SemyBWject9b8m2+inBVLTs0660XRm4lK+YIegn0+y91yE+U3lPAyUoDDKTKWNSe7i0kLg==' },\r\n  _progress: 0,\r\n  delay: 0,\r\n  timestamp: 1493866628781,\r\n  stacktrace: [],\r\n  returnvalue: null,\r\n  attemptsMade: 0,\r\n  id: '4',\r\n  failedReason: undefined }\r\n\r\n```"}}
{"actor":{"display_login":"manast"}}