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

204 response with non-zero content-length takes too long to finish #5818

Closed
adachenski opened this issue Jan 23, 2019 · 6 comments
Closed

204 response with non-zero content-length takes too long to finish #5818

adachenski opened this issue Jan 23, 2019 · 6 comments

Comments

@adachenski
Copy link

adachenski commented Jan 23, 2019

To Reproduce

  1. Send a valid DELETE request

Expected behavior

  1. Verify that the execution time is reasonable and the response and the status code is 204

Actual behavior
Right after sending the request the app hangs
App hangs JPG
Than it takes very long to execute(1 min)
Long to execute JPG
Other Rest API client example(execution time 31ms)
Other client JPG

Environment
Postman Version: 6.7.1
OS: Windows 7, MAC OS 10.14

@numaanashraf
Copy link
Member

@adachenski Is there a publicly accessible endpoint we can use to replicate this issue?

@numaanashraf
Copy link
Member

@adachenski could you send us a screen grab of the response headers after this happens?

@numaanashraf numaanashraf changed the title DELETE 204 takes to long to execute DELETE call with 204 response takes too long to finish Feb 3, 2019
@adachenski
Copy link
Author

adachenski commented Feb 4, 2019

@numaanashraf there are no publicly accessible endpoints for the calls that I'm testing
but I'm sending the response headers JPG here

@numaanashraf
Copy link
Member

@adachenski This seems to be due to a non-zero Content-Length being sent by the server for 204. Postman would wait for the response from the server (as indicated by the content-length). The request will finally finish when the underlying connection is closed by the client or server. Refer related issue at #2418 (comment) for more details. I'll keep this issue open to discuss how we'ld like to handle such cases.

@numaanashraf numaanashraf changed the title DELETE call with 204 response takes too long to finish 204 response with non-zero content-length takes too long to finish Feb 5, 2019
@vozersky
Copy link

vozersky commented Feb 8, 2019

I've just encountered this as well.

@numaanashraf This indeed seems to happen due to a non-zero Content-Length in reply Header, which in my case is true.

@shamasis
Copy link
Member

Closing this as duplicate of: #2418

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

5 participants