-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
fetching local file returns a scrambled output #8
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
When I try to load a JSON file using
file://
protocol content seems to get scrambled 😕Here's a link to JSON file and below is a snippet which show that parsing with
Deno.readTextFile
is fine while usingfetch
output starts at line 4076 out of 4231 (which explains why it can't be parsed)Any ideas?
Like denoland/deno#2150 (comment) mentioned, this lib is used on deno deploy so it's probably broken on it too
Edit: After more digging I think it's from deno's implementation of
Response
itself that the problem occurs. It is possible actually possible to reconstruct original string using directlyTextDecoder
and string. Tested both withDeno.iter
anditer
from std.The text was updated successfully, but these errors were encountered: