Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postman responds with “Error: aborted message” Could not get a response when a response IS sent #10933

Open
1 task done
dellams opened this issue May 23, 2022 · 15 comments

Comments

@dellams
Copy link

dellams commented May 23, 2022

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

Our API use to respond with a “Not logged in” kind of error if they were not authenticated or the JWT token had expired but now we get a Error: aborted message instead (could not get a response).

But the API has not changed and is still responding as Swagger shows so something has changed with Postman?

Please help resolve this ASAP since we were about to do a demo of our API.

Any help would be greatly appreciated.

Many thanks,
David.

Steps To Reproduce

N/A

Screenshots or Videos

No response

Operating System

Windows

Postman Version

v9.19.3

Postman Platform

Postman App

Additional Context?

No response

@argylearson
Copy link

I'm having the same issue. I have custom JWT handlers that throw custom 401 messages. While I'm dubugging, the 401 shows:
image
However, once I let the application run through, I get the same "Could not get response. Error: aborted"

This worked as late as a week or two ago, and no changes have been made to the application logic.

@yurii-kysel
Copy link

yurii-kysel commented May 29, 2022

We are also faced with the same issue. It's failing with using .NET 6 with Kestrel+nginx (same as localhost on Kestrel), but working fine on .NET 6 with IIS.

I checked the response in Fiddler - both responses are reachable there and look pretty the same:

Example which is not working in Postman:
image
image

And the one which is working in Postman:
image
image

@greektreat
Copy link

running into this issue as well. What is the ETA of this fix

@Ananthalakshmii
Copy link

facing the same issue

@marcoschneidertui
Copy link

I am just running into the same issue

@shodhan690
Copy link

Hello,
Even I am facing the same issue for 204 response(No body). Is there any workaround for this?

@kk-pareek
Copy link

Getting the same error...

@shubhbhargav
Copy link

@kk-pareek Can you please share the following details to help debug this further:

  • Is this consistently reproducible? Does this happen only in certain cases?
  • Can you share the steps to reproduce?
  • Does the same request work with CURL? If yes, can you share the output of the same? (I did do through a few examples shared before but wasn't able to reproduce it at my end)

@haudan
Copy link

haudan commented Dec 28, 2022

Same issue here on version 10.6.0. Works in Insomnia and curl consistently. Trying the same request a couple of times, it works occasionally in Postman, but the Error: aborted pops up most of the time. The developer console shows the following error

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'resetSchema')

in monaco-editor.js:2, but this error is also reported when it works, so I don't think it's related.

My proxy settings are disabled, so it shouldn't be that. Any idea? What can I try?


Edit: oh, I think I've found the solution. Naturally, right after I've posted this comment. In my case, there seem to be some problematic tests (Tests tab underneath the URL). Removing the tests makes it work 100% of the time. Still, there should be a better error message, to indicate problems with the tests. I'll research this further.

See comment below.

@giridharvc7
Copy link

@Lisoph Is it possible to share this case as a collection with us for a deeper inspection? You can send this to us at support@postman.com

@haudan
Copy link

haudan commented Dec 28, 2022

Ok nevermind, it's not the tests. I've managed to reproduce the error with all tests removed. It must have been dumb luck earlier.

However - it put up a good fight - but I've now managed to make Insomnia fail as well. It gives me an Error: Transferred a partial file. I have the horrible suspicion that this is a bug in our bonehead server. Sounds to me like it closes the connection before it has finished sending all content.

@Lisoph Is it possible to share this case as a collection with us for a deeper inspection? You can send this to us at support@postman.com

What I can say is: it's a 7 line, very basic HTTP XML POST request. The response on the other hand is 32k lines of XML (874.7 KB). There's no headers, besides the Postman defaults and Content-Type XML. No params, authorization or other things changed besides tests, which don't seem to matter after all.

Maybe the error messages in Postman could be improved? Insomnia's error helps out way more in this case, I would say. Though I'm still in the process of finding a proof for this suspicion. I'll let you know.

@haudan
Copy link

haudan commented Jan 2, 2023

I'm back. It's indeed most likely a problem with our server software or network infrastructure. The issue is definitely that the connection is being closed before all content has arrived. Insomnia confirms this very clearly with its Timeline tab. Thus, my case here can be ignored.

For others having the same problem: if you're running custom server software, you might habe a bug in the server. Perhaps other network components could be the cause too (VPN?).

@lijie990822
Copy link

lijie990822 commented Nov 20, 2023

When use postman tests POST Request gets Error: aborted,but tests GET Request is OK
In local we devlop this with windows PC and test local with jdk and tomcat。We deploy the project in Online Server with Linux OS and jdk environment,use tomcat to start this server.Test local server in windows no mantter GET or POST Request is OK,BUT the Online server In Linux is wired.GET method is OK ,the POST method is get Wrong message" Error: aborted" .
I tried change local code,but useless,but isnt the right way to change,and search this question find no right answer.Wish anybody good at knowing deploy diffrent OS to cover me this bug.

@chetanbj2001
Copy link

Error: aborted
Request Headers
Content-Type: application/json
Authorization: Basic cGV0ZXI6cGV0ZXJAMTIz
User-Agent: PostmanRuntime/7.35.0
Accept: /
Postman-Token: f59c4926-ec3b-4205-89c5-658334e7bf39
Host: localhost:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 4
Request Body

same issue , please help me

@chetanbj2001
Copy link

Alright
My problem was solved simply by adding these two annotations.
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"}) and @JsonIgnore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests