Skip to content

Usage of async_hooks / AsyncLocalStorage conflicts with Meteor 2.3+ / Node 12+ #11539

@pozylon

Description

@pozylon

It seems like Meteor makes it impossible to use AsyncLocalStorage for own purposes:

W20210714-19:30:45.514(2)? (STDERR) TypeError: Cannot read property 'Symbol(kResourceStore)' of undefined
W20210714-19:30:45.515(2)? (STDERR)     at AsyncLocalStorage._propagate (async_hooks.js:289:34)
W20210714-19:30:45.515(2)? (STDERR)     at AsyncHook.init (async_hooks.js:255:22)
W20210714-19:30:45.515(2)? (STDERR)     at emitInitNative (internal/async_hooks.js:204:43)
W20210714-19:30:45.515(2)? (STDERR)     at emitInitScript (internal/async_hooks.js:472:3)
W20210714-19:30:45.515(2)? (STDERR)     at initAsyncResource (internal/timers.js:160:5)
W20210714-19:30:45.515(2)? (STDERR)     at new Timeout (internal/timers.js:194:3)
W20210714-19:30:45.515(2)? (STDERR)     at setUnrefTimeout (internal/timers.js:376:17)
W20210714-19:30:45.516(2)? (STDERR)     at Socket.setStreamTimeout [as setTimeout] (internal/stream_base_commons.js:263:22)
W20210714-19:30:45.516(2)? (STDERR)     at IncomingMessage.setTimeout (_http_incoming.js:99:15)
W20210714-19:30:45.516(2)? (STDERR)     at Server.WebApp._timeoutAdjustmentRequestCallback (packages/webapp/webapp_server.js:290:7)
W20210714-19:30:45.516(2)? (STDERR)     at packages/ddp-server/stream_server.js:184:23
W20210714-19:30:45.516(2)? (STDERR)     at Array.forEach (<anonymous>)
W20210714-19:30:45.516(2)? (STDERR)     at Function._.each._.forEach (packages/underscore.js:139:11)
W20210714-19:30:45.516(2)? (STDERR)     at Server.newListener (packages/ddp-server/stream_server.js:183:11)
W20210714-19:30:45.516(2)? (STDERR)     at Server.emit (events.js:375:28)
W20210714-19:30:45.516(2)? (STDERR)     at parserOnIncoming (_http_server.js:897:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    in-developmentWe are already working on it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions