gax-php
gax-php copied to clipboard
[1.34.1] Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?
Environment details
- OS: Debian Bullseye
- PHP version: 8.3
- Package name and version: google/gax:v1.34.1 (1.34.0 was working without errors)
Steps to reproduce
- Error seems a little random, but occurs always at the same place. I couldn't reproduce it myself, because for many thousands requests, there's like 5-10 errors per day.
Code example
Exception trace
{
"class": "Error",
"message": "Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?",
"code": 0,
"file": "/app/vendor/google/gax/src/CredentialsWrapper.php:247",
"trace": [
"/app/vendor/grpc/grpc/src/lib/UnaryCall.php:43",
"/app/vendor/grpc/grpc/src/lib/BaseStub.php:295",
"/app/vendor/grpc/grpc/src/lib/BaseStub.php:545",
"/app/vendor/google/gax/src/Transport/GrpcTransport.php:228",
"/app/vendor/google/gax/src/GapicClientTrait.php:641",
"/app/vendor/google/gax/src/Middleware/CredentialsWrapperMiddleware.php:58",
"/app/vendor/google/gax/src/Middleware/FixedHeaderMiddleware.php:68",
"/app/vendor/google/gax/src/Middleware/RetryMiddleware.php:89",
"/app/vendor/google/gax/src/Middleware/RequestAutoPopulationMiddleware.php:73",
"/app/vendor/google/gax/src/Middleware/OptionsFilterMiddleware.php:61",
"/app/vendor/google/gax/src/GapicClientTrait.php:606",
"/app/vendor/google/cloud-pubsub/src/V1/Gapic/PublisherGapicClient.php:909",
"/app/vendor/google/cloud-core/src/ExponentialBackoff.php:97",
"/app/vendor/google/cloud-core/src/GrpcRequestWrapper.php:135",
"/app/vendor/google/cloud-core/src/GrpcTrait.php:81",
"/app/vendor/google/cloud-pubsub/src/Connection/Grpc.php:284",
"/app/vendor/google/cloud-pubsub/src/Topic.php:527",
"/app/vendor/google/cloud-pubsub/src/Topic.php:482",
... (app-specific trace)
]
}