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

2019-09-27 Thread Alessandro Bollini



> On 27 Sep 2019, at 00:25, 'Jose Antonio Soni Solchaga' via Google App Engine 
>  wrote:
> 
> 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.

Agreed, but a little debugging shows that Google Client Library is trying to 
connect to the actual cloud endpoint of the project: supplying the credentials 
through `gcloud auth application-default login` or `gcloud iam service-accounts 
keys create` results in the test code connecting to the production datastore…

According to 
https://cloud.google.com/docs/authentication/production#finding_credentials_automatically,
 if no credentials are provided the hosting environment should automatically 
provide connection hints for the local resources: I’d expect Java 8 Local 
Development Server to automatically connect  Google Client Library to the local 
Datastore Emulator, replicating the application behaviour when deployed in 
cloud, but that’s apparently not the case.

I’m currently working around the issue by testing locally using both the Local 
Development Server and the standalone Datastore Emulator as:

gcloud beta emulators datastore start \
   —project=project-id \
   --host-port=localhost:8081 \
   --data-dir=target/war

DATASTORE_EMULATOR_HOST=localhost:8081 java_dev_appserver.sh \
   --port=8080 \
  target/war

However, the process is quite cumbersome and difficult to automate: what I’m 
looking for is a way to automatically connect Google Client Library to the 
Datastore Emulator managed by the Java 8 Local Development Server when 
launching the app with something like 
https://github.com/GoogleCloudPlatform/app-maven-plugin, e.g. `mvn 
appengine:run`.

-
alessandro bollini ph.d. - tech lead - linkedin.com/in/alessandrobollini




-- 
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/5335AD5B-8B52-47DB-A228-33B899B7137E%40metreeca.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: 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] 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] 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] 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.


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

2019-05-07 Thread Cosmin Poieană
Yes, it works! Because the emulator starts, sets the required env vars, 
requirements are installed and finally the app is served, but with stripped 
env vars, then additional ones are taken from app.yaml or manually provided 
by the dev_appserver.py (as above). Don't forget to mention its port also 
with "--datastore_emulator_port 8088" for example.

miercuri, 20 iunie 2018, 23:40:04 UTC+3, Kai Wang a scris:
>
> Actually, "cloud.google.com/go/datastore" should also work. However, at 
> this moment, you *have to* pass the DATASTORE_EMULATOR_HOST with the 
> '--env_var' flag to dev_appserver:
>  --env_var DATASTORE_EMULATOR_HOST=localhost:8088
>
> Please try this flag, hopefully it should work :)
>
> Dev_appserver currently prunes shell env vars from local golang runtime 
> process. The '--env_var' flag allows you to pass environment variable to 
> the local go runtime process.
>
> On Tue, Jun 19, 2018 at 5:54 PM Kai Wang > 
> wrote:
>
>> Hi Giuliano,
>>
>> Note that, for app engine standard runtime go, the recommended datastore 
>> library 
>> 
>> is
>> "google.golang.org/appengine/datastore".  I've verified on my side this 
>> library works with dev_appserver + datastore emulator.
>>
>> As for "cloud.google.com/go/datastore". I am not every sure how to make 
>> it work in App Engine standard app.  I do have verified this cloud 
>> library can speak to the datastore emulator when it is *outside of *App 
>> Engine dev_appserver. Unfortunately I've not been able to make this library 
>> work inside an app engine golang app. Could you kindly attach some  code 
>> snippet, such that run a simple GAE go app with the cloud datastore library?
>>
>> Detected environment variable DATASTORE_EMULATOR_HOST=localhost:, 
>>
>> FYI, are you sure the emulator ran on localhost: ?
>>
>> Thank you so much for trying this feature.
>>
>> I am all ears to follow up :)
>>
>> On Fri, Jun 1, 2018 at 6:25 AM Giuliano Ribeiro > > wrote:
>>
>>> When I setup the local env, see the log:
>>> WARNING  2018-06-01 13:21:25,741 api_server.py:581] Detected environment 
>>> variable DATASTORE_EMULATOR_HOST=localhost:, dev_appserver will speak 
>>> to the Cloud Datastore emulator running on this address. The datastore_path 
>>> /var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db
>>>  
>>> will be neglected.
>>> If you want datastore to store on 
>>> /var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db,
>>>  
>>> remove DATASTORE_EMULATOR_HOST from environment variables and restart 
>>> dev_appserver
>>>
>>> And my app still writing/reading from the cloud.
>>>
>>> On Wednesday, May 30, 2018 at 6:55:32 PM UTC+1, Kai Wang wrote:

 According to the documentation 
 ,
  
 you need to have the env var "DATASTORE_EMUALTOR_HOST" set. 

 Also, FYI, this "cloud.google.com/go/datastore" (officially, it is 
 called Google Cloud Client Library), should be able to connect to the 
 datatore emulator, no matter the code runs inside or outside of the 
 dev_appserver.

 Please check the env var and lmk if they work :)

 On Wednesday, May 30, 2018 at 6:39:05 AM UTC-7, Giuliano Ribeiro wrote:
>
> Hi Kai Wang, I'm using "cloud.google.com/go/datastore"
> As I read in the documentation this datastore package support the 
> emulator, I was thinking it should be easy to use. But even enabling the 
> emulator in the dev_appserver, my app is reading and writing directly in 
> the cloud, ignoring the emulator. 
>
> Thanks,
>
> On Tuesday, May 29, 2018 at 8:08:08 PM UTC+1, Kai Wang wrote:
>>
>> Hi Glullano,
>>
>> What go libraries are you using? Is it 
>> google.golang.org/appengine/datastore (link 
>> )
>>  
>> ?
>> Did it store locally before?
>>
>> You can email  k...@google.com for further details :)
>>
>>
>> On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:
>>>
>>> Really nice, but how to put it to work ?
>>> I'm using with Go, even setting up to true, my app still saving data 
>>> in the cloud.
>>>
>>> Thank you, 
>>>
>>>
>>> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini 
>>> wrote:

 Dear App Engine users,

 We are pleased to announce that the App Engine local development 
 server (dev_appserver) is now compatible with the Cloud Datastore 
 Emulator 
 .

 You can opt-in to this feature by running:
 * dev_appserver.py --support_datastore_emulator*

 By using the --supp

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

2018-06-20 Thread 'Kai Wang' via Google App Engine
Actually, "cloud.google.com/go/datastore" should also work. However, at
this moment, you *have to* pass the DATASTORE_EMULATOR_HOST with the
'--env_var' flag to dev_appserver:
 --env_var DATASTORE_EMULATOR_HOST=localhost:8088

Please try this flag, hopefully it should work :)

Dev_appserver currently prunes shell env vars from local golang runtime
process. The '--env_var' flag allows you to pass environment variable to
the local go runtime process.

On Tue, Jun 19, 2018 at 5:54 PM Kai Wang  wrote:

> Hi Giuliano,
>
> Note that, for app engine standard runtime go, the recommended datastore
> library
> 
> is
> "google.golang.org/appengine/datastore".  I've verified on my side this
> library works with dev_appserver + datastore emulator.
>
> As for "cloud.google.com/go/datastore". I am not every sure how to make
> it work in App Engine standard app.  I do have verified this cloud
> library can speak to the datastore emulator when it is *outside of *App
> Engine dev_appserver. Unfortunately I've not been able to make this library
> work inside an app engine golang app. Could you kindly attach some  code
> snippet, such that run a simple GAE go app with the cloud datastore library?
>
> Detected environment variable DATASTORE_EMULATOR_HOST=localhost:,
>
> FYI, are you sure the emulator ran on localhost: ?
>
> Thank you so much for trying this feature.
>
> I am all ears to follow up :)
>
> On Fri, Jun 1, 2018 at 6:25 AM Giuliano Ribeiro <
> giuliano.ribe...@ilegra.com> wrote:
>
>> When I setup the local env, see the log:
>> WARNING  2018-06-01 13:21:25,741 api_server.py:581] Detected environment
>> variable DATASTORE_EMULATOR_HOST=localhost:, dev_appserver will speak
>> to the Cloud Datastore emulator running on this address. The datastore_path
>> /var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db
>> will be neglected.
>> If you want datastore to store on
>> /var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db,
>> remove DATASTORE_EMULATOR_HOST from environment variables and restart
>> dev_appserver
>>
>> And my app still writing/reading from the cloud.
>>
>> On Wednesday, May 30, 2018 at 6:55:32 PM UTC+1, Kai Wang wrote:
>>>
>>> According to the documentation
>>> ,
>>> you need to have the env var "DATASTORE_EMUALTOR_HOST" set.
>>>
>>> Also, FYI, this "cloud.google.com/go/datastore" (officially, it is
>>> called Google Cloud Client Library), should be able to connect to the
>>> datatore emulator, no matter the code runs inside or outside of the
>>> dev_appserver.
>>>
>>> Please check the env var and lmk if they work :)
>>>
>>> On Wednesday, May 30, 2018 at 6:39:05 AM UTC-7, Giuliano Ribeiro wrote:

 Hi Kai Wang, I'm using "cloud.google.com/go/datastore"
 As I read in the documentation this datastore package support the
 emulator, I was thinking it should be easy to use. But even enabling the
 emulator in the dev_appserver, my app is reading and writing directly in
 the cloud, ignoring the emulator.

 Thanks,

 On Tuesday, May 29, 2018 at 8:08:08 PM UTC+1, Kai Wang wrote:
>
> Hi Glullano,
>
> What go libraries are you using? Is it
> google.golang.org/appengine/datastore (link
> )
> ?
> Did it store locally before?
>
> You can email  k...@google.com for further details :)
>
>
> On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:
>>
>> Really nice, but how to put it to work ?
>> I'm using with Go, even setting up to true, my app still saving data
>> in the cloud.
>>
>> Thank you,
>>
>>
>> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>>>
>>> Dear App Engine users,
>>>
>>> We are pleased to announce that the App Engine local development
>>> server (dev_appserver) is now compatible with the Cloud Datastore
>>> Emulator
>>> .
>>>
>>> You can opt-in to this feature by running:
>>> * dev_appserver.py --support_datastore_emulator*
>>>
>>> By using the --support_datastore_emulator flag, dev_appserver will
>>> use Cloud Datastore Emulator for local datastore emulation. You can read
>>> more about the migration process here
>>> 
>>> .
>>> The development server and Cloud Datastore Emulator support the
>>> interoperation of ndb and Cloud Datastore client libraries.
>>>
>>> Please help us test this feature. Our goal is to enable it by
>>> default in the future.
>>> Please share your feedback by rep

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

2018-06-19 Thread 'Kai Wang' via Google App Engine
Hi Giuliano,

Note that, for app engine standard runtime go, the recommended datastore
library
is
"google.golang.org/appengine/datastore".  I've verified on my side this
library works with dev_appserver + datastore emulator.

As for "cloud.google.com/go/datastore". I am not every sure how to make it
work in App Engine standard app.  I do have verified this cloud library can
speak to the datastore emulator when it is *outside of *App Engine
dev_appserver. Unfortunately I've not been able to make this library work
inside an app engine golang app. Could you kindly attach some  code
snippet, such that run a simple GAE go app with the cloud datastore library?

Detected environment variable DATASTORE_EMULATOR_HOST=localhost:,

FYI, are you sure the emulator ran on localhost: ?

Thank you so much for trying this feature.

I am all ears to follow up :)

On Fri, Jun 1, 2018 at 6:25 AM Giuliano Ribeiro 
wrote:

> When I setup the local env, see the log:
> WARNING  2018-06-01 13:21:25,741 api_server.py:581] Detected environment
> variable DATASTORE_EMULATOR_HOST=localhost:, dev_appserver will speak
> to the Cloud Datastore emulator running on this address. The datastore_path
> /var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db
> will be neglected.
> If you want datastore to store on
> /var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db,
> remove DATASTORE_EMULATOR_HOST from environment variables and restart
> dev_appserver
>
> And my app still writing/reading from the cloud.
>
> On Wednesday, May 30, 2018 at 6:55:32 PM UTC+1, Kai Wang wrote:
>>
>> According to the documentation
>> ,
>> you need to have the env var "DATASTORE_EMUALTOR_HOST" set.
>>
>> Also, FYI, this "cloud.google.com/go/datastore" (officially, it is
>> called Google Cloud Client Library), should be able to connect to the
>> datatore emulator, no matter the code runs inside or outside of the
>> dev_appserver.
>>
>> Please check the env var and lmk if they work :)
>>
>> On Wednesday, May 30, 2018 at 6:39:05 AM UTC-7, Giuliano Ribeiro wrote:
>>>
>>> Hi Kai Wang, I'm using "cloud.google.com/go/datastore"
>>> As I read in the documentation this datastore package support the
>>> emulator, I was thinking it should be easy to use. But even enabling the
>>> emulator in the dev_appserver, my app is reading and writing directly in
>>> the cloud, ignoring the emulator.
>>>
>>> Thanks,
>>>
>>> On Tuesday, May 29, 2018 at 8:08:08 PM UTC+1, Kai Wang wrote:

 Hi Glullano,

 What go libraries are you using? Is it
 google.golang.org/appengine/datastore (link
 )
 ?
 Did it store locally before?

 You can email  k...@google.com for further details :)


 On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:
>
> Really nice, but how to put it to work ?
> I'm using with Go, even setting up to true, my app still saving data
> in the cloud.
>
> Thank you,
>
>
> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>>
>> Dear App Engine users,
>>
>> We are pleased to announce that the App Engine local development
>> server (dev_appserver) is now compatible with the Cloud Datastore
>> Emulator
>> .
>>
>> You can opt-in to this feature by running:
>> * dev_appserver.py --support_datastore_emulator*
>>
>> By using the --support_datastore_emulator flag, dev_appserver will
>> use Cloud Datastore Emulator for local datastore emulation. You can read
>> more about the migration process here
>> 
>> .
>> The development server and Cloud Datastore Emulator support the
>> interoperation of ndb and Cloud Datastore client libraries.
>>
>> Please help us test this feature. Our goal is to enable it by default
>> in the future.
>> Please share your feedback by replying directly to this thread. We
>> are looking forward to it!
>>
>> Thanks,
>> Steren
>> Product Manager
>> Google Cloud
>>
>
>
> 


>>>
>>> 
>>

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

2018-06-01 Thread Giuliano Ribeiro
When I setup the local env, see the log:
WARNING  2018-06-01 13:21:25,741 api_server.py:581] Detected environment 
variable DATASTORE_EMULATOR_HOST=localhost:, dev_appserver will speak 
to the Cloud Datastore emulator running on this address. The datastore_path 
/var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db
 
will be neglected.
If you want datastore to store on 
/var/folders/n4/vq69gqrn3470jyqdp1sxp2wwgn/T/appengine.None.gribeiro/datastore.db,
 
remove DATASTORE_EMULATOR_HOST from environment variables and restart 
dev_appserver

And my app still writing/reading from the cloud.

On Wednesday, May 30, 2018 at 6:55:32 PM UTC+1, Kai Wang wrote:
>
> According to the documentation 
> ,
>  
> you need to have the env var "DATASTORE_EMUALTOR_HOST" set. 
>
> Also, FYI, this "cloud.google.com/go/datastore" (officially, it is called 
> Google Cloud Client Library), should be able to connect to the datatore 
> emulator, no matter the code runs inside or outside of the dev_appserver.
>
> Please check the env var and lmk if they work :)
>
> On Wednesday, May 30, 2018 at 6:39:05 AM UTC-7, Giuliano Ribeiro wrote:
>>
>> Hi Kai Wang, I'm using "cloud.google.com/go/datastore"
>> As I read in the documentation this datastore package support the 
>> emulator, I was thinking it should be easy to use. But even enabling the 
>> emulator in the dev_appserver, my app is reading and writing directly in 
>> the cloud, ignoring the emulator. 
>>
>> Thanks,
>>
>> On Tuesday, May 29, 2018 at 8:08:08 PM UTC+1, Kai Wang wrote:
>>>
>>> Hi Glullano,
>>>
>>> What go libraries are you using? Is it 
>>> google.golang.org/appengine/datastore (link 
>>> ) 
>>> ?
>>> Did it store locally before?
>>>
>>> You can email  k...@google.com for further details :)
>>>
>>>
>>> On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:

 Really nice, but how to put it to work ?
 I'm using with Go, even setting up to true, my app still saving data in 
 the cloud.

 Thank you, 


 On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>
> Dear App Engine users,
>
> We are pleased to announce that the App Engine local development 
> server (dev_appserver) is now compatible with the Cloud Datastore 
> Emulator 
> .
>
> You can opt-in to this feature by running:
> * dev_appserver.py --support_datastore_emulator*
>
> By using the --support_datastore_emulator flag, dev_appserver will use 
> Cloud Datastore Emulator for local datastore emulation. You can read more 
> about the migration process here 
> 
> .
> The development server and Cloud Datastore Emulator support the 
> interoperation of ndb and Cloud Datastore client libraries. 
>
> Please help us test this feature. Our goal is to enable it by default 
> in the future.
> Please share your feedback by replying directly to this thread. We are 
> looking forward to it!
>
> Thanks,
> Steren
> Product Manager
> Google Cloud
>


 
>>>
>>>
>>
>> 
>
>
-- 
 


-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/edfbf328-bab1-47ce-9e39-9f5734229582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-30 Thread 'Kai Wang' via Google App Engine
According to the documentation 
,
 
you need to have the env var "DATASTORE_EMUALTOR_HOST" set. 

Also, FYI, this "cloud.google.com/go/datastore" (officially, it is called 
Google Cloud Client Library), should be able to connect to the datatore 
emulator, no matter the code runs inside or outside of the dev_appserver.

Please check the env var and lmk if they work :)

On Wednesday, May 30, 2018 at 6:39:05 AM UTC-7, Giuliano Ribeiro wrote:
>
> Hi Kai Wang, I'm using "cloud.google.com/go/datastore"
> As I read in the documentation this datastore package support the 
> emulator, I was thinking it should be easy to use. But even enabling the 
> emulator in the dev_appserver, my app is reading and writing directly in 
> the cloud, ignoring the emulator. 
>
> Thanks,
>
> On Tuesday, May 29, 2018 at 8:08:08 PM UTC+1, Kai Wang wrote:
>>
>> Hi Glullano,
>>
>> What go libraries are you using? Is it 
>> google.golang.org/appengine/datastore (link 
>> ) 
>> ?
>> Did it store locally before?
>>
>> You can email  k...@google.com for further details :)
>>
>>
>> On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:
>>>
>>> Really nice, but how to put it to work ?
>>> I'm using with Go, even setting up to true, my app still saving data in 
>>> the cloud.
>>>
>>> Thank you, 
>>>
>>>
>>> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:

 Dear App Engine users,

 We are pleased to announce that the App Engine local development server 
 (dev_appserver) is now compatible with the Cloud Datastore Emulator 
 .

 You can opt-in to this feature by running:
 * dev_appserver.py --support_datastore_emulator*

 By using the --support_datastore_emulator flag, dev_appserver will use 
 Cloud Datastore Emulator for local datastore emulation. You can read more 
 about the migration process here 
 
 .
 The development server and Cloud Datastore Emulator support the 
 interoperation of ndb and Cloud Datastore client libraries. 

 Please help us test this feature. Our goal is to enable it by default 
 in the future.
 Please share your feedback by replying directly to this thread. We are 
 looking forward to it!

 Thanks,
 Steren
 Product Manager
 Google Cloud

>>>
>>>
>>> 
>>
>>
>
> 

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b0a4744e-755e-4ee7-93d5-967fc3b79c8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-30 Thread Giuliano Ribeiro
Hi Kai Wang, I'm using "cloud.google.com/go/datastore"
As I read in the documentation this datastore package support the emulator, 
I was thinking it should be easy to use. But even enabling the emulator in 
the dev_appserver, my app is reading and writing directly in the cloud, 
ignoring the emulator. 

Thanks,

On Tuesday, May 29, 2018 at 8:08:08 PM UTC+1, Kai Wang wrote:
>
> Hi Glullano,
>
> What go libraries are you using? Is it 
> google.golang.org/appengine/datastore (link 
> ) 
> ?
> Did it store locally before?
>
> You can email  k...@google.com  for further details :)
>
>
> On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:
>>
>> Really nice, but how to put it to work ?
>> I'm using with Go, even setting up to true, my app still saving data in 
>> the cloud.
>>
>> Thank you, 
>>
>>
>> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>>>
>>> Dear App Engine users,
>>>
>>> We are pleased to announce that the App Engine local development server 
>>> (dev_appserver) is now compatible with the Cloud Datastore Emulator 
>>> .
>>>
>>> You can opt-in to this feature by running:
>>> * dev_appserver.py --support_datastore_emulator*
>>>
>>> By using the --support_datastore_emulator flag, dev_appserver will use 
>>> Cloud Datastore Emulator for local datastore emulation. You can read more 
>>> about the migration process here 
>>> 
>>> .
>>> The development server and Cloud Datastore Emulator support the 
>>> interoperation of ndb and Cloud Datastore client libraries. 
>>>
>>> Please help us test this feature. Our goal is to enable it by default in 
>>> the future.
>>> Please share your feedback by replying directly to this thread. We are 
>>> looking forward to it!
>>>
>>> Thanks,
>>> Steren
>>> Product Manager
>>> Google Cloud
>>>
>>
>>
>> 
>
>
-- 
 


-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8235f0f4-f6b4-4841-b19f-be271f61f96a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-29 Thread 'Kai Wang' via Google App Engine
Hi Glullano,

What go libraries are you using? Is it google.golang.org/appengine/datastore
 (link 
) ?
Did it store locally before?

You can email  k...@google.com for further details :)


On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:
>
> Really nice, but how to put it to work ?
> I'm using with Go, even setting up to true, my app still saving data in 
> the cloud.
>
> Thank you, 
>
>
> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>>
>> Dear App Engine users,
>>
>> We are pleased to announce that the App Engine local development server 
>> (dev_appserver) is now compatible with the Cloud Datastore Emulator 
>> .
>>
>> You can opt-in to this feature by running:
>> * dev_appserver.py --support_datastore_emulator*
>>
>> By using the --support_datastore_emulator flag, dev_appserver will use 
>> Cloud Datastore Emulator for local datastore emulation. You can read more 
>> about the migration process here 
>> 
>> .
>> The development server and Cloud Datastore Emulator support the 
>> interoperation of ndb and Cloud Datastore client libraries. 
>>
>> Please help us test this feature. Our goal is to enable it by default in 
>> the future.
>> Please share your feedback by replying directly to this thread. We are 
>> looking forward to it!
>>
>> Thanks,
>> Steren
>> Product Manager
>> Google Cloud
>>
>
>
> 

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6861774a-0d9f-4eac-82c3-5ad524c9e25f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-25 Thread 'Kamran (Google Cloud Support)' via Google App Engine
Hello Giuliano,

As described in this article 

 the 
Datastore Emulator is still a beta release 
. If you notice any defects 
please feel free to open issues in Google issue tracker 
 with all details which 
needed to reproduce the issues and we'll be glad to investigate.


On Friday, May 25, 2018 at 12:04:42 PM UTC-4, Giuliano Ribeiro wrote:
>
> Really nice, but how to put it to work ?
> I'm using with Go, even setting up to true, my app still saving data in 
> the cloud.
>
> Thank you, 
>
>
> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>>
>> Dear App Engine users,
>>
>> We are pleased to announce that the App Engine local development server 
>> (dev_appserver) is now compatible with the Cloud Datastore Emulator 
>> .
>>
>> You can opt-in to this feature by running:
>> * dev_appserver.py --support_datastore_emulator*
>>
>> By using the --support_datastore_emulator flag, dev_appserver will use 
>> Cloud Datastore Emulator for local datastore emulation. You can read more 
>> about the migration process here 
>> 
>> .
>> The development server and Cloud Datastore Emulator support the 
>> interoperation of ndb and Cloud Datastore client libraries. 
>>
>> Please help us test this feature. Our goal is to enable it by default in 
>> the future.
>> Please share your feedback by replying directly to this thread. We are 
>> looking forward to it!
>>
>> Thanks,
>> Steren
>> Product Manager
>> Google Cloud
>>
>
>
> 

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a982e709-f7e9-40f6-bcbd-65292413bae6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-25 Thread 'Kamran (Google Cloud Support)' via Google App Engine
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 

.



On Thursday, May 24, 2018 at 10:23:07 AM UTC-4, Yuri Sergiichuk wrote:
>
> Hi Steren,
>
> Could you please tell me if the feature is generally available for any 
> language and not only Python?
> I'm using Java and Gradle AppEngine Plugin 
>  to start the 
> local dev server, is it possible to start the emulator at the same time?
>
> Thanks in advance for the answer.
>
> Regards,
> Yuri
>
> On Wednesday, May 16, 2018 at 11:57:42 PM UTC+3, Steren Giannini wrote:
>>
>> Dear App Engine users,
>>
>> We are pleased to announce that the App Engine local development server 
>> (dev_appserver) is now compatible with the Cloud Datastore Emulator 
>> .
>>
>> You can opt-in to this feature by running:
>> * dev_appserver.py --support_datastore_emulator*
>>
>> By using the --support_datastore_emulator flag, dev_appserver will use 
>> Cloud Datastore Emulator for local datastore emulation. You can read more 
>> about the migration process here 
>> 
>> .
>> The development server and Cloud Datastore Emulator support the 
>> interoperation of ndb and Cloud Datastore client libraries. 
>>
>> Please help us test this feature. Our goal is to enable it by default in 
>> the future.
>> Please share your feedback by replying directly to this thread. We are 
>> looking forward to it!
>>
>> Thanks,
>> Steren
>> Product Manager
>> Google Cloud
>>
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/75516db4-7331-4969-8298-ad5a48b9f060%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-25 Thread Giuliano Ribeiro
Really nice, but how to put it to work ?
I'm using with Go, even setting up to true, my app still saving data in the 
cloud.

Thank you, 


On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>
> Dear App Engine users,
>
> We are pleased to announce that the App Engine local development server 
> (dev_appserver) is now compatible with the Cloud Datastore Emulator 
> .
>
> You can opt-in to this feature by running:
> * dev_appserver.py --support_datastore_emulator*
>
> By using the --support_datastore_emulator flag, dev_appserver will use 
> Cloud Datastore Emulator for local datastore emulation. You can read more 
> about the migration process here 
> 
> .
> The development server and Cloud Datastore Emulator support the 
> interoperation of ndb and Cloud Datastore client libraries. 
>
> Please help us test this feature. Our goal is to enable it by default in 
> the future.
> Please share your feedback by replying directly to this thread. We are 
> looking forward to it!
>
> Thanks,
> Steren
> Product Manager
> Google Cloud
>

-- 
 


-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/130045d9-755d-4a8f-b1c8-4a949641856f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-24 Thread Yuri Sergiichuk
Hi Steren,

Could you please tell me if the feature is generally available for any 
language and not only Python?
I'm using Java and Gradle AppEngine Plugin 
 to start the 
local dev server, is it possible to start the emulator at the same time?

Thanks in advance for the answer.

Regards,
Yuri

On Wednesday, May 16, 2018 at 11:57:42 PM UTC+3, Steren Giannini wrote:
>
> Dear App Engine users,
>
> We are pleased to announce that the App Engine local development server 
> (dev_appserver) is now compatible with the Cloud Datastore Emulator 
> .
>
> You can opt-in to this feature by running:
> * dev_appserver.py --support_datastore_emulator*
>
> By using the --support_datastore_emulator flag, dev_appserver will use 
> Cloud Datastore Emulator for local datastore emulation. You can read more 
> about the migration process here 
> 
> .
> The development server and Cloud Datastore Emulator support the 
> interoperation of ndb and Cloud Datastore client libraries. 
>
> Please help us test this feature. Our goal is to enable it by default in 
> the future.
> Please share your feedback by replying directly to this thread. We are 
> looking forward to it!
>
> Thanks,
> Steren
> Product Manager
> Google Cloud
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/df365f36-d640-400d-bd47-176d56b5c668%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-19 Thread 'Kai Wang' via Google App Engine
Hi Viataly,

This change alone does not affect testbed.

But we do plan to allow testbed to use datastore emulator too. Please stay 
tuned :)

On Thursday, May 17, 2018 at 1:54:22 PM UTC-7, Vitaly Bogomolov wrote:
>
> Hi, Steren
>
> Our goal is to enable it by default in the future.
>>
>
> Good news.
>
> What about google.appengine.ext.testbed.init_datastore_v3_stub() ? Is it 
> also will be touched by these changes?
>
> WBR, Vitaly
>
>>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/47736e39-53fb-4375-a3df-cbf42b9dba82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-05-17 Thread Vitaly Bogomolov
Hi, Steren

Our goal is to enable it by default in the future.
>

Good news.

What about google.appengine.ext.testbed.init_datastore_v3_stub() ? Is it 
also will be touched by these changes?

WBR, Vitaly

>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/00b6c157-f8f0-4c60-8886-463d7d69163b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.