-
Notifications
You must be signed in to change notification settings - Fork 730
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
Suppression of 413 error code (payload size exceeded) #1737
Comments
Someone ? maybe @ruflin |
@Ruslan05 Could you share the full code you are using? What do you see in the Elasticsearch logs? |
@ruflin , i can`t share the code, but i believe this is not even necessary cause problem is in the elastica lib, as you can see from attached screenshot. Elasticsearch logs are also not available. But i was getting this message This can be easily reproduced, just try to publish huge data (more then 100 mb) during single HTTP request and you will see the in the final response of Elastica will say that request was successful, but it`s not. |
I wonder if the problem might be here: https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Bulk/ResponseSet.php#L67 We overwrite isOk from the response which also check for the headers, but there we don't: https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Response.php#L166 Any chance you could do a var dump and share it here of the responseSet object to see if we have any useful information inside? |
Sorry for the late response. No, i cant't provide any further details as we solved the problem with 100mb payload and it's not reproducible for us anymore. But you can find responseSet object opened in phpstorm in issue description. |
Same problem here, anyone? |
I'm wondering if there's a good reason for this:
I'm using the Bulk API and the response data & status code get erased by the method _processResponse. Here's the Response I get from the Client:
And the
We're losing all the |
Actually my fix (#1775) won't fix this other issue related to the Let's say I'm doing:
This won't work:
Because the You'll have to do something like:
|
Hello Elastica team !
I faced a problem that i`m getting success response from requests which were failed due to exceeded size of payload (by default it`s 100 mb in Elasticsearch).
Here https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Bulk.php#L335 in $response we still can find
_status = 413
but in $bulkResponseSet there will be no information related to bad request and we can`t handle this issue.Please validate this issue and give me a feedback.
Regards,
Ruslan
The text was updated successfully, but these errors were encountered: