Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] POST /_plugins/_replication/music-names/_pause API requires an empty request body #1468

Open
dblock opened this issue Dec 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dblock
Copy link
Member

dblock commented Dec 9, 2024

What is the bug?

[INFO] => POST /_plugins/_replication/music-names/_pause ({}) [application/json] 
[INFO] <= 400 (application/json) | {
  "error": {
    "root_cause": [
      {
        "type": "parse_exception",
        "reason": "request body or source parameter is required"
      }
    ],
    "type": "parse_exception",
    "reason": "request body or source parameter is required"
  },
  "status": 400
}

An empty request body shouldn't be needed.

What is the expected behavior?

An empty body should not be required. Documentation (https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/) is also unclear even though it says {} in the example, but unsure how one can guess that without trying.

@dblock dblock added bug Something isn't working untriaged labels Dec 9, 2024
@soosinha
Copy link
Member

soosinha commented Jan 6, 2025

[Triage - attendees 1 2 3 4]

@dblock What is the convention in OpenSearch core APIs ?

@soosinha soosinha removed the untriaged label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants