Hi I'm seeing Sentry send uncaught errors but nothing found within a try-catch block. I read this earlier question and wanted to see if my setup might be preventing Sentry from sending the errors over. Thanks in advance!
server/index.js (entrypoint)
const Routers = require('./routers');
const config = require('./config');
app.use('baseUrl', Routers);
const nuxt = new Nuxt(config);
await nuxt.ready();
app.use(nuxt.render);
routers.js
const router = require('express').Router();
const MySpace = require('./services/MySpace');
router.use('/my_space', MySpace);
MySpace.js
async doTheThing(req, res) {
try {
// execute some logic
} catch (e) {
// process.sentry.captureException(e) <--- I need to manually add this if I want to send stuff to Sentry, hoping to send any errors over automatically
return res.status(500).json(e);
}
}
Router.post('/do_the_thing', doTheThing);
nuxt.config.js
sentry: {
dsn: myDsn,
tracing: true,
config: {
debug: true,
},
},
Hi I'm seeing Sentry send uncaught errors but nothing found within a try-catch block. I read this earlier question and wanted to see if my setup might be preventing Sentry from sending the errors over. Thanks in advance!
server/index.js (entrypoint)
routers.js
MySpace.js
nuxt.config.js