Skip to content

ob_flush(): No buffer to flush error during streaming in DataProtocolAdapter #760

@vinitkadam03

Description

@vinitkadam03

I’m getting the following error while using PrismPHP streaming:

ErrorException: ob_flush(): Failed to flush buffer. No buffer to flush
in vendor/prism-php/prism/src/Streaming/Adapters/DataProtocolAdapter.php:38

Environment:

  • Laravel 12
  • PHP 8.4
  • Nginx + PHP-FPM

The error happens because DataProtocolAdapter calls ob_flush() even when no output buffer is active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions