question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest release of the SDK does not work with Google Datastore emulator

See original GitHub issue

Environment details

  • OS: MacOS
  • .NET version: .Net Core 3.1
  • Package name and version: Google.Cloud.Datastore.V1 3.0.0

Steps to reproduce

  1. 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
  1. 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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jskeetcommented, Sep 26, 2020

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.

0reactions
jskeetcommented, Sep 28, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found