[google-appengine] Re: Cloud NDB Datastore library Beta

2019-09-26 Thread 'Mario Jimenez Leon' via Google App Engine


This is great news!

 

The library is gonna be supported by GCP support until the beta phase ends. 
You can track the changes in the changelog of the library in github: 
https://github.com/googleapis/python-ndb/blob/master/CHANGELOG.md

 

Currently, we don't have an Estimated Time of Arrival for the new version.


On Thursday, September 26, 2019 at 1:01:48 AM UTC-5, Soeren Balko wrote:
>
> Great news and good to see Google (finally!) reacting to the Python 2 EOL 
> dilemma and its repercussions on AppEngine!
>
> A couple of question though:
>
> (1) "beta" is not very reassuring in a sense that we have millions of 
> users in our AppEngine/DataStore backend. When will the library come out of 
> beta?
> (2) Does the library come under Google Cloud support contracts?
>
> Thank you,
> Soeren
>
>
> On Friday, September 20, 2019 at 7:33:38 AM UTC+10, Andrew Gorcester wrote:
>>
>> Hello Pythonistas,
>>
>> I'm pleased to announce the Beta release of Cloud NDB, an updated version 
>> of the App Engine NDB client library for Datastore to support the GAE 
>> Python 3 runtime and other Python platforms. Our goal with Cloud NDB and 
>> related efforts is to ensure App Engine Python 2.7 applications are fully 
>> portable and can smoothly migrate to Python 3.
>>
>> The library can be installed with `pip install google-cloud-ndb` and the 
>> source code can be found at https://github.com/googleapis/python-ndb. 
>> Please refer to our newly published migration guide at 
>> https://cloud.google.com/appengine/docs/standard/python3/migrating-to-cloud-ndb,
>>  
>> and our API documentation at 
>> https://googleapis.dev/python/python-ndb/latest/index.html.
>>
>> We're grateful to have received generous user support in testing, 
>> comments, bug reports and even code contributions in our Alpha phase, and 
>> we hope the community will continue to send feedback as we work towards GA. 
>> Please see our GitHub repository linked above to follow development and 
>> communicate with our team, or email me directly at gorc...@google.com.
>>
>> While Cloud NDB can be used freely by any Cloud Datastore (and Firestore 
>> in Datastore mode) customers, it is intended to facilitate migration to 
>> Python 3 for App Engine NDB users; our recommendation for new apps is still 
>> to use the Cloud Client Datastore or Firestore libraries which are part of 
>> the Google Cloud SDK.
>>
>> Thanks for your continued support of our platform. I am looking forward 
>> to hearing from the community on this and upcoming efforts.
>>
>>

-- 
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/83877d90-87e6-46ea-8b9a-39b3e68e1c16%40googlegroups.com.


[google-appengine] Re: dev_appserver now compatible with Cloud Datastore Emulator.

2019-09-26 Thread 'Jose Antonio Soni Solchaga' via Google App Engine
Hello Alessandro,

The error message you are experiencing is because of wrong authentication.

Here 

 you 
can see a Stack Overflow question where this was answered.

-- 
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/53e0b12e-8754-494b-ac57-4332064aab9b%40googlegroups.com.


[google-appengine] Re: How to export more than 50 Kinds from Google Cloud Datastore into the same Cloud Storage Bucket?

2019-09-26 Thread 'Jose Antonio Soni Solchaga' via Google App Engine
It has two limits, its up to 50 concurrent exports and outputs and to 
initialize up to 20 per minute. 

It depends totally on the time they take to get exported, if the chunks are 
small and they get exported fast then you might get close to the limit per 
minute so i would suggest you to control that the maximum amount of calls 
to this is 20 per minute so you don't exceed this limit.

