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

import returns wrong error msg on bad definition #451

Open
h3adache opened this issue Jan 8, 2025 · 1 comment
Open

import returns wrong error msg on bad definition #451

h3adache opened this issue Jan 8, 2025 · 1 comment

Comments

@h3adache
Copy link

h3adache commented Jan 8, 2025

I sometimes get this error when importing from a different permission system

9:52AM ERR terminated with errors error="failed to acquire semaphore for batch number 1: context canceled"

When running with --log-level trace I see that the actual error is:

9:52AM TRC parsed trailers trailers={"grpc-status-details-bin":["\b\t\u0012Dobject definition `foo/account` not found\u001a�\u0001\n(type.googleapis.com/google.rpc.ErrorInfo\u0012i\n\u001fERROR_REASON_UNKNOWN_DEFINITION\u0012\u000bauthzed.com\u001a9\n\u000fdefinition_name\u0012&foo/account"],"io.spicedb.respmeta.cachedoperationscount":["0"],"io.spicedb.respmeta.dispatchedoperationscount":["0"]}

Which indicates that I forgot to change the prefix when importing (which is correct).

@tstirrat15
Copy link
Contributor

So the desired behavior is to unpack the trailers if available and log out the status details?

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