Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-map node crashes #150

Open
antrianis opened this issue May 6, 2024 · 1 comment
Open

app-map node crashes #150

antrianis opened this issue May 6, 2024 · 1 comment

Comments

@antrianis
Copy link

antrianis commented May 6, 2024

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: '=='
@zermelo-wisen
Copy link
Collaborator

@antrianis, can you try again with the latest version with the fix. It should print the current version as 2.21.1.

$ npx appmap-node yarn
(Λ) Running with appmap-node version 2.21.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants