You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/03/12 11:39:39 UTC

[GitHub] [skywalking] tianyk opened a new issue #6546: Skywalking-client-js cannot fetch a stream from the fetch API

tianyk opened a new issue #6546:
URL: https://github.com/apache/skywalking/issues/6546


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [x] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Bug
   - [skywalking-client-js](https://github.com/apache/skywalking-client-js)
   
   - Which company or project?
   [pdf.js](https://github.com/mozilla/pdf.js/)
   
   - What happened?
   [whatwg-fetch](https://github.com/github/fetch) doesn't implement stream api <https://github.com/github/fetch/issues/746> An error occurs when you try to get a ReadableStream. pdf.js use `res.body` get a stream.
   
   ```js
   // Fetch the original image
   fetch('./tortoise.png')
   // Retrieve its body as ReadableStream
   .then(response => response.body)
   .then(body => {
     const reader = body.getReader();
   });
   ```
   ![image](https://user-images.githubusercontent.com/3387702/110934783-756fd480-8369-11eb-9c1f-7bb693d8570a.png)
   
   [jsfiddle example](https://jsfiddle.net/pdfjs/wagvs9Lf/) (First of all, the cross-domain problem should be solved before it can be reproduced)
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] Fine0830 closed issue #6546: Skywalking-client-js cannot fetch a stream from the fetch API

Posted by GitBox <gi...@apache.org>.
Fine0830 closed issue #6546:
URL: https://github.com/apache/skywalking/issues/6546


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] Fine0830 commented on issue #6546: Skywalking-client-js cannot fetch a stream from the fetch API

Posted by GitBox <gi...@apache.org>.
Fine0830 commented on issue #6546:
URL: https://github.com/apache/skywalking/issues/6546#issuecomment-819952808


   Close this via https://github.com/apache/skywalking-client-js/pull/48


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org