Skip to content

Bug: Request data truncated > 3963 bytes #182

Closed

Description

@dennisoehme

Hey guys,

I'm just using frankenphp for a simple Symfony-based API application. One of these REST endpoints receives larger JSON data as POST request.

Unfortunately the 3964. and all following characters are truncated from the php://input which results into an invalid JSON string.

By using the Symfony CLI web-server / php -s I don't see that strange behavior. I ported the application from Nginx/PHP-FPM to frankenphp. The previous setup works as expected, too.

So, not sure, if this is a issue in caddy and/or frankenphp implementation or some strange configuration fuckup.

To reproduce this issue I created a small repo: https://github.com/dennisoehme/caddy-frankenphp-issue

Any idea?

Activity

  1. added
    bug
    on Aug 9, 2023
  2. dunglas commented on Aug 16, 2023

    @dunglas
    Member

    I'm able to reproduce the problem with Caddy. I added a test in #185 proving that it's not related to the FrankenPHP library itself. It's either a bug in the Caddy module or in Caddy itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions