Admin 'error' after proxy config

default discord avatar
7 months ago

Hey all, started getting this error after changing my payload nginx config to server on /payload.

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

The odd thing is that seemingly nothing is broken, it just loops this message, I assume as it tries to connect to hmr?

Happy to provide more info.

  • discord user avatar
    Payload Team
    7 months ago

    I can't say I've seen anything like this before. This is on app start or something else?

    We use webpack-hot-middleware that might communicate over a different port, would that make a difference for your nginx config?

  • default discord avatar
    7 months ago

    Hmm possibly, looking into it now

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.