Cloud Functions call using REST API error

I have try to get cloud function responce using REST API call. But when i have call API in Postman tool or using axios.get function then below error show.

{
    "code": 141,
    "error": "the limit must be specified as a number"
}

API : Moralis server url/functions/myfunction?_ApplicationId=yourMoralisAppId&chainId=value&owner=value&size=10&page=1

So please check and guide me how to resolve this

that error could be specific to the function that you are calling

hi thanks for reply,

my cloud function is below and i already define limit is number in API like size=10.

Moralis.Cloud.define('getCreatedNFT', async (request) => {

  const query = new Moralis.Query('MarketItem');

  const page_size = request.params.size;

  const page = request.params.page - 1;

  const toSkip = page_size * page;

  const pipeline = [

    {

      match: {

        owner: request.params.owner,

        chainId: request.params.chainId,

        $expr: {

          $and: [{ $ne: ['$transaction_hash', '(undefined)'] }],

        },

      },

    },

    { sort: { _created_at: -1 } },

    { skip: toSkip },

    { limit: page_size },

  ];

  const results = await query.aggregate(pipeline);

You can add some logging to see if the cloud function gets called