[google-appengine] what tool would you use? ///My company needs a system that automatically sends messages to users to request their documents,

2021-06-10 Thread j d
My company needs a system that automatically sends messages to users to 
request their documents. and that users can answer whether or not they can 
claim them. then use that data to convert it into information. there are 
hundreds of users and hundreds of documents to deliver. I'm thinking of 
making an AI system that sends messages to people's cell phones, but I 
don't know what google clud tool to use. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9d914dfc-6725-4502-8f2f-448df34650efn%40googlegroups.com.


[google-appengine] Re: Laravel 8 - build failed in google app engine flexible environment

2021-06-10 Thread Bilal Haidar
Hi Alexis,

I believe it's a bug inside GenFilesCommand.php.

If the app.yaml file has an empty section for example:

env_variables:


There is no check for a null section in this case. I discovered that today 
after I was pulling my hair out! Now It works. But my app is giving 500 
Server Error and I cannot see any log to help me or guide me know what's 
going on.

Can you help on this?



On Thursday, June 10, 2021 at 5:56:09 PM UTC+3 Alexis (Cloud Platform 
Support) wrote:

> Hi,
>
> I think this may be a duplicate post? I see another post here[1] about the 
> same thing
>
> Please mark as resolved if it's for the same question, otherwise please 
> elaborate if it's a different issue. This also helps the community to find 
> the right solutions. Thank you.
>
> [1] https://groups.google.com/g/google-appengine/c/gpDH9AK2WyA
>
>
> On Wednesday, June 9, 2021 at 3:11:59 PM UTC-4 bha...@gmail.com wrote:
>
>>
>> Hello,
>> I have a Laravel PHP app with the following:
>>
>> - app.yaml
>> ```
>> runtime: php
>> env: flex
>>
>> runtime_config:
>> document_root: public
>> whitelist_functions: proc_open
>> automatic_scaling:
>> min_num_instances: 1
>> max_num_instances: 1
>> resources:
>> cpu: 1
>> memory_gb: 0.5
>> disk_size_gb: 10
>> env_variables:
>> # See substitution variables for Google Cloud Build Trigger
>> ```
>>
>> - cloud_build.yaml
>> ```
>> steps:
>>   - name: node:14.0.0
>> entrypoint: npm
>> args: ['install']
>>   - name: node:14.0.0
>> entrypoint: npm
>> args: ['run', 'prod']
>>   - name: 'gcr.io/cloud-builders/gcloud'
>> args: ['app', 'deploy', '--project', '$PROJECT_ID', '-q', 
>> '$_GAE_PROMOTE', '-v', '$_GAE_VERSION']
>> timeout: '3600s'
>> ```
>>
>> - composer.json
>> ```
>> "require": {
>> "php": "7.3.*",
>> ...
>> }
>> ```
>>
>> When the Cloud Build Trigger runs, I get the following error:
>>
>> ```
>> Step #0: Digest: 
>> sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
>> Step #0: Status: Downloaded newer image for 
>> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
>> Step #0: 
>> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
>> Step #0: + php /builder/create_dockerfile.php create --php73-image 
>> gcr.io/google-appengine/php73@sha256:bee53597a0df4167547fd9c2a501484e8c5d03831298f50c1db0e9cdcd915a88
>>  
>> --php72-image 
>> gcr.io/google-appengine/php72@sha256:c3f3636b89aab3a83ab288a0108f767a4d56002c9a214b17b5fe93b9ba5f8bbf
>>  
>> --php71-image 
>> gcr.io/google-appengine/php71@sha256:9d39f66c4e0b7c9a9590ed27373b8c18e79a6cde3dbf48c284ffc5f3fd99d12a
>> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Warning: array_key_exists() 
>> expects parameter 2 to be array, null given in 
>> /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #0: 
>> Step #0: Warning: array_key_exists() expects parameter 2 to be array, 
>> null given in /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Warning: array_key_exists() 
>> expects parameter 2 to be array, null given in 
>> /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #0: 
>> Step #0: Warning: array_key_exists() expects parameter 2 to be array, 
>> null given in /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Warning: array_key_exists() 
>> expects parameter 2 to be array, null given in 
>> /builder/src/Builder/GenFilesCommand.php on line 174
>> Step #0: 
>> Step #0: Warning: array_key_exists() expects parameter 2 to be array, 
>> null given in /builder/src/Builder/GenFilesCommand.php on line 174
>> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Fatal error: Uncaught Error: 
>> Unsupported operand types in /builder/src/Builder/GenFilesCommand.php:279
>> ```
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e234bdd1-3b26-4114-ba92-00219f29c023n%40googlegroups.com.


[google-appengine] Re: Laravel 8 - build failed in google app engine flexible environment

2021-06-10 Thread 'Alexis (Cloud Platform Support)' via Google App Engine
Hi,

I think this may be a duplicate post? I see another post here[1] about the 
same thing

Please mark as resolved if it's for the same question, otherwise please 
elaborate if it's a different issue. This also helps the community to find 
the right solutions. Thank you.

[1] https://groups.google.com/g/google-appengine/c/gpDH9AK2WyA


On Wednesday, June 9, 2021 at 3:11:59 PM UTC-4 bha...@gmail.com wrote:

>
> Hello,
> I have a Laravel PHP app with the following:
>
> - app.yaml
> ```
> runtime: php
> env: flex
>
> runtime_config:
> document_root: public
> whitelist_functions: proc_open
> automatic_scaling:
> min_num_instances: 1
> max_num_instances: 1
> resources:
> cpu: 1
> memory_gb: 0.5
> disk_size_gb: 10
> env_variables:
> # See substitution variables for Google Cloud Build Trigger
> ```
>
> - cloud_build.yaml
> ```
> steps:
>   - name: node:14.0.0
> entrypoint: npm
> args: ['install']
>   - name: node:14.0.0
> entrypoint: npm
> args: ['run', 'prod']
>   - name: 'gcr.io/cloud-builders/gcloud'
> args: ['app', 'deploy', '--project', '$PROJECT_ID', '-q', 
> '$_GAE_PROMOTE', '-v', '$_GAE_VERSION']
> timeout: '3600s'
> ```
>
> - composer.json
> ```
> "require": {
> "php": "7.3.*",
> ...
> }
> ```
>
> When the Cloud Build Trigger runs, I get the following error:
>
> ```
> Step #0: Digest: 
> sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
> Step #0: Status: Downloaded newer image for 
> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
> Step #0: 
> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
> Step #0: + php /builder/create_dockerfile.php create --php73-image 
> gcr.io/google-appengine/php73@sha256:bee53597a0df4167547fd9c2a501484e8c5d03831298f50c1db0e9cdcd915a88
>  
> --php72-image 
> gcr.io/google-appengine/php72@sha256:c3f3636b89aab3a83ab288a0108f767a4d56002c9a214b17b5fe93b9ba5f8bbf
>  
> --php71-image 
> gcr.io/google-appengine/php71@sha256:9d39f66c4e0b7c9a9590ed27373b8c18e79a6cde3dbf48c284ffc5f3fd99d12a
> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Warning: array_key_exists() 
> expects parameter 2 to be array, null given in 
> /builder/src/Builder/GenFilesCommand.php on line 232
> Step #0: 
> Step #0: Warning: array_key_exists() expects parameter 2 to be array, null 
> given in /builder/src/Builder/GenFilesCommand.php on line 232
> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Warning: array_key_exists() 
> expects parameter 2 to be array, null given in 
> /builder/src/Builder/GenFilesCommand.php on line 232
> Step #0: 
> Step #0: Warning: array_key_exists() expects parameter 2 to be array, null 
> given in /builder/src/Builder/GenFilesCommand.php on line 232
> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Warning: array_key_exists() 
> expects parameter 2 to be array, null given in 
> /builder/src/Builder/GenFilesCommand.php on line 174
> Step #0: 
> Step #0: Warning: array_key_exists() expects parameter 2 to be array, null 
> given in /builder/src/Builder/GenFilesCommand.php on line 174
> Step #0: [09-Jun-2021 19:06:00 UTC] PHP Fatal error: Uncaught Error: 
> Unsupported operand types in /builder/src/Builder/GenFilesCommand.php:279
> ```
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1fb8de08-7448-4e10-b354-8b0149a6ce9en%40googlegroups.com.


[google-appengine] Re: PHP Fatal error: Uncaught Error: Unsupported operand types in /builder/src/Builder/GenFilesCommand.php:279

2021-06-10 Thread Bilal Haidar
Hello Angel,

I was able to find the source of the issue. I had a section inside the 
app,yaml as follows:

env_variables:

This was interpreted as null. Hence, the issues above!

However, now the cloud build is okay, but I get 500 Server Error. I don't 
even get any logs to know what is going on!

This is the URL [1].

Regards
Bilal

[1] - https://ion-testing.uc.r.appspot.com/login#/

On Thursday, June 10, 2021 at 4:46:15 PM UTC+3 Angel (Google Cloud Platform 
Support) wrote:

> Hello,
>
> I ran your app.yaml file but I was unable to reproduce your issue. I was, 
> however, able to deploy Laravel in App Engine Flex with PHP following this 
> guide [1].
>
> Please try following these steps.
>
> Kind regards,
> Angel
>
> [1] - 
> https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexible
>
> On Wednesday, June 9, 2021 at 12:44:25 PM UTC+2 bha...@gmail.com wrote:
>
>>
>> Hello,
>> Today, while trying to deploy my Laravel PHP app on Google Cloud Build 
>> using App Engine Flex, I faced some errors:
>>
>> This is the app.yaml file:
>>
>> ```
>> runtime: php
>> env: flex
>>
>> runtime_config:
>> document_root: public
>> whitelist_functions: proc_open
>> automatic_scaling:
>> min_num_instances: 1
>> max_num_instances: 1
>> resources:
>> cpu: 1
>> memory_gb: 0.5
>> disk_size_gb: 10
>>
>> env_variables:
>> # See substitution variables for Google Cloud Build Trigger 'qa'
>> ```
>>
>> Step #1: Status: Downloaded newer image for 
>> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
>> Step #1: 
>> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
>> Step #1: + php /builder/create_dockerfile.php create --php73-image 
>> gcr.io/google-appengine/php73@sha256:bee53597a0df4167547fd9c2a501484e8c5d03831298f50c1db0e9cdcd915a88
>>  
>> --php72-image 
>> gcr.io/google-appengine/php72@sha256:c3f3636b89aab3a83ab288a0108f767a4d56002c9a214b17b5fe93b9ba5f8bbf
>>  
>> --php71-image 
>> gcr.io/google-appengine/php71@sha256:9d39f66c4e0b7c9a9590ed27373b8c18e79a6cde3dbf48c284ffc5f3fd99d12a
>> Step #1: 
>> Step #1: Warning: array_key_exists() expects parameter 2 to be array, 
>> null given in /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #1: 
>> Step #1: Warning: array_key_exists() expects parameter 2 to be array, 
>> null given in /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Warning: array_key_exists() 
>> expects parameter 2 to be array, null given in 
>> /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Warning: array_key_exists() 
>> expects parameter 2 to be array, null given in 
>> /builder/src/Builder/GenFilesCommand.php on line 232
>> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Warning: array_key_exists() 
>> expects parameter 2 to be array, null given in 
>> /builder/src/Builder/GenFilesCommand.php on line 174
>> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Fatal error: Uncaught Error: 
>> Unsupported operand types in /builder/src/Builder/GenFilesCommand.php:279
>> Step #1: Stack trace:
>> Step #1: #0 /builder/src/Builder/GenFilesCommand.php(163): 
>> Google\Cloud\Runtimes\Builder\GenFilesCommand->createDockerfile('
>> gcr.io/google-a...')
>> Step #1: #1 /builder/vendor/symfony/console/Command/Command.php(255): 
>> Google\Cloud\Runtimes\Builder\GenFilesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput),
>>  
>> Object(Symfony\Component\Console\Output\ConsoleOutput))
>> Step #1: #2 /builder/vendor/symfony/console/Application.php(987): 
>> Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput),
>>  
>> Object(Symfony\Component\Console\Output\ConsoleOutput))
>> Step #1: #3 /builder/vendor/symfony/console/Application.php(255): 
>> Symfony\Component\Console\Application->doRunCommand(Object(Google\Cloud\Runtimes\Builder\GenFilesCommand),
>>  
>> Object(Symfony\Component\Console\Input\ArgvInput), 
>> Object(Symfony\Component\Console\Output\ConsoleOutput))
>> Step #1: #4 /builder/vendor/symfony/console/Application.php(148): 
>> Symfony\Component\Conso in /builder/src/Builder/GenFilesCommand.php on line 
>> 279
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2976721d-d39d-49e8-81ec-fd0ee900c795n%40googlegroups.com.


