Skip to content

[8.15, 8.16] Root API - Incorrect HTTP method for uri [/] #116721

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

Closed
ossimoi opened this issue Nov 13, 2024 · 2 comments
Closed

[8.15, 8.16] Root API - Incorrect HTTP method for uri [/] #116721

ossimoi opened this issue Nov 13, 2024 · 2 comments
Labels
>bug feedback_needed needs:reproduction needs:triage Requires assignment of a team area label

Comments

@ossimoi
Copy link

ossimoi commented Nov 13, 2024

Elasticsearch Version

8.16

Installed Plugins

No response

Java Version

openjdk 17.0.13 2024-10-15

OS Version

Linux host 6.1.82 #97 SMP PREEMPT_DYNAMIC Tue May 7 13:13:04 UTC 2024 x86_64 Linux

Problem Description

Trying to query http://localhost:9200 for node informations returns:

{"error":"Incorrect HTTP method for uri [/] and method [GET], allowed: [DELETE]","status":405}

Happens on 8.15 and 8.16. Last known working version for us is 8.8.

https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-api-root.html

Steps to Reproduce

curl http://localhost:9200

@ossimoi ossimoi added >bug needs:triage Requires assignment of a team area label labels Nov 13, 2024
@DaveCTurner
Copy link
Contributor

For me on a freshly downloaded and unpacked 8.16.0 tarball I get the expected response:

$ curl -vv http://localhost:9200
* Host localhost:9200 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:9200...
* connect to ::1 port 9200 from ::1 port 51192 failed: Connection refused
*   Trying 127.0.0.1:9200...
* Connected to localhost (127.0.0.1) port 9200
> GET / HTTP/1.1
> Host: localhost:9200
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< X-elastic-product: Elasticsearch
< content-type: application/json
< content-length: 531
<
{
  "name" : "node-0",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "QU5Ph65kToGKTF8fNhdKdQ",
  "version" : {
    "number" : "8.16.0",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "12ff76a92922609df4aba61a368e7adf65589749",
    "build_date" : "2024-11-08T10:05:56.292914697Z",
    "build_snapshot" : false,
    "lucene_version" : "9.12.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}
* Connection #0 to host localhost left intact

You're going to have to give a more precise description of how to reproduce this.

@ossimoi
Copy link
Author

ossimoi commented Nov 13, 2024

Thanks for testing. Is it possible for missing module to cause this?

To answer my own question; yes it is. rest-root. Closing, sorry for the noise!

@ossimoi ossimoi closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug feedback_needed needs:reproduction needs:triage Requires assignment of a team area label
Projects
None yet
Development

No branches or pull requests

2 participants