[google-appengine] Are datastore Ids unique across all namespaces?

2019-06-13 Thread NP
If I store an entity in the datastore within the context of a specific 
namespace, is it possible that the same id will occur in another namespace?

For example if I have   - 

Key(MODEL_NAME, 123456789, namespace=NS_1)

, is it possible for the datastore to also create a record such as

Key(MODEL_NAME, 123456789, namespace=NS_2)

where the id - 123456789 is appearing in more than 1 namespace?


Note that Datastore is the one automatically generating the ids.

-- 
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/69a2d8cb-301e-49a9-890c-397f2068a00f%40googlegroups.com.


[google-appengine] Future of dev_appserver.py - deprecated?

2019-06-13 Thread James Crowley

Am I right in inferring that dev_appserver.py is on the way to being 
deprecated, given the later language versions are not supported?

I've tripped up trying to use it in the php7 environment - it prompts me to 
provide a --php_executable argument for php72 environments (making me think 
it was supported), but then doesn't seem to actually support the 
environment ("The url "/" does not match any handlers." which goes away 
when you use the php55 app.yaml syntax for specifying handlers rather than 
the single entrypoint parameter)

I then noticed it's not mentioned in the docs for php72/Java 11 etc at all?

Thanks!

James

-- 
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/6446db26-29f4-48ad-88ca-b491cdddffe9%40googlegroups.com.


[google-appengine] Re: Can't open different version of appengine in flexible environment

2019-06-13 Thread 'Amit Sinha' via Google App Engine


Hello Peter, 

As Nicolus mentioned, this error usually related to app.yaml file 
configuration issue. However, I would recommend to check any other 
configuration file if you have, such as dispatch.yaml [1] 

By looking at the errors, it seems like request reached to the application. 
If this is the case, you can investigate the logs from Stackdriver Logging. 
I would say check the Stackdriver Logging to find any request with ‘404’ 
status in your particular App Engine version which might help you to figure 
out the issue. 

[1] 
https://cloud.google.com/appengine/docs/flexible/nodejs/reference/dispatch-yaml


On Thursday, June 13, 2019 at 8:10:50 AM UTC-4, Peter Chen wrote:
>
> That's not the reason, I tried the url set in the urls file, still same 
> error with a different request url.
>
> On Wednesday, June 12, 2019 at 1:38:37 AM UTC+2, Nicolas (Google Cloud 
> Platform Support) wrote:
>>
>> Hi Peter,
>>
>> Thank you for your report,
>>
>> You can access different versions of your app in App Engine by clicking 
>> on the Version number/name in the console. My assumption is the issue 
>> originated from how up your app.yaml file is set up just like in this 
>> thread 
>> 
>> .
>>
>> Also please note that these types of questions are better addressed on 
>> StackOverflow where you have access to a large community of enthusiasts and 
>> experts to share ideas with and get support from. Please make sure to 
>> include all relevant details and error messages which would help the 
>> community troubleshoot.
>>
>>
>> On Tuesday, June 11, 2019 at 3:47:24 PM UTC-4, Peter Chen wrote:
>>>
>>> I deployed several versions of a Django app on appengine flexible 
>>> environment, but when I click on the version number, it says
>>>
>>> Error: Not FoundThe requested URL / was not found on this server.
>>>
>>> How can I visit different versions of the app?
>>>
>>

-- 
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/e8276a0e-a664-446c-bca2-68eaf838eff6%40googlegroups.com.


[google-appengine] Re: beginSignedUploadSession() causes error when loaded to PHP AppEngine Flex

2019-06-13 Thread 'Nicolas (Google Cloud Platform Support)' via Google App Engine


Hi,

 
These types of questions are better addressed on StackOverflow 
 where you 
have access to a large community of enthusiasts and experts to share ideas 
with and get support from. Please make sure to include all relevant details 
and error messages which would help the community troubleshoot.

On Thursday, June 13, 2019 at 9:10:48 AM UTC-4, Brijid | Ben Tredinnick 
wrote:
>
> 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 google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b60dc90a-07ca-4ac8-8b25-1378cb3c0368%40googlegroups.com.


[google-appengine] Re: you don't have permission to edit this api key. required permission serviceusage.apikeys.update

2019-06-13 Thread 'Nicolas (Google Cloud Platform Support)' via Google App Engine


Hi Jean,

Thanks for your post,

>From the error message I would think that your IAM permission was somehow 
modified from last week. Apparently your user doesn’t have the 
“serviceusage.apiKeys.update” permission. This permission is granted in 
different roles that you can find here 
 :


   - 
   
   Owner (roles/owner)
   - 
   
   Editor (roles/editor)
   - 
   
   API Keys Admin (roles/serviceusage.apiKeysAdmin)
   

Also here is a quickstart  
for IAM if you are not familiar with granting permission to a user.


On Thursday, June 13, 2019 at 9:10:48 AM UTC-4, Jean-Luc Praz wrote:
>
> Hi,
>
> About two weeks ago I created an API key and today I wanted to edit it but 
> it failed with the error message saying "*you don't have permission to 
> edit this api key. required permission serviceusage.apikeys.update*" 
> I tried editing other keys I created thru the years and none are working. 
>
> What should check out ?
>

-- 
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/ee0ae252-1ac4-4478-a03e-a7e0ccd2d24b%40googlegroups.com.


[google-appengine] you don't have permission to edit this api key. required permission serviceusage.apikeys.update

2019-06-13 Thread Jean-Luc Praz
Hi,

About two weeks ago I created an API key and today I wanted to edit it but 
it failed with the error message saying "*you don't have permission to edit 
this api key. required permission serviceusage.apikeys.update*" 
I tried editing other keys I created thru the years and none are working. 

What should check out ?

-- 
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/20d84c39-a015-4438-8ffa-3c6cb28bfff2%40googlegroups.com.


[google-appengine] beginSignedUploadSession() causes error when loaded to PHP AppEngine Flex

2019-06-13 Thread Brijid | Ben Tredinnick
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 google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8b08703a-f0f6-4705-b88e-6e85046a555d%40googlegroups.com.


[google-appengine] Re: Can't open different version of appengine in flexible environment

2019-06-13 Thread Peter Chen
That's not the reason, I tried the url set in the urls file, still same 
error with a different request url.

On Wednesday, June 12, 2019 at 1:38:37 AM UTC+2, Nicolas (Google Cloud 
Platform Support) wrote:
>
> Hi Peter,
>
> Thank you for your report,
>
> You can access different versions of your app in App Engine by clicking on 
> the Version number/name in the console. My assumption is the issue 
> originated from how up your app.yaml file is set up just like in this 
> thread 
> 
> .
>
> Also please note that these types of questions are better addressed on 
> StackOverflow where you have access to a large community of enthusiasts and 
> experts to share ideas with and get support from. Please make sure to 
> include all relevant details and error messages which would help the 
> community troubleshoot.
>
>
> On Tuesday, June 11, 2019 at 3:47:24 PM UTC-4, Peter Chen wrote:
>>
>> I deployed several versions of a Django app on appengine flexible 
>> environment, but when I click on the version number, it says
>>
>> Error: Not FoundThe requested URL / was not found on this server.
>>
>> How can I visit different versions of the app?
>>
>

-- 
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/028794ce-c4c7-4974-8f35-a2110233f910%40googlegroups.com.