0

GET 请求的 SOLR 上出现错误请求大于 20 MB 或标头太大。请缩小您的请求并重试,或联系 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。也不在标题上发送任何内容。

4

1 回答 1

0

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

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

curl -i "removing data due to security reason"
于 2021-05-06T17:00:36.873 回答