Comments (11)
Forgot to mention:
This is on OS X 10.11.4
from golang-samples.
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.
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.
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.
OK, I can reproduce this on Mac OS. Will file a bug with the emulator team.
from golang-samples.
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.
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.
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.
I have no sense of how much work is involved here, but I bet @pcostell knows.
from golang-samples.
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.
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)
- datacatalog/datacatalog_quickstart: TestApp failed HOT 1
- asset/quickstart/batch-get-effective-iam-policies: TestMain failed HOT 1
- asset/quickstart/search-all-resources: TestMain failed HOT 1
- dlp/snippets/deid: TestDeIdentifyWithRedact failed HOT 1
- dlp/snippets/deid: TestReidFPE failed HOT 1
- run/testing: TestImageProcessingService failed HOT 1
- pubsub/topics: TestCreate failed HOT 1
- asset/quickstart/search-all-resources: TestMain failed HOT 1
- storagetransfer: TestGetLatestTransferOperation failed HOT 2
- storage/objects: TestKMSObjects failed HOT 2
- dlp/snippets/inspect: TestInspectImageFileAllInfoTypes failed HOT 1
- dlp/snippets/jobs: TestCreateJob failed HOT 1
- Adopt grouping for security updates HOT 1
- go1.19 no longer supported
- media/videostitcher: TestDeleteLiveConfig failed HOT 1
- datacatalog/datacatalog_quickstart: TestApp failed HOT 1
- storage/objects: TestObjectBucketLock failed HOT 2
- spanner/spanner_snippets/spanner: TestForeignKeyDeleteCascadeSample failed HOT 1
- vision/detect: TestDetect failed HOT 1
- dlp/snippets/redact: TestRedactImageFileListedInfoTypes failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golang-samples.