Coder Social home page Coder Social logo

Comments (7)

edalzell avatar edalzell commented on June 3, 2024

This code silences the error, not sure yet if everything still works:

if (ob_get_contents()) {
    ob_flush();
}

from laravel-wave.

slavarazum avatar slavarazum commented on June 3, 2024

Hi @edalzell. Probably you have disabled output buffering on the server.

Is it works normal on a local environment?
Have you debugged what echo $this returns at ServerSentEvent::__invoke method?

from laravel-wave.

edalzell avatar edalzell commented on June 3, 2024

Hi @edalzell. Probably you have disabled output buffering on the server.

Is it works normal on a local environment? Have you debugged what echo $this returns at ServerSentEvent::__invoke method?

This error is occurring locally. And I didn't get it before, it's a new thing.

from laravel-wave.

edalzell avatar edalzell commented on June 3, 2024

But I did switch recently to Herd (from Brew/Valet), so maybe it is off? I'll check, thanks!

from laravel-wave.

slavarazum avatar slavarazum commented on June 3, 2024

Probably we have found a source, let test it on Herd.

from laravel-wave.

edalzell avatar edalzell commented on June 3, 2024

Confirmed, Herd does NOT have output_buffering = 4096 in its php.ini.

Sorry about the confusion.

from laravel-wave.

slavarazum avatar slavarazum commented on June 3, 2024

NP, thank you for your involvement.

from laravel-wave.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.