EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.

See original GitHub issue

Event source is working on apache srever. But When I am switching to nginx, it says EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. I am using PHP and laravel and chrome browser.

I have added header('Content-Type: text/event-stream'); header('Cache-Control: no-cache'); before the response from server.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
abzfarahcommented, Jul 24, 2017

Getting same issue. Have you resolved it?

0reactions
Yafflecommented, Dec 7, 2019

@lmkoushik , @abzfarah , @Jurigag , are you sure the response is correct?

Read more comments on GitHub >

github_iconTop Results From Across the Web

EventSource's response has a MIME type ("text/html") that is ...
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. header is set to text/event- ...
Read more >
EventSource's response has a MIME type ("text/html") that is ...
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.
Read more >
EventSource's response has a MIME type ("text/html") that is ...
EventSource's response has a MIME type (“text/html”) that is not “text/event-stream”. Aborting the connection. This is my config: node_version: ...
Read more >
EventSource's response has a MIME type ("text ... - YouTrack
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. What steps will reproduce the problem?
Read more >
Using EventStream doesn't work because MimeType from ...
EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection. Checking the URL (controller ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found