413 请求大于 20 MB 或 headers 太大。网络解决方案

413 Request is larger than 20 MB or headers are too large. websolr

GET 请求的 SOLR 出错请求大于 20 MB 或 headers 太大。请缩小您的请求大小并重试,或联系 support@websolr.com 并提供您的请求样本以获得进一步帮助。

请求示例如下: removing curl request due to security reason 回应:

HTTP/2 413
date: Thu, 06 May 2021 16:25:31 GMT
content-type: application/json
content-length: 218

{"code":413,"message":"Request is larger than 20 MB or headers are too large. Please reduce the size of your request and try again, or contact support@websolr.com with a sample of your request for further assistance."}

我不确定请求如何超过 20MB。也不要在 header.

上发送任何内容

此处支持 Websolr。当您在 curl 命令中传递这些查询参数时,它们是 Request-Line header 的一部分。该行中有超过 5900 个字符,这就是触发 HTTP 413 的原因。

作为解决方法,只需使用 POST:

curl -i "removing data due to security reason"