elastic / elasticsearch-php

Official PHP client for Elasticsearch.
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
MIT License
5.27k stars 965 forks source link

$es_client->index($params) Response nginx 405 #1371

Open Joycezhangw opened 12 months ago

Joycezhangw commented 12 months ago

Summary of problem or feature request

` 405 Not Allowed:

405 Not Allowed

405 Not Allowed


nginx

`

Code snippet of problem

/www/wwwroot/xxxxxx/vendor/elasticsearch/elasticsearch/src/Response/Elasticsearch.php line 65

System details

ezimuel commented 11 months ago

@Joycezhangw sorry for my late reply. Can you copy & paste the code that you are using for the index() API? Moreover, are you using a local installation of Elasticsearch or Elastic Cloud? Thanks.