Skip to content

Expecting JSON response for rate limit exceeded scenario #1227

@checkaayush

Description

@checkaayush

Expected Behavior

A JSON response should be returned:

{
  "_status": "ERR",
  "_error": {
    "code": 429,
    "message": "Rate Limit exceeded"
  }
}

Actual Behavior

Text message saying Rate limit exceeded is returned with the code 429.

Refer: https://github.com/pyeve/eve/blob/master/eve/methods/common.py#L312

Environment

  • Python version: 3.5.x
  • Eve version: 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions