Skip to content

Cannot read property 'charAt' of undefined #727

@DenisValeev

Description

@DenisValeev
app_1       | 
app_1       | 2018-02-16T14:03:22.213Z - info: deserializeUser: f93741fb-0d4c-4d15-b200-dd40ca233e08
app_1       | 2018-02-16T14:03:22.222Z - error:  TypeError: Cannot read property 'charAt' of undefined
app_1       |     at Object._decompress (/hackmd/node_modules/lz-string/libs/lz-string.js:473:24)
app_1       |     at Object.decompressFromBase64 (/hackmd/node_modules/lz-string/libs/lz-string.js:44:21)
app_1       |     at parseNoteIdByLZString (/hackmd/lib/models/note.js:196:33)
app_1       |     at /hackmd/node_modules/async/dist/async.js:3853:24
app_1       |     at replenish (/hackmd/node_modules/async/dist/async.js:946:17)
app_1       |     at iterateeCallback (/hackmd/node_modules/async/dist/async.js:931:17)
app_1       |     at /hackmd/node_modules/async/dist/async.js:906:16
app_1       |     at /hackmd/node_modules/async/dist/async.js:3858:13
app_1       |     at Model.<anonymous> (/hackmd/lib/models/note.js:186:26)
app_1       |     at Model.tryCatcher (/hackmd/node_modules/bluebird/js/release/util.js:16:23)
app_1       |     at Promise._settlePromiseFromHandler (/hackmd/node_modules/bluebird/js/release/promise.js:512:31)
app_1       |     at Promise._settlePromise (/hackmd/node_modules/bluebird/js/release/promise.js:569:18)
app_1       |     at Promise._settlePromise0 (/hackmd/node_modules/bluebird/js/release/promise.js:614:10)
app_1       |     at Promise._settlePromises (/hackmd/node_modules/bluebird/js/release/promise.js:693:18)
app_1       |     at Async._drainQueue (/hackmd/node_modules/bluebird/js/release/async.js:133:16)
app_1       |     at Async._drainQueues (/hackmd/node_modules/bluebird/js/release/async.js:143:10)
app_1       |     at Immediate.Async.drainQueues (/hackmd/node_modules/bluebird/js/release/async.js:17:14)
app_1       | Unhandled rejection Error: Callback was already called.
app_1       |     at /hackmd/node_modules/async/dist/async.js:903:32
app_1       |     at /hackmd/node_modules/async/dist/async.js:3858:13
app_1       |     at Model.<anonymous> (/hackmd/lib/models/note.js:190:22)
app_1       |     at Model.tryCatcher (/hackmd/node_modules/bluebird/js/release/util.js:16:23)
app_1       |     at Promise._settlePromiseFromHandler (/hackmd/node_modules/bluebird/js/release/promise.js:512:31)
app_1       |     at Promise._settlePromise (/hackmd/node_modules/bluebird/js/release/promise.js:569:18)
app_1       |     at Promise._settlePromise0 (/hackmd/node_modules/bluebird/js/release/promise.js:614:10)
app_1       |     at Promise._settlePromises (/hackmd/node_modules/bluebird/js/release/promise.js:689:18)
app_1       |     at Async._drainQueue (/hackmd/node_modules/bluebird/js/release/async.js:133:16)
app_1       |     at Async._drainQueues (/hackmd/node_modules/bluebird/js/release/async.js:143:10)
app_1       |     at Immediate.Async.drainQueues (/hackmd/node_modules/bluebird/js/release/async.js:17:14)
app_1       |     at runCallback (timers.js:672:20)
app_1       |     at tryOnImmediate (timers.js:645:5)
app_1       |     at processImmediate [as _immediateCallback] (timers.js:617:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamThis issue belongs to a library or component outside

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions