Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"error reading server preface" #83

Open
alon-ne opened this issue Apr 23, 2023 · 1 comment
Open

"error reading server preface" #83

alon-ne opened this issue Apr 23, 2023 · 1 comment

Comments

@alon-ne
Copy link

alon-ne commented Apr 23, 2023

Hi,
I'm trying to use the emulator in a golang program.
I followed the golang example in the readme, and when trying to create a queue I get this error:
rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: EOF"

I tried to use the import paths as in the example but the packages weren't there, I used these:

	cloudtasks "cloud.google.com/go/cloudtasks/apiv2beta3"
	cloudtaskspb "cloud.google.com/go/cloudtasks/apiv2beta3/cloudtaskspb"
@aertje
Copy link
Owner

aertje commented Apr 23, 2023

Ah yes, looks like the example is missing this import:

. "cloud.google.com/go/cloudtasks/apiv2"

I'll have a look at fixing the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants