You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Digging in to this, item does not have a data property (item.body does exist, however), so this ends up being undefined and nothing is logged. The passing tests do not seem to reflect the actual objects being passed to this function.
Once this is corrected, all that is logged to the console is the error message, with no trace information. With node-rollbar, we got logs like this:
Rollbar:error Handling uncaught exception. +0ms
Rollbar:error TypeError: Cannot read property 'work' of null
at Object.<anonymous> (/Users/andy/XXXX/src/XXXX.ts:58:2)
at Module._compile (module.js:541:32)
at Module.m._compile (/Users/andy/XXXX/node_modules/ts-node/src/index.ts:413:23)
at Module._extensions..js (module.js:550:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/andy/XXXX/node_modules/ts-node/src/index.ts:416:12)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
at Object.<anonymous> (/Users/andy/XXXX/node_modules/ts-node/src/_bin.ts:182:12)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10) +1ms
which we would like to preserve after upgrading.
The text was updated successfully, but these errors were encountered:
The queue gets the item to log that represents the data in the final payload structure of
```
{
"access_token": "abc123",
"data": { ... }
}
```
rather than the whole payload itself. The API object is responsible for wrapping that data object up
inside a structure like the above and then sending it. Thus the body of the item is a top level key
rather than nested under the data key.
Secondly, everyone wants the original error to be output if there is one isntead of just the
exception message, so make it so.
When passed the
verbose: true
option, rollbar.js does not log errors to the console.In
queue.js:221
, the message to log is built using the following:Digging in to this,
item
does not have adata
property (item.body
does exist, however), so this ends up being undefined and nothing is logged. The passing tests do not seem to reflect the actual objects being passed to this function.Once this is corrected, all that is logged to the console is the error message, with no trace information. With
node-rollbar
, we got logs like this:which we would like to preserve after upgrading.
The text was updated successfully, but these errors were encountered: