zed
zed copied to clipboard
import returns wrong error msg on bad definition
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).
So the desired behavior is to unpack the trailers if available and log out the status details?
Hi @h3adache! This was fixed in https://github.com/authzed/zed/pull/605. We'll make a new official release soon.