Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Request data truncated > 3963 bytes #182

Closed
dennisoehme opened this issue Aug 9, 2023 · 1 comment · Fixed by #187
Closed

Bug: Request data truncated > 3963 bytes #182

dennisoehme opened this issue Aug 9, 2023 · 1 comment · Fixed by #187
Labels
bug Something isn't working

Comments

@dennisoehme
Copy link

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?

@dunglas dunglas added the bug Something isn't working label Aug 9, 2023
@dunglas
Copy link
Owner

dunglas commented Aug 16, 2023

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
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants