You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/kitex/Tutorials/advanced-feature/generic-call/generic_streaming.md
+32-6Lines changed: 32 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,7 @@ description: ""
8
8
9
9
## Introduction
10
10
11
-
JSON generic call for streaming interfaces is now supported (client-side only).
12
-
13
-
**However, due to the ongoing restructuring of the streaming interface to improve the user experience and to avoid making any breaking changes after release, the feature's official release is temporarily on hold. If you have a need for this feature, you can refer to the following to try it out. Please note that once it is officially released, a small adjustment may be required on your end**.
14
-
15
-
Please try the feature with kitex test branch test/grpc_json_streaming_generic by `go get github.com/cloudwego/kitex@test/grpc_json_streaming_generic`.
11
+
**JSON generic call for streaming interfaces is now supported (client-side only) from Kitex v0.12.0**.
16
12
17
13
## Usage
18
14
@@ -54,6 +50,10 @@ The four methods included in the example IDL correspond to four scenarios:
54
50
First of all, please initialize the streaming client. Here is an example of streaming client initialization.
55
51
56
52
```go
53
+
import (
54
+
dproto "github.com/cloudwego/dynamicgo/proto"
55
+
)
56
+
57
57
dOpts:= dproto.Options{} // you can specify parsing options as you want
This error occurs when calling with Kitex **protobuf** generic streaming when the downstream is **gRPC-python** (gRPC libraries for other languages may also have this problem).
234
+
235
+
The root cause is that Kitex does not parse the package in the protobuf idl, so the package part of `:path` in the gPRC request is missing, and gRPC-python can't find the corresponding method.
0 commit comments