Error: The requested client requires the gRPC Extension | gRPC + App Engine + Firestorm

Asked

Viewed 171 times

0

Good morning, I am developing an application that will receive data via post and will insert in a database firebase/ firestore, local I managed to run successfully, but when I go up to the google environment (App Engine) it gives the following error.

Fatal error: Uncaught Google\Cloud\Core\Exception\GoogleException: The requested client requires the gRPC extension. Please see https://cloud.google.com/php/grpc for installation instructions. in /srv/vendor/google/cloud/Core/src/ClientTrait.php:75 Stack trace: #0 /srv/vendor/google/cloud/Firestore/src/FirestoreClient.php(137): Google\Cloud\Firestore\FirestoreClient->requireGrpc() #1 /srv/index.php(11): Google\Cloud\Firestore\FirestoreClient->__construct(Array) #2 {main} thrown in /srv/vendor/google/cloud/Core/src/ClientTrait.php on line 75

I managed to install the local gRPC but can’t find how to enable there in my app engine.

If anyone has a light...

thank you in advance!

1 answer

0

Create a php.ini file in se same place of your index.php file exist and add this code Inside of php.ini:

; enable the gRPC extension extension=grpc.so ; for debugging purposes only display_errors=On

Browser other questions tagged

You are not signed in. Login or sign up in order to post.