skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

Skywalking-client-js cannot fetch a stream from the fetch API

Open tianyk opened this issue 5 years ago • 1 comments

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

// Fetch the original image
fetch('./tortoise.png')
// Retrieve its body as ReadableStream
.then(response => response.body)
.then(body => {
  const reader = body.getReader();
});

image

jsfiddle example (First of all, the cross-domain problem should be solved before it can be reproduced)

@Fine0830

tianyk avatar Mar 12 '21 11:03 tianyk

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

Fine0830 avatar Apr 15 '21 01:04 Fine0830