On Monday, September 23, 2019 at 2:13:08 PM UTC-5, Hamid Raza wrote:
>
> Hi George,
>
> Thanks for your reply.
> Yes, I do export a chunk of 40 entities in a single operation. And 
> according to my understanding, the limit of 20 export and import requests 
> is actually the limit on the number of times the export and import API can 
> be called in a minute, right? And, I am triggering the export of subsequent 
> chunk only after the previous one has completed. So, I think it will be 
> very unlikely that I will hit this 20 export and import requests per minute 
> limit.
>
> On Monday, September 23, 2019 at 9:38:00 PM UTC+5, George (Cloud Platform 
> Support) wrote:
>>
>> Hello Hamid, 
>>
>> You mention splitting your export into chunks of 40 entities. Do you 
>> export this chunk in a single operation? If so, you may check the value of 
>> requests per minute, as there is a limit of maximum of 20 export and import 
>> requests per minute for a project. You may find related information on the 
>> "Exporting and Importing Entities" documentation page 
>> . 
>>
>> To avoid the path error, you may consider using the NAMESPACE_PATH 
>> parameter, when setting an environment variable for your Cloud Storage 
>> bucket ID: BUCKET="YOUR_BUCKET_NAME[/NAMESPACE_PATH]" . In the extreme, you 
>> may lodge a request for quota increase, to be able to export more than 50 
>> concurrent exports and imports. You should rather open an issue in the 
>> Public 
>> Issue Tracker , as here you cannot 
>> transmit private information needed, and other confidential information, 
>> and progress is difficult to track. 
>>
>

-- 
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/d2bd6811-ab23-4b33-9912-bb3f55877ecb%40googlegroups.com.


[google-appengine] Re: How do min_instance and min_idle_instance affect app engine autoscaling?

2019-09-26 Thread 'Jose Antonio Soni Solchaga' via Google App Engine
Hello, 

I see that image 2 explains it better as it is clear the instances that 
were just added and the instances that just got traffic. 

As an improvement I would add the description in the top part for the red  
ones that they are active, and give enough space for the text not to be in 
two rows as borrowed in the first column.

On Tuesday, September 24, 2019 at 7:38:02 PM UTC-5, Yating Li wrote:
>
> I understand the number of instances may also be affected by traffic and 
> other flags. 
> So ideally which one of the attached pic shows the mechanism of app engine 
> autoscaling if only min_instance and min_idle_instance are counted?
>
> Assumption 1 is based on this formular : numTotalInstances = 
> max(min_instances, min_idle_instances + needed_instance_count) [1], 
> If it's correct, can I believe that when min_instance is smaller than 
> min_idle_instances, min_instance is no longer a factor can affect total 
> number of instance (since min_idle_instances + needed_instance_count is 
> always bigger)?
>
> [1]
> https://medium.com/google-cloud/app-engine-resident-instances-and-the-startup-time-problem-8c6587040a80
>
>
>

-- 
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/cfc4c77d-d318-434f-a847-0a47e8b30a31%40googlegroups.com.


[google-appengine] Re: Porting a Django+Apache app in GAP - Where to set Redirect 301 that now are in httpd.conf Apache file?

2019-09-26 Thread 'Yasser Karout' via Google App Engine
Hello,

For App Engine, the webserver is usually setup for you depending on what 
runtime you use, so you would not need Apache for Python. You can setup 
redirects within your code, I found this guide with a sample that might be 
helpful to you [1]. If you want to port your application as is, it might be 
easier to use Compute Engine as you use the stack you are already using 
[2]. 

If you experience any issues with your code when setting up, I suggest 
posting a detailed question on Stackoverflow as it will have more 
visibility within the community.

[1] 
https://realpython.com/django-redirects/#django-redirects-a-super-simple-example
[2] https://cloud.google.com/community/tutorials/setting-up-lamp

-- 
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/b7fbbbae-7a97-4ec5-a8ea-3dab01f918d8%40googlegroups.com.


[google-appengine] Re: Gcloud app engine for cloud storage

2019-09-26 Thread 'George (Cloud Platform Support)' via Google App Engine
As PHP scripts run relative to the current path,  not to the path of script 
itself, you can use __DIR__ to change this behavior, so that include refers 
to the script's own path, as a result.

StorageClient not found error is likely due to the absence of Cloud Storage 
Client Libraries , 
which you'll have to install. 

This discussion group is oriented more towards general opinions, trends, 
and issues of general nature touching the app engine. For coding in PHP, 
and program architecture, as well as importing Cloud Storage Client 
Libraries, you may be better served in dedicated forums such as 
stackoverflow, where experienced programmers are within reach and ready to 
help. 

-- 
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/ef63-3df3-4696-b540-f077d0c9bc42%40googlegroups.com.


[google-appengine] Re: Using app engine for a SAAS with custom domains and SSL

2019-09-26 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Tom, 

The process of registering a custom domain for your appspot.com site is 
fraught with delays that would cause your described automatic procedure to 
fail. You may gather related detail on the "Mapping Custom Domains" 
documentation page 

. 

This discussion group is oriented more towards general opinions, trends, 
and issues of general nature touching the app engine. For coding and 
program architecture, as well as setting custom domains set up, you may be 
better served in dedicated forums such as stackoverflow, where experienced 
programmers are within reach and ready to help. 

-- 
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/69be39f8-90cd-4b96-9736-6d2c09a85d27%40googlegroups.com.


[google-appengine] Re: Using autoload.php

2019-09-26 Thread 'George (Cloud Platform Support)' via Google App Engine
As PHP scripts run relative to the current path,  not to the path of script 
itself, you can use __DIR__ to change this behavior, so that include refers 
to the script's own path, as a result.

StorageClient not found error is likely due to the absence of Cloud Storage 
Client Libraries , 
which you'll have to install. 

This discussion group is oriented more towards general opinions, trends, 
and issues of general nature touching the app engine. For coding in PHP, 
and program architecture, as well as importing Cloud Storage Client 
Libraries, you may be better served in dedicated forums such as 
stackoverflow, where experienced programmers are within reach and ready to 
help. 

-- 
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/d7f524a2-bc45-40c3-9e8a-746efb7aa8eb%40googlegroups.com.


Re: [google-appengine] Using autoload php

2019-09-26 Thread Mua Rachmann
You will need to import it in the file, smart IDE's like phpstorm, vscode
can do that once you start typing.
Also ensure you have the dependency in your composer.json
file "google/cloud-storage" or other libraries that have the storage
cloud stuff.

Hope it helps.

Mua

On Thu, Sep 26, 2019 at 2:45 PM sampath rathnayake <
sampath.rathnay...@gmail.com> wrote:

> Hi All,
>
> I'm new to app engine and trying create a app from a sample code.
> Can anyone please tell me what is the use of
>
> require_once __DIR__ . '/vendor/autoload.php';
>
> Is this set of libraries we need to download?
> I'm developing/test locally and deploying in to gcloud project using
> 'gcloud app deploy'
>
> I can use
> use google\appengine\api\users\User;
>
> but I cannot use
> use google\cloud\storage\StorageClient;
>
> *Fatal error*: Class 'google\cloud\storage\StorageClient' not found in
> *C:\Users..*
>
> Is there a component to install for cloud storage?
>
> Thanks
>
> --
> 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/a60c5004-7fc4-4cf3-8d6d-bbad3a073cc1%40googlegroups.com
> 
> .
>

-- 
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/CAHAhu-jgAr8104YtY%3Do9Z53ESrNNSk6%3DzYLZyNPLOUizR4ak%2BA%40mail.gmail.com.


[google-appengine] Re: Why TTFB on Google Cloud Run/App depends significantly on domain?

2019-09-26 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Andy, 
>
>
There are architectural reasons for increased TTFB in some regions. Where 
do you run your services, in which regions? This is a known issue, and 
Developers are actively working towards a fix. 

-- 
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/504ad2f4-8e69-4501-8d26-e143f3526fbb%40googlegroups.com.


Re: [google-appengine] html fetching with Python on appspot

2019-09-26 Thread rahul kumar
Sleep() function actually suspends the processing of the thread in which it 
is called by the operating system, allowing other threads and processes to 
execute while it sleeps. With multiple threads and processes, sleep() 
 suspends your thread - 
it uses next to zero processing power.

On Wednesday, February 5, 2014 at 12:56:21 PM UTC+5:30, Vinny P wrote:
>
>
> 1. Try adding a time.sleep call between each page retrieval. See 
> http://docs.python.org/2/library/time.html for usage. Sometimes App 
> Engine doesn't like it when repeated URL Fetch calls are made.
>
>
>

-- 
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/b95b20da-53cd-4856-8f76-643198675e05%40googlegroups.com.


[google-appengine] Re: dev_appserver now compatible with Cloud Datastore Emulator.

2019-09-26 Thread Alessandro Bollini


On Friday, 25 May 2018 20:34:53 UTC+2, Kamran (Google Cloud Support) wrote:
>
> Hello Yuri,
>
> *dev_appserver.py* is a command to start the local development server for 
> Python, PHP and Go. If you want to use local Datastore emulator feature for 
> Java, for instructions visit this article 
> 
> .
>

Still unable to connect to the Datastore Emulator managed by the Java 8 
Local Development Server using Google Client Library: I unsuccessfully 
tried the following variations on what suggested by the linked article:

1) java_dev_appserver.sh target/war/

2) DATASTORE_EMULATOR_HOST=localhost:8080 java_dev_appserver.sh target/war/

The first one throws the following exception after trying to connect to the 
actual cloud datastore

Caused by: com.google.datastore.v1.client.DatastoreException: 
Unauthenticated., code=UNAUTHENTICATED
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:226)
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:267)

The second one stalls for some time before throwing

Caused by:
com.google.datastore.v1.client.DatastoreException: Non-protobuf error: 
||
   
   
   
   com.google.cloud
   google-cloud-bom
   0.110.0-alpha
   pom
   import
   
   
   



com.google.cloud
google-cloud-datastore





Hope someone is able to suggest the proper setup…

-- 
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/69381ca2-8fe9-4153-921c-d77d7ccb55b5%40googlegroups.com.


[google-appengine] Gcloud app engine for cloud storage

2019-09-26 Thread sampath rathnayake
Hi All,

I'm new to app engine and trying create a app from a sample code.
Can anyone please tell me what is the use of 

require  '/vendor/autoload.php';

Is this set of libraries we need to download? 
I'm developing/test locally and deploying in to gcloud project using 
'gcloud app deploy'

I can use 
use google\appengine\api\users\User;

but I cannot use
use google\cloud\storage\StorageClient;

*Fatal error*: Class 'google\cloud\storage\StorageClient' not found in 
*C:\Users..*

Is there a component to install for cloud storage?

Thanks

-- 
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/7d866fea-d6ae-4ffa-ba75-829676fc79a7%40googlegroups.com.


[google-appengine] Using autoload php

2019-09-26 Thread sampath rathnayake
Hi All,

I'm new to app engine and trying create a app from a sample code.
Can anyone please tell me what is the use of 

require_once __DIR__ . '/vendor/autoload.php';

Is this set of libraries we need to download? 
I'm developing/test locally and deploying in to gcloud project using 
'gcloud app deploy'

I can use 
use google\appengine\api\users\User;

but I cannot use
use google\cloud\storage\StorageClient;

*Fatal error*: Class 'google\cloud\storage\StorageClient' not found in 
*C:\Users..*

Is there a component to install for cloud storage?

Thanks

-- 
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/a60c5004-7fc4-4cf3-8d6d-bbad3a073cc1%40googlegroups.com.


[google-appengine] Re: dev_appserver now compatible with Cloud Datastore Emulator.

2019-09-26 Thread Alessandro Bollini


On Friday, 25 May 2018 20:34:53 UTC+2, Kamran (Google Cloud Support) wrote:
>
> Hello Yuri,
>
> *dev_appserver.py* is a command to start the local development server for 
> Python, PHP and Go. If you want to use local Datastore emulator feature for 
> Java, for instructions visit this article 
> 
> .
>

Still unable to connect to the Datastore Emulator managed by the Java 8 
Local Development Server using Google Client Library: I unsuccessfully 
tried the following variations on what suggested by the linked article:

1) java_dev_appserver.sh target/war/

2) DATASTORE_EMULATOR_HOST=localhost:8080 java_dev_appserver.sh target/war/

The first one throws the following exception after trying to connect to the 
actual cloud datastore

Caused by: com.google.datastore.v1.client.DatastoreException: 
Unauthenticated., code=UNAUTHENTICATED
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:226)
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:267)

The second one stalls for some time before throwing

Caused by:
com.google.datastore.v1.client.DatastoreException: Non-protobuf error: 
||
   
   
   
   com.google.cloud
   google-cloud-bom
   0.110.0-alpha
   pom
   import
   
   
   



com.google.cloud
google-cloud-datastore





Hope someone is able to suggest the proper setup…


 

-- 
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/6ffb92cd-6e8d-44ac-af08-fbe87042aaa2%40googlegroups.com.


