Skip to content

clear-cache endpoint returns 500 Internal Server Error #1

Description

@84em

Summary

The sevalla_clear_cache tool returns a 500 Internal Server Error when calling POST /applications/{id}/clear-cache on an application with CDN and edge caching enabled.

Steps to Reproduce

  1. Call sevalla_clear_cache with a valid application ID (84em.to: 1cedfe0a-0203-49d9-9f6d-2e949011c556)
  2. Application has CDN enabled and edge caching enabled (confirmed in Sevalla dashboard)
  3. API key has sufficient permissions (other endpoints like list_applications and get_application work fine)

Expected Behavior

Returns {"isSuccess": true} per Sevalla API docs.

Actual Behavior

{
  "error": true,
  "message": "API error 500: {\"message\":\"Internal Server Error\",\"status\":500,\"data\":{}}"
}

Investigation

Tested the following variations, all return 500:

  • With and without Content-Type: application/json header
  • With and without company query parameter
  • With empty JSON body {} vs no body
  • Waited for active deployment to complete before retrying

Conclusion

Likely a Sevalla API-side issue. The 500 response contains no useful error details (data is empty). Consider opening a support ticket with Sevalla.

Environment

  • MCP server: mcp-sevalla v1.0.0
  • Sevalla API: v2
  • Endpoint: POST https://api.sevalla.com/v2/applications/{id}/clear-cache

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions