Giter Club home page Giter Club logo

Comments (11)

MaxRossGoogle avatar MaxRossGoogle commented on May 18, 2024

Forgot to mention:
This is on OS X 10.11.4

from golang-samples.

broady avatar broady commented on May 18, 2024

I can't reproduce this, but I'm trying from Linux.

Are you using the latest version of the datastore emulator?

Also, there was a recent update to the google.golang.org/cloud/datastore package to use the new datastore/v1beta3 API.

Ensure you are fully up to date:
go get -u google.golang.org/cloud/datastore

from golang-samples.

broady avatar broady commented on May 18, 2024

It sounds like the emulator isn't really running on that port. Does port 8687 match the output from gcloud beta emulators datastore start?

from golang-samples.

MaxRossGoogle avatar MaxRossGoogle commented on May 18, 2024

Thanks for the response.

I installed everything fresh last night, after the v1beta3 announcement. I believe the emulator is working correctly because I can go through the getting started guide for other languages and those apps connect successfully.

from golang-samples.

broady avatar broady commented on May 18, 2024

OK, I can reproduce this on Mac OS. Will file a bug with the emulator team.

from golang-samples.

broady avatar broady commented on May 18, 2024

Ah, I can also reproduce on Linux. I must have misconfigured my Linux box yesterday.

This is because the datastore emulator doesn't support gRPC yet.

from golang-samples.

MaxRossGoogle avatar MaxRossGoogle commented on May 18, 2024

That would certainly explain it. Can't the Go app connect via json/http rather than gRPC? Presumably that's what the Datastore samples for python, java, and node all do.

from golang-samples.

broady avatar broady commented on May 18, 2024

It could, but this sample uses the google.golang.org/cloud/datastore library, which uses gRPC.

It wouldn't be worth changing the underlying transport. It'd be best to get the emulator working with gRPC!

It's strange that the emulator exposes the environment variables that are specifically for gRPC (DATASTORE_EMULATOR_HOST rather than DATASTORE_HOST, which was for HTTP/1.1)

from golang-samples.

MaxRossGoogle avatar MaxRossGoogle commented on May 18, 2024

I have no sense of how much work is involved here, but I bet @pcostell knows.

from golang-samples.

broady avatar broady commented on May 18, 2024

Ah, yes. I followed up with Patrick. He's working on it.
On Apr 6, 2016 11:40 AM, "MaxRossGoogle" [email protected] wrote:

I have no sense of how much work is involved here, but I bet @pcostell
https://github.com/pcostell knows.


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#24 (comment)

from golang-samples.

pcostell avatar pcostell commented on May 18, 2024

Hey all --

There is a gRPC emulator available!

It has the same command line options as the normal gcd.sh tool, but isn't yet built into the gcloud tool. For now it only works with v1beta3 over gRPC, which is why we can't just swap it in for the old emulator, which supports both v1beta2 and v1beta3, but only using proto-over-HTTP.

from golang-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.