zed icon indicating copy to clipboard operation
zed copied to clipboard

import returns wrong error msg on bad definition

Open h3adache opened this issue 11 months ago • 1 comments

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).

h3adache avatar Jan 08 '25 14:01 h3adache

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

tstirrat15 avatar Jan 10 '25 00:01 tstirrat15

Hi @h3adache! This was fixed in https://github.com/authzed/zed/pull/605. We'll make a new official release soon.

miparnisari avatar Dec 20 '25 00:12 miparnisari