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

Why do I get an error? #1

Closed
stephenplusplus opened this issue Apr 12, 2016 · 7 comments
Closed

Why do I get an error? #1

stephenplusplus opened this issue Apr 12, 2016 · 7 comments

Comments

@stephenplusplus
Copy link
Owner

@murgatroid99

I was trying to set access Logging IAM settings through gRPC, and came upon some errors. This is a test case that I can't seem to get past, and I'm assuming it's something obvious I'm missing. Can you take a quick look at this repo and let me know where I might be going wrong?

@murgatroid99
Copy link

The error code you're getting is CANCELLED. I am pretty sure there is nothing in the Node client that explicitly outputs that code. The object you're getting is an error object; does the message have any useful information? Are you getting any other logging?

@stephenplusplus
Copy link
Owner Author

Thanks for checking this out. I traded my console.log(err) with console.log(err.stack) and got:

I get either of these errors:

E0412 11:43:47.803555000 123145307668480 frame_data.c:168] Bad GRPC frame type 0x3c
{ [Error: Received RST_STREAM err=1] code: 13, metadata: Metadata { _internal_repr: {} } }
Error: Received RST_STREAM err=1
    at /Users/stephen/dev/grpc-usage-question/node_modules/grpc/src/node/src/client.js:411:17
{ [Error] code: 1, metadata: Metadata { _internal_repr: {} } }
Error
    at /Users/stephen/dev/grpc-usage-question/node_modules/grpc/src/node/src/client.js:411:17

@stephenplusplus
Copy link
Owner Author

Updated the post above with some more info.

@murgatroid99
Copy link

It looks to me like the server is responding with a CANCELLED status and no additional information. The first log you are getting may be a gRPC core bug related to how it handles a non-OK status.

@stephenplusplus
Copy link
Owner Author

Okay, thanks again for looking.

@jgeewax -- is there anyone working on IAM who can help out?

@jgeewax
Copy link

jgeewax commented Jul 14, 2016

Are you auth'ing as yourself here? or a service account? google-auto-auth does multiple, right ?

@stephenplusplus
Copy link
Owner Author

This is as myself if I run gcloud auth login.

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

3 participants