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
large body produces curl error #831
Comments
Is this request actually sending a body? I just see a query string. Maybe the query is too long and causing a weird error. What does the output look like if you enable debug output?
|
I made the mistake of using "query" instead of "body". I guess the mailgun api accepted both, and it worked without curl. I would suggest putting in a limit for the query string in the library to make this user error more clear? |
There are too many unknowns at this point to provide enough information to add guards in guzzle around this. It could also be a weird server error triggering this (I know some servers have a limit on the size of the query string). Maybe you could open an issue on libcurl and provide verbose curl output for the failing case.
|
Using php 5.5.9 on ubuntu 14.04, guzzle works fine until you try to post a larger body with it.
The error is also fixed if you use another adapter:
$client = new GuzzleHttp\Client(['adapter' => new GuzzleHttp\Adapter\StreamAdapter(new GuzzleHttp\Message\MessageFactory())]);
Not sure if this is a configuration error on my side or a bug in guzzle.
My code looks like this:
error log output:
The text was updated successfully, but these errors were encountered: