Skip to content

Cloud function specific rate limit is not working #8684

Description

@seyitdemirbas

New Issue Checklist

Issue Description

When I set rate limit in the cloud code, the rate limit is not working.

Steps to reproduce

When I set options on parse server config the rate limit is working, like below code.

rateLimit: { requestPath: '/functions/someFunction', requestTimeWindow: 15 * 60 * 1000, requestCount: 3, }

but i'm trying to set rate limit in the cloud code, the rate limit is not working. like below code

Parse.Cloud.define('someFunction', () => { return 'Hello world'; }, { rateLimit: { requestTimeWindow: 60 * 60 * 1000, requestCount: 3, } });

Server

  • Parse Server version: 6.2.1
  • Operating system: Ubuntu 20
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 6.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): JavaScript
  • SDK version: 4.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions