App reviews, troubleshooting, and recommendations
I'm trying to add process "uncaughtException" and "unhandledRejection" on my Shopify App, but I'm having hardtime on it.
I tried adding it on the entry.server.jsx, shopify.server.js and on my routes but it seems not working if I purposely throw an error without catch.
Where should I possibly add this on my app? Currently my app was made using Remix template.
process.on('uncaughtException', (error) => { console.error('Uncaught Exception:', error); // Handle the error or perform cleanup here. process.exit(1); }) .on('unhandledRejection', (reason, promise) => { console.error('Unhandled Promise Rejection:', reason); // Handle or log the rejection reason here. });
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025