Hi,
I have a local version of some code (below - replaced default appengine bucket name with "my-default-bucket") working with uploading files to Google Cloud Storage directly. The code is based on the code I found here,
https://cloud.google.com/appengine/docs/flexible/php/using-cloud-storage . However, when I upload my code live to AppEngine Flex (PHP) I can see debug statements (removed for brevity) only up until the last statement which calls $object->beginSignedUploadSession() to generate the upload URL.
$storage = new StorageClient($config);
$object = $bucket->object('csv_data/tmpcsvdata-' . $model->file_hash . '.csv');
$upload_url = $object->beginSignedUploadSession();
As mentioned, this works fine locally (not using the local Google development server) but generates a 500 error when live and I haven't been able to catch the exception message nor can I see anything suggestive in the AppEngine logs. Around the 500 error in the logs I can see SIGTERM and SIGALRM as well as "waiting for nginx, php-fpm to die", unfortunately this doesn't provide much direction for me.
Anyone else experienced this or have any suggestions as to how to resolve?
Thanks in advance,
Ben