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
I am using @hey-api/client-fetch client.
I don't know if I'm missing something, but when I try to make a POST request that results in an HTTP stream (not SSE, just stream of data I'd like to read via requestResult.response.body : ReadableStream) the request's Promise doesn't resolve (apparently because it waits for stram to end - I can see via backend the connection is successfully established). When calling plain fetch this works as expected - request Promise resolves and I can read the body stream. Is there a solution/workaround currently for this?
The text was updated successfully, but these errors were encountered:
My code is doing exactly what they are showing, but I get the following warning from the browser:
The provided value 'stream' is not a valid enum value of type XMLHttpRequestResponseType.
awaitsummarize({path: { id },responseType: 'stream'}).then((response)=>{response.data.on('data',(data)=>{console.log('axios',data);// nothing is printed});});
Description
I am using @hey-api/client-fetch client.
I don't know if I'm missing something, but when I try to make a POST request that results in an HTTP stream (not SSE, just stream of data I'd like to read via requestResult.response.body : ReadableStream) the request's Promise doesn't resolve (apparently because it waits for stram to end - I can see via backend the connection is successfully established). When calling plain
fetch
this works as expected - request Promise resolves and I can read the body stream. Is there a solution/workaround currently for this?The text was updated successfully, but these errors were encountered: