ali
ali

Reputation: 329

Postman Bad Request - Request Too Long

I am using Asp.Net Core 3.1 API with Identity Server and I am using Postman as an API tester from long time and it is working perfect, but, after version update to 8.+.+ the Postman return me this error:

<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>

I putted in header key (Content-Type) and the value (application/json) and authorization is in type of bearer token with empty body.

I followed many questions to solve this issue like the bellow mentioned:

How can I solve Postman (Bad Request - Request Too Long) issue?

Upvotes: 0

Views: 2862

Answers (2)

gharel
gharel

Reputation: 573

I had this problem starting my project with IISExpress. Using the other configuration (Kestrel I think...) did not introduce this error. (launchSettings.json:commandName:Project)

No such error on my VM. Could be a security configuration on my work computer.

Upvotes: 0

ali
ali

Reputation: 329

After many research, it is very easy and simple way to delete the cookies from the Postman application as shown below:

Cookies location

Then delete the cookies as shown below:

Delete cookies

Now try to apply the request, it should work, but, this is only temporary solution, I hope there is a full solution from Postman team or someone.

Upvotes: 0

Related Questions