-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
I'm trying to get the grpc-web-devtools to work but it seems that for large responses the plugin doens't work. unless i make it explicitly a string.
//this doesn't work because the response is too big:
window.postMessage({type: "__GRPCWEB_DEVTOOLS__",method: methodDesc.methodName, methodType: "unary", requestId: requestId, request:_request, response: response})
//works fine
window.postMessage({type: "__GRPCWEB_DEVTOOLS__",method: methodDesc.methodName, methodType: "unary", requestId: requestId, request:_request, response: {test : [{object: "test"}]}})
//this works totally fine.
window.postMessage({type: "__GRPCWEB_DEVTOOLS__",method: methodDesc.methodName, methodType: "unary", requestId: requestId, request: JSON.stringify(_request, null, 2), response: JSON.stringify(response, null, 2)})i supspect it has something to do with in NetworkDetails.js.
maybe the plugin should by default collaps the src from level 1?
<ReactJson
name="grpc"
theme={theme}
style={{backgroundColor:'transparent'}}
enableClipboard={clipboardIsEnabled}
src={src}
/>Note if i make my own events i can support it with the improbable Eng lib. And even when using interceptors with the mainstream grpc/grpc-web.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels