Sentry can't detect errors if a request body size is zero.
Example:
do {
try {
abs();
} catch (Throwable $e) {
$s .= str_repeat('*', 1e3);
}
} while (++$i < 1e6);
I get an error "Allowed memory size..."
I found place, where can I fix it, class RequestIntegration:
if (
null === $requestBodySize ||
>>> 0 === $requestBodySize || <<<
'none' === $maxRequestBodySize ||
('small' === $maxRequestBodySize && $requestBodySize > self::REQUEST_BODY_SMALL_MAX_CONTENT_LENGTH) ||
('medium' === $maxRequestBodySize && $requestBodySize > self::REQUEST_BODY_MEDIUM_MAX_CONTENT_LENGTH)
) {
return null;
}
Probably you add this small fix in the next release?
Sentry can't detect errors if a request body size is zero.
Example:
I get an error "Allowed memory size..."
I found place, where can I fix it, class RequestIntegration:
Probably you add this small fix in the next release?