We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Streaming requests with the fetch API doesn't work when using Cloudflare Tunnel.
To Reproduce Steps to reproduce the behavior:
./cloudflared tunnel --hello-world --protocol=http2
https://xxx.trycloudflare.com
function wait(milliseconds) { return new Promise(resolve => setTimeout(resolve, milliseconds)); } const stream = new ReadableStream({ async start(controller) { await wait(1000); controller.enqueue('This '); await wait(1000); controller.enqueue('is '); await wait(1000); controller.enqueue('a '); await wait(1000); controller.enqueue('slow '); await wait(1000); controller.enqueue('request.'); controller.close(); }, }).pipeThrough(new TextEncoderStream()); fetch("/", { method: 'POST', headers: {'Content-Type': 'text/plain'}, body: stream, duplex: 'half', });
HyperText Transfer Protocol 2 Stream: DATA, Stream ID: 63, Length 23 Length: 23 Type: DATA (0) Flags: 0x01, End Stream 0... .... .... .... .... .... .... .... = Reserved: 0x0 .000 0000 0000 0000 0000 0000 0011 1111 = Stream Identifier: 63 [Pad Length: 0] Data: 54686973206973206120736c6f7720726571756573742e Line-based text data: text/plain (1 lines) This is a slow request.
Expected behavior cloudflared should receive 5 DATA frames.
Environment and versions
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Streaming requests with the fetch API doesn't work when using Cloudflare Tunnel.
To Reproduce
Steps to reproduce the behavior:
./cloudflared tunnel --hello-world --protocol=http2
https://xxx.trycloudflare.com
in Google ChromeExpected behavior
cloudflared should receive 5 DATA frames.
Environment and versions
The text was updated successfully, but these errors were encountered: