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);
$bucket = $storage->bucket('my-default-bucket.appspot.com'); 
$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

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8b08703a-f0f6-4705-b88e-6e85046a555d%40googlegroups.com.
  • [google-ap... Brijid | Ben Tredinnick
    • [goog... 'Nicolas (Google Cloud Platform Support)' via Google App Engine

Reply via email to