Express JS Function - Can't Access Request Body after catalyst deploy

Express JS Function - Can't Access Request Body after catalyst deploy

Hi everyone,

I'm having a frustrating issue with Zoho Catalyst and Express JS whereby it works as expected when running locally with catalyst serve but not on the online version after running catalyst deploy.

More specifically, I am unable to access the data in the request body. The code is as follows:
  1. 'use strict';

    // Add libraries and depedencies
    const debug = require('debug');
    const https = require('https');
    const crypto = require('crypto');
    var catalyst = require('zcatalyst-sdk-node');

    // Initialize express js
    const express = require('express');
    const app = express();
    app.use(express.json());
    app.use(express.text());
    app.use(express.urlencoded({ extended: true }));

    // API Starts Here
    app.get('/', async(req,res) => {
        let body = req.body;
        console.log('body is:' + body);
        res.status(200).send(body)
    });

    // Export module
    module.exports = app;

I make a GET request with the following parameters:
  1. {
        "numbers": ["5145550226","5145552886","+44 303 123 7300""911""bzde""2425585776""2425585776"]
    }

When running catalyst serve on the local instance, it will return the following:
  1. {
        "numbers": [
            "5145550226",
            "5145552886",
            "+44 303 123 7300",
            "911",
            "bzde",
            "2425585776",
            "2425585776"
        ]
    }

However, once I run catalyst deploy there is no data in the body:
  1. {}
Any ideas why the data is not accessible and/or stripped once running catalyst deploy?

Thanks!
    • Announcements

    • Important Announcements in Support for Catalyst Features

      Hello Catalyst Users, This announcement is to bring to your notice some of the recent updates in our support for various Catalyst components, to ensure that your existing Catalyst applications function properly. You can continue to build robust applications
    • Introducing Catalyst 2.0, the simplest cloud-based pro-code development platform.

      Dear Catalyst Community, We are beyond thrilled to present you Catalyst 2.0—the new-age, pro-code development platform that redefines the way you build, deploy, and scale apps. Catalyst 2.0 is not a mere upgrade, but a significant leap into the future
    • Set budgets to optionally disable your Catalyst production environment

      Hello all,    We are pleased to inform you that you can now configure the automatic disabling of a project's production environment upon reaching a specified budget's threshold. Budget alerts in Catalyst facilitate setting usage limits in amounts or Catalyst
    • #CatalystServerless Hackathon 2022

      We are pleased to announce #CatalystServerless Hackathon with prizes worth $5000 up for grabs. Create a working prototype aimed to solve a critical business issue using Catalyst and stand a chance to win exciting prizes. The Hackathon will happen in 3
    • Share your interest to participate in the #CatalystServerless Blogathon

      Hi, we are working on announcing the next edition of the #CatalystServerless Blogathon. Please fill up this form to stay posted on all updates related to the Blogathon. https://zfrmz.com/JN9ChxPU9JQpPgB1vRp8

      Catalyst Community