getappmap / getappmap/appmap-node
app-map node crashes
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 6
- Avg merge
- 18h 23m
- Merged PRs (30d)
- 8
Description
I tried to start my node app using
npx appmap-node yarn
but it crashes with:
throw err;
^
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
(0, node_assert_1.default)(this.stream)
at Recording.emit (<localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\Recording.js:147:35)
at Recording.httpClientResponse (<localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\Recording.js:93:14)
at <localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\hooks\http.js:108:31
at Array.forEach (<anonymous>)
at IncomingMessage.<anonymous> (<localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\hooks\http.js:106:28)
at Object.onceWrapper (node:events:631:28)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1368:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '==' throw err;
^
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
(0, node_assert_1.default)(this.stream)
at Recording.emit (<localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\Recording.js:147:35)
at Recording.httpClientResponse (<localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\Recording.js:93:14)
at <localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\hooks\http.js:108:31
at Array.forEach (<anonymous>)
at IncomingMessage.<anonymous> (<localDir>\npm-cache\_npx\c76987c9a3c183fa\node_modules\appmap-node\dist\hooks\http.js:106:28)
at Object.onceWrapper (node:events:631:28)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1368:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '=='
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash with npx appmap-node yarn <my node app command>, then inspect dist/Recording.js and dist/hooks/http.js at the stack-trace locations. Done means the command no longer raises the this.stream assertion; add or run a regression check if the repository provides one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100