Closed imotai closed 1 year ago
@imotai were you able to resolve this? I see that you closed the issue. I'm having a similar error with the response body missing.
same error here using React Native and expo
The result of fetch after the GRPC request is sent is:
LOG {"_bodyBlob": {"_data": {"__collector": [Object], "blobId": "4fbc3a18-453d-4b9b-b058-8e38f5adb1e1", "offset": 0, "size": 332}}, "_bodyInit": {"_data": {"__collector": [Object], "blobId": "4fbc3a18-453d-4b9b-b058-8e38f5adb1e1", "offset": 0, "size": 332}}, "bodyUsed": false, "headers": {"map": {"content-type": "application/grpc-web-text+proto", "date": "Sat, 23 Dec 2023 21:01:36 GMT", "grpc-accept-encoding": "identity,deflate,gzip", "grpc-encoding": "identity", "server": "envoy", "transfer-encoding": "chunked", "x-envoy-upstream-service-time": "64"}}, "ok": true, "status": 200, "statusText": "", "type": "default", "url": "http://192.168.137.42:8080/user.User/SignIn"}
And in wireshark I can see that I have my content in the body...
"size": 332 but still [RpcError: missing response body]
This is a bug with react native: https://github.com/facebook/react-native/issues/37505
Their fetch
implementation is non-compliant.
This is a bug with react native: facebook/react-native#37505
Their
fetch
implementation is non-compliant.
I indeed saw fetch is really weird on react native and made my GRPC client working using polyfill for stream and encoding: github.com/Honeybrain/Mobile
The error message
The package.js
The test file