Category : google-cloud-platform

I am facing a issue when trying to connect to gcloud postgres db allowing ssl in my laravel application which is running in the cloud run. I downloaded all three cert files from gcloud and set the path in config/database.php. ‘driver’ => ‘pgsql’, ‘host’ => env(‘DB_HOST’, ‘127.0.0.1’), ‘port’ => env(‘DB_PORT’, ‘5432’), ‘database’ => env(‘DB_DATABASE’, ‘forge’), ..

Read more

I’ve deployed too many times Laravel projects up to Cloud Run successfully, but right now It looks like Cloud Run is unable to read Enviroment Variables (which i’ve specified already in the Variables&Secrets section within Cloud Run instance). I’m using Laravel 8. For testing purposes (and make sure Cloud Run it’s reading env variables), i’ve ..

Read more

Wassup Guys, I’ve managed to install the Google Cloud Speech Api and use my .json file as credentials for the speech client. Now I’m getting the "Streaming calls are not supported while using the REST transport." error. Did I miss something? Below is the method of my controller. AudioController.php <?php namespace AppHttpControllers; use IlluminateHttpRequest; use ..

Read more

#change ownership of our applications RUN chown -R www-data:www-data /var/www/html/storage RUN chown -R www-data:www-data /var/www/html RUN chown -R www-data:www-data /var/www/html/bootstrap/cache RUN chmod -R 755 /var/www/html/storage RUN chmod -R 755 /var/www/html/bootstrap/cache These are the above commands I added in my dockerfile to avoid permission error but the issue is when i run this dockerfile in my ..

Read more

Hello Im using Google Vision API OCR with laravel and everything is working fine except i want the results to be more readable from the users. Here is how the results show right now with what i have complished The code in the controller is like this public function annotateImage(Request $request) { if ($request->file(‘image’)) { ..

Read more

I used v1 API as mentioned in the below link in Laravel 8 web app using curl but the page load time is increasing. https://cloud.google.com/document-ai/docs/send-request#documentai_process_document-drest curl -X POST -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) -H "Content-Type: application/json; charset=utf-8" -d @request.json https://LOCATION-documentai.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/processors/PROCESSOR_ID:process What to do to reduce page load time ? Sourc..

Read more

I am using this Guide to Integrate Pub/Sub Pull Messages. I have given Roles as "owner, Pub/Sub Publisher, and Pub/Sub Subscriber" to this service account. When I Publish a topic as shown in that guide it successfully publishes but using the same key it does not give me the list of message on pull request ..

Read more

I’ve deployed a Laravel 8.21.0 application to Google Cloud Platform using Cloud Run. The only issue I’m having at the moment is when I browse to https://MyApp.com and try to login with the standard auth form the login form actions point to http://MyApp.com instead of https://MyApp.com and the same with the forgot password link. So ..

Read more

I use a Google vendor package in my Laravel application to query my Firestore database, but the error below happens in some requests. The error happens when I send multiple requests to the server. error message: Argument 1 passed to GoogleApiCoreCredentialsWrapper::getToken() must implement interface GoogleAuthFetchAuthTokenInterface, instance of GoogleAuthFetchAuthTokenCache given The following is the function that ..

Read more

I upgraded a Laravel project from version 7 to 8. When I attempt to deploy it on App Engine, it fails saying "Please provide a valid cache path": Updating service [***]…failed. ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build [***] status: FAILURE Error type: UNKNOWN […] > IlluminateFoundationComposerScripts::postAutoloadDump > @php artisan package:discover –ansi In Compiler.php line ..

Read more