A
A
Ainur Shakirov2020-01-14 15:58:08
Google
Ainur Shakirov, 2020-01-14 15:58:08

Error occurred during parsing: Fail to push limit, what exactly is the limit?

I connected an api request via the composer SDK from Google
Dela and I run into some kind of limit (not a Google limit, but a resource limit).
On the local machine, everything works through openserver, but not on the server.
php version 7.2

Fatal error: Uncaught Google\Protobuf\Internal\GPBDecodeException: Error occurred during parsing: Fail to push limit. in /home/lab/web/site/public_html/edit/vendor/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php:340 Stack trace: #0 /home/lab/web/site/public_html/edit/vendor/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php(363): Google\Protobuf\Internal\CodedInputStream->pushLimit(196) #1 /home/lab/web/site/public_html/edit/vendor/google/protobuf/src/Google/Protobuf/Internal/GPBWire.php(288): Google\Protobuf\Internal\CodedInputStream->incrementRecursionDepthAndPushLimit(196, 0, 0) #2 /home/lab/web/site/public_html/edit/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(420): Google\Protobuf\Internal\GPBWire::readMessage(Object(Google\Protobuf\Internal\CodedInputStream), Object(Google\Protobuf\Internal\FileDescriptorProto)) #3 /home/lab/web/site/public_html/edit/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(500): Google in /home/lab/web/site/public_html/edit/vendor/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php on line 340

I thought PHP_INT_MAX , but no, it is the same on the local machine and the server.
Error catch location:
5e1dba89ccc11663212367.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
Lev Zabudkin, 2020-01-15
@zabudkin

What do you actually want? :)))
Why do you call this event yourself (throw new GPBDe.....?)
:)
The condition in IF ($byte_lim.....) is not fulfilled for you, that's
why you stumble upon (throw new GPBDe... .)
Be careful!

D
darton1, 2020-02-27
@darton1

https://ru.stackoverflow.com/a/1088223/368318

D
devlinnik, 2021-12-17
@devlinnik

In this case, it will help - mbstring.func_overload 0

D
drinkmaker, 2022-02-09
@drinkmaker

The error is related to Protobuf files. Read more here
https://stackoverflow.com/questions/60391728/googl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question