[PHP] Datastore.php / Windows Dev AppEngine produces CGI/FastCGI

60 views
Skip to first unread message

Markus Frosch

unread,
Aug 20, 2015, 5:50:01 AM8/20/15
to Google App Engine
I'm using AppEngine under Windows for development. I've tried to create data in Datastore.

Unfortunately CGI/FastCGI will gone every time I call the demo script 



I've found that this line is producing the issue.

    $service_dataset->commit($dataset_id, $req, []);


After looking to the Datastore.php from this lib I've replaced return value by a simple return.

  /**

   * Commit a transaction, optionally creating, deleting or modifying some
   * entities. (datasets.commit)
   *
   * @param string $datasetId Identifies the dataset.
   * @param Google_CommitRequest $postBody
   * @param array $optParams Optional parameters.
   * @return Google_Service_Datastore_CommitResponse
   */

 
public function commit($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array())
 
{
    $params
= array('datasetId' => $datasetId, 'postBody' => $postBody);
    $params
= array_merge($params, $optParams);
   
return;
   
return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse");
 
}

The issue was gone. As expected without data in the Google Datastore.

After deploying this to the cloud the script is working well. So I think it's only a local issue.
Is there anybody who have/has the same issue?


Ryan (Cloud Platform Support)

unread,
Aug 26, 2015, 10:41:39 AM8/26/15
to Google App Engine
Salutations Markus,

We are currently investigating this. I have created a Issue Tracker and I recommended 'Staring' the issue so you can get updates.
Reply all
Reply to author
Forward
0 new messages