[google-appengine] Re: PHP Fatal error: Uncaught Error: Unsupported operand types in /builder/src/Builder/GenFilesCommand.php:279

2021-06-10 Thread 'Angel (Google Cloud Platform Support)' via Google App Engine
Hello,

I ran your app.yaml file but I was unable to reproduce your issue. I was, 
however, able to deploy Laravel in App Engine Flex with PHP following this 
guide [1].

Please try following these steps.

Kind regards,
Angel

[1] 
- https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexible

On Wednesday, June 9, 2021 at 12:44:25 PM UTC+2 bha...@gmail.com wrote:

>
> Hello,
> Today, while trying to deploy my Laravel PHP app on Google Cloud Build 
> using App Engine Flex, I faced some errors:
>
> This is the app.yaml file:
>
> ```
> runtime: php
> env: flex
>
> runtime_config:
> document_root: public
> whitelist_functions: proc_open
> automatic_scaling:
> min_num_instances: 1
> max_num_instances: 1
> resources:
> cpu: 1
> memory_gb: 0.5
> disk_size_gb: 10
>
> env_variables:
> # See substitution variables for Google Cloud Build Trigger 'qa'
> ```
>
> Step #1: Status: Downloaded newer image for 
> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
> Step #1: 
> gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:1f43a583e4c10b1758647be47b9fb5f9659227ef266978694acbb7981e4ee093
> Step #1: + php /builder/create_dockerfile.php create --php73-image 
> gcr.io/google-appengine/php73@sha256:bee53597a0df4167547fd9c2a501484e8c5d03831298f50c1db0e9cdcd915a88
>  
> --php72-image 
> gcr.io/google-appengine/php72@sha256:c3f3636b89aab3a83ab288a0108f767a4d56002c9a214b17b5fe93b9ba5f8bbf
>  
> --php71-image 
> gcr.io/google-appengine/php71@sha256:9d39f66c4e0b7c9a9590ed27373b8c18e79a6cde3dbf48c284ffc5f3fd99d12a
> Step #1: 
> Step #1: Warning: array_key_exists() expects parameter 2 to be array, null 
> given in /builder/src/Builder/GenFilesCommand.php on line 232
> Step #1: 
> Step #1: Warning: array_key_exists() expects parameter 2 to be array, null 
> given in /builder/src/Builder/GenFilesCommand.php on line 232
> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Warning: array_key_exists() 
> expects parameter 2 to be array, null given in 
> /builder/src/Builder/GenFilesCommand.php on line 232
> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Warning: array_key_exists() 
> expects parameter 2 to be array, null given in 
> /builder/src/Builder/GenFilesCommand.php on line 232
> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Warning: array_key_exists() 
> expects parameter 2 to be array, null given in 
> /builder/src/Builder/GenFilesCommand.php on line 174
> Step #1: [09-Jun-2021 10:17:41 UTC] PHP Fatal error: Uncaught Error: 
> Unsupported operand types in /builder/src/Builder/GenFilesCommand.php:279
> Step #1: Stack trace:
> Step #1: #0 /builder/src/Builder/GenFilesCommand.php(163): 
> Google\Cloud\Runtimes\Builder\GenFilesCommand->createDockerfile('
> gcr.io/google-a...')
> Step #1: #1 /builder/vendor/symfony/console/Command/Command.php(255): 
> Google\Cloud\Runtimes\Builder\GenFilesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput),
>  
> Object(Symfony\Component\Console\Output\ConsoleOutput))
> Step #1: #2 /builder/vendor/symfony/console/Application.php(987): 
> Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput),
>  
> Object(Symfony\Component\Console\Output\ConsoleOutput))
> Step #1: #3 /builder/vendor/symfony/console/Application.php(255): 
> Symfony\Component\Console\Application->doRunCommand(Object(Google\Cloud\Runtimes\Builder\GenFilesCommand),
>  
> Object(Symfony\Component\Console\Input\ArgvInput), 
> Object(Symfony\Component\Console\Output\ConsoleOutput))
> Step #1: #4 /builder/vendor/symfony/console/Application.php(148): 
> Symfony\Component\Conso in /builder/src/Builder/GenFilesCommand.php on line 
> 279
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5d73ff9a-0c10-4bb2-824b-7707d5111fb7n%40googlegroups.com.