Open menties opened 1 year ago
I am having the same issue
I fixed the problem by removing extra \n
that I had inside my resp
I want to send from the api. The response from the api should follow a similiar format such as data: {resp} \n\n
without having more \n
in the resp.
I'm also running into this issue and there seem to be some other issues connected. What is Postman's required format for SSE messages? Running the same request with cURL through the terminal shows all messages so I'm unclear on what Postman specifically needs to show messages.
I got this when I was accidentally gzipping responses from my server - the data is only decoded on connection close, or after a large enough chunk is sent.
EDIT - I keep running into this stupid issue, and forgetting the solution, and I swear to god I'm the only man on the planet who has figured it out, so I have to crawl around in the dirt looking for this exact comment, so that I can re-educate myself.
Postman does a great job of absolutely shooting your entire leg off when dealing with SSE, because it has the Accept-Encoding
header set to gzip, deflate, br
by default, so when I use a simple curl
to test my endpoint, it works great - but Postman silently breaks.
I would really appreciate if postman warned you when you set gzip and SSE, because it's completely broken.
Is there an existing issue for this?
Describe the Issue
Hello,
I've encountered some issues related to Server-Sent Events (SSE). When I send a request multiple times in the same tab, only one of the server-sent events is displayed:
Additionally, the 'Clear Messages' button seems to clear only the most recent 'Connection closed' message:
This issue seems to be resolved when I introduce a delay of at least 500 ms between each event. I noticed this issue after updating my Postman version to the latest one, which is 10.19.14. In version 10.14.9, it was working perfectly.
Steps To Reproduce
Screenshots or Videos
No response
Operating System
Windows/MacOS
Postman Version
10.19.14
Postman Platform
Postman App
User Account Type
Signed In User
Additional Context?
No response