【异常】ES删除内容时,提示Incorrect HTTP method for uri [//XXX] and method [DELETE], allowed: [POST]

这篇具有很好参考价值的文章主要介绍了【异常】ES删除内容时,提示Incorrect HTTP method for uri [//XXX] and method [DELETE], allowed: [POST]。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、报错内容

ES删除文档时

DELETE luckylog/gWlvBocBji44bzvy18YJ

报错如下

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

【异常】ES删除内容时,提示Incorrect HTTP method for uri [//XXX] and method [DELETE], allowed: [POST],004 - 数据库,elasticsearch,数据库,Kibana

二、报错说明

7.x版本如果直接像上面这么写SQL语句,是会报错的。

三、报错解决

7.x的ES文章来源地址https://www.toymoban.com/news/detail-603245.html

到了这里,关于【异常】ES删除内容时,提示Incorrect HTTP method for uri [//XXX] and method [DELETE], allowed: [POST]的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • LINUX终端登录时提示 Login incorrect

    LINUX终端登录时提示 Login incorrect

    1. LINUX终端登录时提示 Login incorrect     问题:(1)通过 VMware虚拟机软件安装的 CentOS 操作系统,在通过选择图形界面窗口 GNOME(建议选择经典模式) 进入:    此处选择经典模式是因为可以通过鼠标右键单击直接在图形窗口下进入命令终端(进入后命令终端可以很直接

    2024年02月02日
    浏览(7)
  • IDEA、MySQL提示Truncated incorrect DOUBLE value报错解决方法

    “Truncated incorrect DOUBLE value” 的解决方法 主要是这四种 : 错误写法示例: 正确写法示例: 改成了 在字符串变量前后加了单引号

    2024年02月11日
    浏览(8)
  • ES查询时报错内容过大: entity content is too long for the configured buffer limit

    问题: ES查询时报错内容过大: java.io.IOException: entity content is too long [107162543] for the configured buffer limit [104857600] [ElasticSearch] [ERROR] 问题: ES查询时报错 entity content is too long for the configured buffer limit 原因: 单次查询内容大小太大 解决: 设置ES查询内容限制HeapBufferedResponseConsumerFactory

    2024年02月11日
    浏览(29)
  • MySQL 报错 incorrect datetime value ‘0000-00-00 00:00:00‘ for column

    使用navicat导入数据时报错: MySQL 报错 incorrect datetime value ‘0000-00-00 00:00:00’ for column 这是因为当前的MySQL不支持datetime为0的情况。 MySQL报incorrect datetime value ‘0000-00-00 00:00:00’ for column错误原因,是由于在MySQL5.7版本以上,默认设置SQL_Mode模式,在模式里有NO_ZERO_DATE,NO_ZERO_IN_

    2024年02月12日
    浏览(9)
  • Git 拉取代码提示 unable to access ‘http://xxx.xxx.com/xxx/xxx.git/: Could not resolve host 异常解决

    Git 拉取代码提示 unable to access ‘http://xxx.xxx.com/xxx/xxx.git/: Could not resolve host 异常解决

    在开发过程中,会遇到git拉取提交操作。最近拉取主分支代码的时候,提示拉取失败 提示如下: 出现这个问题,一般是域名对应IP发生变化,git拉取时访问不到造成的。 两种解决方法: 第一种: 本地 host文件 域名对应的IP 替换成新的。 host文件地址:C:WindowsSystem32drivers

    2024年02月05日
    浏览(8)
  • ES报错:[parent] Data too large, data for [<http_request>] would be larger than limit of XXXX

    当es这个错误的时候 : [parent] Data too large, data for [http_request] would be larger than limit of [23941899878/22.2gb], with { bytes_wanted=23941987633 bytes_limit=23941899878 } 通常原因是 在于fielddata的内存被占用完了,其他索引无法分配更多的内存。 另外,查询语句写的不好,单个请求聚合查询的数据太

    2024年02月09日
    浏览(8)
  • 查询ES报错429 circuit_breaking_exception,“reason“:“[parent] Data too large, data for \[<http_request\>\]

    查询ES报错:429 Too Many Requests;circuit_breaking_exception,”reason”:”[parent] Data too large, data for [http_request]“ 问题 :ES查询报错:429 Too Many Requests;circuit_breaking_exception,“reason”:“[parent] Data too large, data for [http_request]” 原因 :ES查询缓存占用内存过大,超过阈值(默认70%),查

    2024年02月12日
    浏览(9)
  • SecureCRT远提示Key exchange failed,No compatible key exchange method. The server supports these methods

    SecureCRT远提示Key exchange failed,No compatible key exchange method. The server supports these methods

    阿里云刚买了一台服务器,本来想着用SecureCRT远程连接,结果提示报错如下, Key exchange failed. No compatible key exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sh

    2024年02月12日
    浏览(9)
  • HTTP 405 Method Not Allowed问题的解决

    HTTP 405 Method Not Allowed问题的解决

    项目中在提交表单时,提示“HTTP 405”错误——“Method Not Allowed” 这里显示的是,方法不被允许。也许经验丰富的开发人员一眼就明了当前的问题。 从字面上的意思理解,很显然是提交方法的类型错误, 要么是以GET方式向POST接口提交数据,要么是POST方式项GET接口提交数据。

    2024年04月27日
    浏览(7)
  • SpringBoot提示错误:HttpRequestMethodNotSupportedException: Request method ‘GET‘ not supported

    springboot在测试连接数据时,提示错误:Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘GET’ not supported] 意思是不支持get方法。也就是说当前方法是post类型,而我们用一个get连接请求了这个方法,当然会报错。 大概率是方法前的注解类型写错了 将 @Pos

    2024年02月08日
    浏览(7)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包