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
Hi, I'm having an issue with streaming only when compiled to the web platform. It's the simple file upload chunking code that works fine on native platforms:
DOMException: Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.
packages/grpc/src/client/transport/xhr_transport.dart 54:36 <fn>
dart-sdk/lib/async/zone.dart 1594:9 runUnaryGuarded
dart-sdk/lib/async/stream_impl.dart 365:5 [_sendData]
dart-sdk/lib/async/stream_impl.dart 297:7 [_add]
dart-sdk/lib/async/stream_pipe.dart 123:11 [_add]
dart-sdk/lib/async/stream_pipe.dart 218:9 [_handleData]
dart-sdk/lib/async/stream_pipe.dart 153:5 [_handleData]
dart-sdk/lib/async/zone.dart 1594:9 runUnaryGuarded
dart-sdk/lib/async/stream_impl.dart 365:5 [_sendData]
dart-sdk/lib/async/stream_impl.dart 541:13 perform
dart-sdk/lib/async/stream_impl.dart 646:10 handleNext
dart-sdk/lib/async/stream_impl.dart 617:7 callback
dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7 <fn>
Seems like after the initial metadata, the sending connection is closed/cancelled, and subsequent chunks sends are resulting in this error. I can't, however, see any errors neither on server nor on client (using logging with interceptors).
Meanwhile, as I understood, grpc-dart is using grpc-web under the hood, and on the grpc-webREADME page, there is a paragraph:
Server-side Streaming RPCs (example) (NOTE: Only when grpcwebtext mode is used.)
Client-side and Bi-directional streaming is not currently supported (see streaming roadmap).
I am facing exactly the same problem. I was not sure if it was my code, as it works fine on native platforms, except on the web.
Did you ever find a solution/workaround?
Hi, I'm having an issue with streaming only when compiled to the web platform. It's the simple file upload chunking code that works fine on native platforms:
upload.dart
proto file:
But on web it returns this for every chunk:
Seems like after the initial metadata, the sending connection is closed/cancelled, and subsequent chunks sends are resulting in this error. I can't, however, see any errors neither on server nor on client (using logging with interceptors).
Meanwhile, as I understood, grpc-dart is using grpc-web under the hood, and on the
grpc-web
README page, there is a paragraph:Server-side Streaming RPCs (example) (NOTE: Only when grpcwebtext mode is used.)
Client-side and Bi-directional streaming is not currently supported (see streaming roadmap).
It leads to this document: https://github.com/grpc/grpc-web/blob/master/doc/streaming-roadmap.md, which is basically saying, "forget about streaming support from the client".
So, I have two questions:
The text was updated successfully, but these errors were encountered: