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

Kreya does not support decoding messages in 'https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto' #240

Open
nhatca opened this issue Jun 20, 2024 · 4 comments
Labels
bug Something isn't working status:waiting-for-release Implemented, waiting for next stable release

Comments

@nhatca
Copy link

nhatca commented Jun 20, 2024

Describe the bug
Kreya does not support decoding messages in 'https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto'

  "code": 13,
  "message": "Bad request",
  "details": [
    {
      /* Could not find any type in the set of imported protos */
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "value": "ChgKD25lc3RlZC5wYWdlU2l6ZRIFRXJyb3I="
    },
    {
      /* Could not find any type in the set of imported protos */
      "@type": "type.googleapis.com/google.rpc.ErrorInfo",
      "value": "CgtCQURfUkVRVUVTVBIIaWRlbnRpdHk="
    }
  ]
}

To Reproduce
Steps to reproduce the behavior:

  1. Makes calls to the service and returns error messages inside the grpc-status-details-bin trailer.
  2. Kreya returns the corresponding results as above

Expected behavior
Expect to decode messages with type Any included in details of google.rpc.Status

Environment (if possible, copy the information from the error dialog or the About menu):

  • OS: macOs Sonoma 14.5
  • Kreya Version: 1.15.0
@nhatca nhatca added the bug Something isn't working label Jun 20, 2024
@CommonGuy
Copy link
Contributor

Just to clarify, did this work for you in a previous version of Kreya?

@nhatca
Copy link
Author

nhatca commented Jun 20, 2024

Just to clarify, did this work for you in a previous version of Kreya?

@CommonGuy It used to work in version 1.12.0, after upgrading to 1.15.0 it cannot work.

@CommonGuy CommonGuy added the status:doing We are working on this label Jun 20, 2024
@CommonGuy
Copy link
Contributor

I couldn't verify that this worked in 1.12. We will add support for these types in the next release.

As a workaround, you would have to import these types manually somewhere in your protobuf files, then Kreya will recognize them.

@CommonGuy
Copy link
Contributor

We have released a fix for this on our beta release channel. If you want to try it, see https://kreya.app/docs/faq/#how-can-i-use-kreya-beta-versions

@CommonGuy CommonGuy added status:waiting-for-release Implemented, waiting for next stable release and removed status:doing We are working on this labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:waiting-for-release Implemented, waiting for next stable release
Projects
None yet
Development

No branches or pull requests

2 participants