Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSasync_hooks for contextSingle-choice MCQ

You register an `init` callback via `async_hooks.createHook({ init })` but it never fires for any new async resource. The most likely reason is:

const hook = async_hooks.createHook({ init(id, type, trigger) { /* never runs */ }, }); // ... start making requests