Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

EventSource response has a MIME type that is not text/event-stream

Illustration without a description Illustration without a description

EventSource received a response that was not labeled text/event-stream. Inspect the status and body. A route that returns JSON on error or redirects to a sign-in page can fail this check even when the SSE handler itself is configured correctly.

 

Serve the stream with the correct media type and event format. A data: line followed by a blank line can form a complete event. Keep the connection open as the stream requires and check that the client can reach the actual handler with its session.

 

Verify that events arrive in the browser after the headers. A correctly labeled response that closes without sending the expected event still leaves the feature incomplete.

 

Content-Type: text/event-stream Cache-Control: no-cache

 

Open the EventSource response and verify its final URL, text/event-stream header and first complete event.