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

The Parameters panel seems to break POSTs in certain situations. #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bluefeet
Copy link

I've got Plack::Middleware::Debug wrapped around my Catalyst app and when I do a POST I get this error:

Bad Content-Length: maybe client disconnect? (120 bytes remaining) at /usr/local/share/perl/5.14.2/Plack/Request.pm line 286.

I was able to narrow this down to the Parameters panel, and further to the "post" element. I was also able to find someone else with this issue:

http://tickets.musicbrainz.org/browse/MBS-4499

This fix bypasses the issue. I do not know why retrieving the request body in the run callback fails, but I'm guessing Catalyst is doing something to invalidate the body.

@warewolf
Copy link

Ooh, thank you for this. This just made it possible for me to debug a JSON REST API I'm working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants