Latest release of the SDK does not work with Google Datastore emulator
See original GitHub issueEnvironment details
- OS: MacOS
- .NET version: .Net Core 3.1
- Package name and version: Google.Cloud.Datastore.V1 3.0.0
Steps to reproduce
- Start the emulator on the command line or via docker eg
/google-cloud-sdk/platform/cloud-datastore-emulator/cloud_datastore_emulator start --host=0.0.0.0 --port=8081 --store_on_disk=True --consistency=0.9 --allow_remote_shutdown /opt/data
- Set up the code to connect to the Emulator
_datastoreDb = new DatastoreDbBuilder
{
EmulatorDetection = _identityStoreConfiguration.EmulatorDetection
}.Build();
Fails with:
google-datastore_1 | [datastore] Sep 25, 2020 5:01:14 PM io.gapi.emulators.grpc.GrpcServer$3 operationComplete
google-datastore_1 | [datastore] INFO: Adding handler(s) to newly registered Channel.
google-datastore_1 | [datastore] Sep 25, 2020 5:01:15 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
google-datastore_1 | [datastore] INFO: Detected non-HTTP/2 connection.
google-datastore_1 | [datastore] Sep 25, 2020 5:01:15 PM io.gapi.emulators.netty.NotFoundHandler handleRequest
google-datastore_1 | [datastore] INFO: Unknown request URI: /bad-request
Now, this is the odd bit. If I downgrade
to the older version of the SDK i.e. Google.Cloud.Datastore.V1 2.2.0
, it all works fine. I am using the latest GCloud SDK/emulator. Tried with an older version of the SDK, does not work. This is definitely broken in the latest version of the SDK.
Please help.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
Running the Datastore Emulator
This page guides you through installing the emulator, starting the emulator, and setting environment variables to connect your application to the emulator. Note ......
Read more >GCP Datastore Emulator won't install on OpenJDK 10
There's some issue with our debian package dependancy config. Although if you install the emulator via gcloud command it should work:.
Read more >Issues running Google App Engine Datastore emulator
Hi! I'm trying to configure the Datastore emulator so that I can run my unit tests in Travis's environment but I'm running into...
Read more >Starting gcloud datastore emulator without storing db to disk
I fixed this issue by editing google-cloud-sdk/lib/surface/emulators/datastore/start.py so that '--store-on-disk' parameter defaults to False.
Read more >Option to run datastore emulator in "firestore in ... - Issue Tracker
I can see that the --use-firestore-in-datastore-mode option has been added to the datastore emulator, but it always throws a Java exception. Has anyone...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It should absolutely be using gRPC (and therefore HTTP 2) talking to the emulator. I’m hoping it’ll be easy to sort out on Monday.
This has been released as part of Google.Cloud.Datastore.V1 version 3.1.0 - please let me know if you still have any problems with it.