Troubleshooting Thursdays : Facing 500 error with Catalyst function

Troubleshooting Thursdays : Facing 500 error with Catalyst function

Facing an issue with Catalyst code while code works in IDE, while I face an issue with running the same code within a Catalyst function.
{
"error": "TypeError: ABC is not a function\n at XYZ (/var/runtime/index.js:162:9)\n at process._tickCallback (internal/process/next_tick.js:68:7)"
}
In order to be deployed in Catalyst, the Node.js application must follow a certain code structure. This issue might occur if the code structure for the same is not followed. You can find the sample code structure for all Catalyst functions here.

For Example : If your function is Advanced IO and you have used express framework, then you need to add
  1. module.exports = app;
at the end of your function. Here app is the variable of express framework.
    • Announcements

    • [Webinar] Build smarter HR - Payroll Automation

      If your HR and payroll teams are still relying on manual exports, spreadsheet reconciliations, or constant back-and-forth coordination to keep employee data aligned, this session is for you. We’re hosting a live webinar featuring Kyle Ferrara , CTO of
    • [Webinar] How Raptee.HV accelerates its EV platform

      Curious about how EV platforms work behind the scenes? What does it actually take to run an EV platform from onboarding users to managing connected vehicles and deploying updates seamlessly? In this session, Raptee.HV shares how their platform is built
    • [Webinar] Deploy Docker apps with AppSail's custom runtime | Feb. 19

      Hi everyone, Join us on February 19, 2026 at 8–9 PM IST for a live Catalyst webinar demonstrating how to deploy OCI-compliant Docker images with AppSail's custom runtime. You’ll learn how to: Package your apps as Docker containers Deploy via CLI or connect
    • Catalyst backs Vite.js!

      Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure
    • Catalyst QuickML 2025 Year In Review

      Hello everyone 👋 It’s been an exciting year for Catalyst QuickML. In 2025, as the Catalyst platform continued to expand its capabilities, QuickML focused on strengthening reliability, developer control, and operational readiness across the AI lifecycle.

      Catalyst Community