[google-appengine] Re: dev_appserver now compatible with Cloud Datastore Emulator.

2019-09-26 Thread Alessandro Bollini


On Friday, 25 May 2018 20:34:53 UTC+2, Kamran (Google Cloud Support) wrote:
>
> Hello Yuri,
>
> *dev_appserver.py* is a command to start the local development server for 
> Python, PHP and Go. If you want to use local Datastore emulator feature for 
> Java, for instructions visit this article 
> 
> .
>

Still unable to connect to the Datastore Emulator managed by the Java 8 
Local Development Server using Google Client Library: I unsuccessfully 
tried the following variations on what suggested by the linked article:

1) java_dev_appserver.sh target/war/

2) DATASTORE_EMULATOR_HOST=localhost:8080 java_dev_appserver.sh target/war/

The first one throws the following exception after trying to connect to the 
actual cloud datastore

Caused by: com.google.datastore.v1.client.DatastoreException: 
Unauthenticated., code=UNAUTHENTICATED
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:226)
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:267)

The second one stalls for some time before throwing

Caused by:
com.google.datastore.v1.client.DatastoreException: Non-protobuf error: 
||
   
   
   
   com.google.cloud
   google-cloud-bom
   0.110.0-alpha
   pom
   import
   
   
   



com.google.cloud
google-cloud-datastore





Hope someone is able to suggest the proper setup…

-- 
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/ca3c0f01-bff2-4f36-ac71-35e93de4f8aa%40googlegroups.com.


[google-appengine] Gcloud app engine for cloud storage

2019-09-26 Thread sampath rathnayake
Hi All,

I'm new to app engine and trying create a app from a sample code.
Can anyone please tell me what is the use of 

require_once __DIR__ . '/vendor/autoload.php';

Is this set of libraries we need to download? 
I'm developing/test locally and deploying in to gcloud project using 
'gcloud app deploy'

I can use 
use google\appengine\api\users\User;

but I cannot use
use google\cloud\storage\StorageClient;

*Fatal error*: Class 'google\cloud\storage\StorageClient' not found in 
*C:\Users..*

Is there a component to install for cloud storage?

Thanks

-- 
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/d467ee8d-6968-4acc-96cc-c93bff71f556%40googlegroups.com.


Re: [google-appengine] html fetching with Python on appspot

2019-09-26 Thread rahul kumar
Sleep() function actually suspends the processing of the thread in which it 
is called by the operating system, allowing other threads and processes to 
execute while it sleeps. With multiple threads and processes, sleep() 
 suspends your thread - 
it uses next to zero processing power.

On Wednesday, February 5, 2014 at 12:56:21 PM UTC+5:30, Vinny P wrote:
>
>
> 1. Try adding a time.sleep call between each page retrieval. See 
> http://docs.python.org/2/library/time.html for usage. Sometimes App 
> Engine doesn't like it when repeated URL Fetch calls are made.
>
>
>

-- 
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/59311669-c47c-460b-a689-3da4568a5d97%40googlegroups.com.


[google-appengine] Re: dev_appserver now compatible with Cloud Datastore Emulator.

2019-09-26 Thread Alessandro Bollini


On Friday, 25 May 2018 20:34:53 UTC+2, Kamran (Google Cloud Support) wrote:
>
> Hello Yuri,
>
> *dev_appserver.py* is a command to start the local development server for 
> Python, PHP and Go. If you want to use local Datastore emulator feature for 
> Java, for instructions visit this article 
> 
> .
>

Still unable to connect to the Datastore Emulator managed by the Java 8 
Local Development Server using Google Client Library: I unsuccessfully 
tried the following variations on what suggested by the linked article:

1) java_dev_appserver.sh target/war/

2) DATASTORE_EMULATOR_HOST=localhost:8080 java_dev_appserver.sh target/war/

The first one throws the following exception after trying to connect to the 
actual cloud datastore

Caused by: com.google.datastore.v1.client.DatastoreException: 
Unauthenticated., code=UNAUTHENTICATED
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:226)
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:267)

The second one stalls for some time before throwing

Caused by:
com.google.datastore.v1.client.DatastoreException: Non-protobuf error: 
||
   
   
   
   com.google.cloud
   google-cloud-bom
   0.110.0-alpha
   pom
   import
   
   
   



com.google.cloud
google-cloud-datastore





Hope someone is able to suggest the proper setup…

-- 
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/88e5460e-79c9-4488-8b7e-1ee7d100d38d%40googlegroups.com.


[google-appengine] Gcloud app engine for cloud storage

2019-09-26 Thread sampath rathnayake
Hi All,

I'm new to app engine and trying create a app from a sample code.
Can anyone please tell me what is the use of 

require  '/vendor/autoload.php';

Is this set of libraries we need to download? 
I'm developing/test locally and deploying in to gcloud project using 
'gcloud app deploy'

I can use 
use google\appengine\api\users\User;

but I cannot use
use google\cloud\storage\StorageClient;

*Fatal error*: Class 'google\cloud\storage\StorageClient' not found in 
*C:\Users..*

Is there a component to install for cloud storage?

Thanks

-- 
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/143fd156-b208-44c2-a447-e3ca75df721f%40googlegroups.com.


[google-appengine] Using autoload.php

2019-09-26 Thread sampath rathnayake
Hi All,

I'm new to app engine and trying create a app from a sample code.
Can anyone please tell me what is the use of 

require_once __DIR__ . '/vendor/autoload.php';

Is this set of libraries we need to download? 
I'm developing/test locally and deploying in to gcloud project using 
'gcloud app deploy'

I can use 
use google\appengine\api\users\User;

but I cannot use
use google\cloud\storage\StorageClient;

*Fatal error*: Class 'google\cloud\storage\StorageClient' not found in 
*C:\Users..*

Is there a component to install for cloud storage?

Thanks

-- 
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/59f5a242-c589-430f-9185-49206d0bca47%40googlegroups.com.


[google-appengine] Using autoload.php

2019-09-26 Thread sampath rathnayake
Hi All,

I'm new to app engine and trying create a app from a sample code.
Can anyone please tell me what is the use of 

require_once __DIR__ . '/vendor/autoload.php';

Is this set of libraries we need to download? 
I'm developing/test locally and deploying in to gcloud project using 
'gcloud app deploy'

I can use 
use google\appengine\api\users\User;

but I cannot use
use google\cloud\storage\StorageClient;

*Fatal error*: Class 'google\cloud\storage\StorageClient' not found in 
*C:\Users..*

Is there a component to install for cloud storage?

Thanks

-- 
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/a6c06fa4-dbc8-4f63-af34-0554559b324d%40googlegroups.com.


Re: [google-appengine] html fetching with Python on appspot

2019-09-26 Thread rahul kumar
Sleep() function actually suspends the processing of the thread in which it 
is called by the operating system, allowing other threads and processes to 
execute while it sleeps. With multiple threads and processes, sleep() 
 suspends your thread - 
it uses next to zero processing power.

On Wednesday, February 5, 2014 at 12:56:21 PM UTC+5:30, Vinny P wrote:
>
> On Wed, Jan 29, 2014 at 8:07 PM, max kraun  > wrote:
>>
>> When I run it on localhost it works, but when I run it on appspot.com it 
>> looks like if some pages are not counted. Sometimes it works, sometimes it 
>> does not. Sometimes it returns some errors ("Deadline exceeded while 
>> waiting for HTTP response from URL" or similar), too.
>>
>
>
> Hi Max,
>
> It's difficult to say exactly what the problem is without a more detailed 
> look at the logs, but you can try a few things:
>
> 1. Try adding a time.sleep call between each page retrieval. See 
> http://docs.python.org/2/library/time.html for usage. Sometimes App 
> Engine doesn't like it when repeated URL Fetch calls are made.
>
> 2. Try making sure the authentication token you're using is still valid. 
> For instance, you could make sure that the page you retrieved shows text 
> consistent with a logged-in user - for example, only "sign out" links and 
> not "sign in" links.
>
> 3. The deadline exceeded error comes because the other server took too 
> long to send back the response. You can increase this time by setting the 
> default fetch timeout: urlfetch.set_default_fetch_deadline(60) 
>  
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>
>

-- 
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/1bea4374-bcb9-44c0-ab38-d421d2381365%40googlegroups.com.


[google-appengine] Using autoload php

2019-09-26 Thread sampath rathnayake
Hi All,

I'm new to app engine and trying create a app from a sample code.
Can anyone please tell me what is the use of 

require_once __DIR__ . '/vendor/autoload.php';

Is this set of libraries we need to download? 
I'm developing/test locally and deploying in to gcloud project using 
'gcloud app deploy'

I can use 
use google\appengine\api\users\User;

but I cannot use
use google\cloud\storage\StorageClient;

*Fatal error*: Class 'google\cloud\storage\StorageClient' not found in 
*C:\Users..*

Is there a component to install for cloud storage?

Thanks

-- 
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/8329db1f-f230-42f3-99b2-31d0d948d65a%40googlegroups.com.


[google-appengine] Re: dev_appserver now compatible with Cloud Datastore Emulator.

2019-09-26 Thread Alessandro Bollini

On Friday, 25 May 2018 20:34:53 UTC+2, Kamran (Google Cloud Support) wrote:
>
> Hello Yuri,
>
> *dev_appserver.py* is a command to start the local development server for 
> Python, PHP and Go. If you want to use local Datastore emulator feature for 
> Java, for instructions visit this article 
> 
> .
>

Still unable to connect to the Datastore Emulator managed by the Java 8 
Local Development Server using Google Client Library: I unsuccessfully 
tried the following variations on what suggested by the linked article:

1) java_dev_appserver.sh target/war/

2) DATASTORE_EMULATOR_HOST=localhost:8080 java_dev_appserver.sh target/war/

The first one throws the following exception after trying to connect to the 
actual cloud datastore

Caused by: com.google.datastore.v1.client.DatastoreException: 
Unauthenticated., code=UNAUTHENTICATED
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:226)
at 
com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:267)

The second one stalls for some time before throwing

Caused by:
com.google.datastore.v1.client.DatastoreException: Non-protobuf error: 
||
   
   
   
   com.google.cloud
   google-cloud-bom
   0.110.0-alpha
   pom
   import
   
   
   



com.google.cloud
google-cloud-datastore





Hope someone is able to suggest the proper setup…

-- 
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/349e1f98-3717-410a-9dd1-ed0646f3a3ad%40googlegroups.com.


[google-appengine] Re: Cloud NDB Datastore library Beta

2019-09-26 Thread Soeren Balko
Great news and good to see Google (finally!) reacting to the Python 2 EOL 
dilemma and its repercussions on AppEngine!

A couple of question though:

(1) "beta" is not very reassuring in a sense that we have millions of users 
in our AppEngine/DataStore backend. When will the library come out of beta?
(2) Does the library come under Google Cloud support contracts?

Thank you,
Soeren


On Friday, September 20, 2019 at 7:33:38 AM UTC+10, Andrew Gorcester wrote:
>
> Hello Pythonistas,
>
> I'm pleased to announce the Beta release of Cloud NDB, an updated version 
> of the App Engine NDB client library for Datastore to support the GAE 
> Python 3 runtime and other Python platforms. Our goal with Cloud NDB and 
> related efforts is to ensure App Engine Python 2.7 applications are fully 
> portable and can smoothly migrate to Python 3.
>
> The library can be installed with `pip install google-cloud-ndb` and the 
> source code can be found at https://github.com/googleapis/python-ndb. 
> Please refer to our newly published migration guide at 
> https://cloud.google.com/appengine/docs/standard/python3/migrating-to-cloud-ndb,
>  
> and our API documentation at 
> https://googleapis.dev/python/python-ndb/latest/index.html.
>
> We're grateful to have received generous user support in testing, 
> comments, bug reports and even code contributions in our Alpha phase, and 
> we hope the community will continue to send feedback as we work towards GA. 
> Please see our GitHub repository linked above to follow development and 
> communicate with our team, or email me directly at gorc...@google.com 
> .
>
> While Cloud NDB can be used freely by any Cloud Datastore (and Firestore 
> in Datastore mode) customers, it is intended to facilitate migration to 
> Python 3 for App Engine NDB users; our recommendation for new apps is still 
> to use the Cloud Client Datastore or Firestore libraries which are part of 
> the Google Cloud SDK.
>
> Thanks for your continued support of our platform. I am looking forward to 
> hearing from the community on this and upcoming efforts.
>
>

-- 
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/407ad0d5-0e20-4f2e-bff9-1dfb6ba68c9c%40googlegroups.com.