profile
viewpoint

Ask questionsFatal error: Uncaught Google\Protobuf\Internal\GPBDecodeException: Error occurred during parsing: Unexpected wire type

I'm getting the following error on a competing consumer that is processing about 7000 events:

Fatal error: Uncaught Google\Protobuf\Internal\GPBDecodeException: Error occurred during parsing: Unexpected wire type. in /app/vendor/google/protobuf/php/src/Google/Protobuf/Internal/Message.php:304
Stack trace:
#0 /app/vendor/google/protobuf/php/src/Google/Protobuf/Internal/Message.php(461): Google\Protobuf\Internal\Message->skipField(Object(Google\Protobuf\Internal\CodedInputStream), 103)
#1 /app/vendor/google/protobuf/php/src/Google/Protobuf/Internal/Message.php(760): Google\Protobuf\Internal\Message->parseFieldFromStream(103, Object(Google\Protobuf\Internal\CodedInputStream), NULL)
#2 /app/vendor/google/protobuf/php/src/Google/Protobuf/Internal/GPBWire.php(289): Google\Protobuf\Internal\Message->parseFromStream(Object(Google\Protobuf\Internal\CodedInputStream))
#3 /app/vendor/google/protobuf/php/src/Google/Protobuf/Internal/Message.php(384): Google\Protobuf\Internal\GPBWire::readMessage(Object(Google\Protobuf\Internal\CodedInputStream), Object(Rxnet\EventStore\Data\EventRecord))
#4 /app/vendor/google/protobuf/php/src in /app/vendor/google/protobuf/php/src/Google/Protobuf/Internal/Message.php on line 304

This is my code:

    /** @inheritdoc */
    public function consume(): void
    {
        $this->eventStore->connect($this->endpoint)
            ->subscribe(function () {
                $observable = $this->eventStore
                    ->persistentSubscription($this->stream, $this->subscriptionName)
                    ->subscribe([$this, 'processEvent'], [$this, 'processError'], [$this, 'processCompleted']);
            }, [$this, 'processError'], [$this, 'processCompleted'])
        ;
    }

And eventstore is set up with the default parameters.

Rxnet/eventstore-client

Answer questions morrislaptop

@Th3Mouk 3.0 coming out?

useful!

Related questions

No questions were found.
Github User Rank List