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

Error on health-check endpoint calls #101

Open
luman75 opened this issue Aug 22, 2023 · 0 comments
Open

Error on health-check endpoint calls #101

luman75 opened this issue Aug 22, 2023 · 0 comments

Comments

@luman75
Copy link

luman75 commented Aug 22, 2023

I'm getting this error on the application start. The app offers http endpoint for checking its' health

22/08/2023 14:41:36Monti APM: Authentication failed, check your "appId" & "appSecret"
22/08/2023 14:41:36Monti: invalid trace. Please share the trace below at
22/08/2023 14:41:36Monti: https://github.com/monti-apm/monti-apm-agent/issues/14
22/08/2023 14:41:36{
22/08/2023 14:41:36  _id: 'undefined::0',
22/08/2023 14:41:36  type: 'http',
22/08/2023 14:41:36  name: 'GET-/health-check',
22/08/2023 14:41:36  session: undefined,
22/08/2023 14:41:36  id: undefined,
22/08/2023 14:41:36  events: [
22/08/2023 14:41:36    {
22/08/2023 14:41:36      type: 'start',
22/08/2023 14:41:36      at: 1692708096284,
22/08/2023 14:41:36      endAt: 1692708096284,
22/08/2023 14:41:36      nested: [],
22/08/2023 14:41:36      data: { url: '/health-check', method: 'GET', headers: '{}' }
22/08/2023 14:41:36    },
22/08/2023 14:41:36    {
22/08/2023 14:41:36      type: 'async',
22/08/2023 14:41:36      at: 1692708096292,
22/08/2023 14:41:36      endAt: 1692708096292,
22/08/2023 14:41:36      nested: []
22/08/2023 14:41:36    },
22/08/2023 14:41:36    { type: 'async', at: 1692708096292 },
22/08/2023 14:41:36    { type: 'asyncend', at: 1692708096292 }
22/08/2023 14:41:36  ],
22/08/2023 14:41:36  userId: undefined,
22/08/2023 14:41:36  _lastEventId: null
22/08/2023 14:41:36}
22/08/2023 14:41:36This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
22/08/2023 14:41:36TypeError: Cannot read property 'length' of undefined
22/08/2023 14:41:36    at Tracer.event (packages/montiapm:agent/lib/tracer/tracer.js:112:56)
22/08/2023 14:41:36    at Function.Fibers.yield (packages/montiapm:agent/lib/hijack/async.js:30:35)
22/08/2023 14:41:36    at stackSafeYield (/built_app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:101:20)
22/08/2023 14:41:36    at awaitPromise (/built_app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:96:12)
22/08/2023 14:41:36    at Function.Promise.await (/built_app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
22/08/2023 14:41:36    at packages/webapp/webapp_server.js:416:3
22/08/2023 14:41:36    at /built_app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
22/08/2023 14:41:36 => awaited here:
22/08/2023 14:41:36    at Function.Promise.await (/built_app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
22/08/2023 14:41:36    at packages/webapp/webapp_server.js:416:3
22/08/2023 14:41:36    at /built_app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
22/08/2023 14:41:38Monti APM: no end event for type:  async
22/08/2023 14:41:38Cannot read property 'at' of null
22/08/2023 14:41:38TypeError: Cannot read property 'at' of null
22/08/2023 14:41:38    at HttpModel.processRequest (packages/montiapm:agent/lib/models/http.js:23:40)
22/08/2023 14:41:38    at ServerResponse.<anonymous> (packages/montiapm:agent/lib/hijack/wrap_webapp.js:137:28)
22/08/2023 14:41:38    at ServerResponse.emit (events.js:323:22)
22/08/2023 14:41:38    at ServerResponse.EventEmitter.emit (domain.js:482:12)
22/08/2023 14:41:38    at onFinish (_http_outgoing.js:730:10)
22/08/2023 14:41:38    at onCorkedFinish (_stream_writable.js:721:5)
22/08/2023 14:41:38    at afterWrite (_stream_writable.js:528:5)
22/08/2023 14:41:38    at afterWriteTick (_stream_writable.js:515:10)
22/08/2023 14:41:38    at processTicksAndRejections (internal/process/task_queues.js:83:21)
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

1 participant