【发布时间】:2021-07-01 01:31:24
【问题描述】:
我正在将 Asp.Net Core 3.1 API 与 Identity Server 一起使用,并且我长期以来一直使用 Postman 作为 API 测试器,它运行良好,但是,在版本更新到 8.+.+ 后,Postman 向我返回了这个错误:
<HEAD>
<TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii">
</HEAD>
<BODY>
<h2>Bad Request - Request Too Long</h2>
<hr>
<p>HTTP Error 400. The size of the request headers is too long.</p>
</BODY>
我输入了标题 key (Content-Type) 和 value (application/json) 并且授权是 bearer 令牌的类型身体空虚。
我遵循了很多问题来解决这个问题,如下所述:
- bad request - request too long
- https://github.com/IdentityServer/IdentityServer3/issues/1124
- https://community.postman.com/t/400-bad-request/18252
如何解决 Postman(错误请求 - 请求太长)问题?
【问题讨论】:
标签: api asp.net-core postman identityserver3