getappmap / appmap-agent-js

This project is deprecated. Please use https://github.com/getappmap/appmap-node/ to record Node.js applications.
Other
27 stars 8 forks source link

Show more information when failing to digest a payload #232

Closed dividedmind closed 1 year ago

dividedmind commented 1 year ago

We've seen intermittent errors in our test runs in CI similar to this one:

TypeError: Cannot read properties of undefined (reading '0')
  at parseURL (@appland/appmap-agent-js/dist/bundles/server.mjs:4078:8)
  at Object.request (@appland/appmap-agent-js/dist/bundles/server.mjs:4207:42)
  at digestPayload (@appland/appmap-agent-js/dist/bundles/server.mjs:4264:25)
  ...

It's not clear why this happens. Perhaps if the error message printed the problematic payload it'll be clearer what the problem is.

dividedmind commented 1 year ago

Note: don't merge until after #234 is merged.