-
Notifications
You must be signed in to change notification settings - Fork 837
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
GET request for images always get sent twice #615
Comments
This behavior is not seen in any browser. Even the Postman Collection Runner will only send the GET once. |
@jjbutler74 Will see how we can fix this. Postman makes raw XHR requests and it was just easier to let the browser render PNGs and JPEGs using the image tag after checking the Content-Type header. I think we can resolve this with the packaged app now. |
Thanks for the quick response Abhinav. |
Even tough this is closed and should be resolved in the packaged app. My POSTman (Version 0.10.1 (packaged)) still sends an image request twice... (with GET and with POST). Typical example: google-analytics / collect with URL parameters. |
Do you have any tests or pre-request scripts for this request? |
Send this via "POST" or "GET" (doesn't matter if it is in URL parameter or directly). Please don't forget to fill in your tracking_id without brackets (don't wanted to post mine here) ;) After a check on my side again, if you select "GET" and use the "URL params" button this request is only sent once. (But without the "URL params" it is still sending twice). |
Just wanted to chime in that I'm seeing this issue in the packaged app. |
Oh and it happens with regular HTTP as well. This is with version 1.0.6 |
I have the packaged app 2.0.5. The error still occurs!!!!! Has it become a feature? |
This has been fixed in the latest release. @ehoesch can you confirm? |
I'm seeing this too. Interestingly, the second request isn't sending the same headers as the first. In my case, the second request is missing an |
Same as @rbwendt for me. |
This is definitely still happening in:
Can we please have this issue reopened? |
@anothermh @Wilt This happens for pdf files because Postman has to re-send the request with |
I am using a Rails controller to generate and render an image to the client. The Rails controller uses send_data to render to the client. When I request this endpoint with Postman it renders twice:
When I make the same request using curl or a browser like Chrome, Firefox, or Safari, the controller and actions are only fired once. The logs show only a single inbound request (omitting the log since it's obviously only one request in the log when fired by browser). Here are the headers returned when I view the response in Postman (after a double render):
Here are the headers returned when I view the response in
|
One thing I missed was disabling Interceptor, which has stopped the double render. Can you help me understand why that causes that issue? |
The Interceptor seems to be resending the request with responsetype=arraybuffer if it's an image. There doesn't seem to be a need to do that, since Postman is the one that renders the response. We've pushed a fix - can you update to version 0.2.12 of the Interceptor (chrome:/extensions, Developer Mode > Update extensions now) and check? |
I can confirm that the problem has been resolved in 0.2.12 of Interceptor. The GET request is only seen once in the server logs. Thank you for quickly resolving this. |
The same problem is happening with media type application/pdf. |
Also Seeing this with PDF, version: |
A plain GET request of an image always creates two identical request (a few milliseconds apart).
I tested this GET request:
http://www.getpostman.com/img/screens/home.png
And recorded this responds:
This has been observed in various scenarios and on several different machines..
The text was updated successfully, but these errors were encountered: