Skip to content
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

Deno 2.1.1 Uncaught TypeError: Failed to decompress #27029

Closed
xuybin opened this issue Nov 23, 2024 · 1 comment · Fixed by #27455
Closed

Deno 2.1.1 Uncaught TypeError: Failed to decompress #27029

xuybin opened this issue Nov 23, 2024 · 1 comment · Fixed by #27455
Assignees
Labels
bug Something isn't working correctly ext/http related to ext/http needs investigation requires further investigation before determining if it is an issue or not node compat triage required 👀 Deno team needs to make a decision if this change is desired

Comments

@xuybin
Copy link

xuybin commented Nov 23, 2024

Version: Deno 2.1.1

undici.ts

import { fetch } from "npm:[email protected]";

Deno.serve({
  hostname: "0.0.0.0",
  port: 3000,
}, (_req) => {
  return Response.json([
    ["accept-language", "*"],
    ["host", "localhost:3000"],
    ["user-agent", "Deno/2.1.1"],
  ], {});
});

const resp = await fetch("http://localhost:3000/", {
  headers: [
    ["accept-encoding", "gzip, deflate, br, zstd"],
  ] as string[][],
  redirect: "manual",
  method: "GET",
});

console.log("resp:", resp);
console.log("resp.json:", await resp.json());

normal execution Deno 2.0.6
image
but at Deno 2.1.1
image

@xuybin xuybin changed the title Uncaught TypeError: Failed to decompress Deno 2.1.1 Uncaught TypeError: Failed to decompress Nov 23, 2024
@nathanwhit nathanwhit added the bug Something isn't working correctly label Nov 26, 2024
@nathanwhit
Copy link
Member

nathanwhit commented Nov 26, 2024

Seems to have broken after #26814, probably exposed a bug in our brotli implementation

@bartlomieju bartlomieju added needs investigation requires further investigation before determining if it is an issue or not ext/http related to ext/http node compat triage required 👀 Deno team needs to make a decision if this change is desired labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly ext/http related to ext/http needs investigation requires further investigation before determining if it is an issue or not node compat triage required 👀 Deno team needs to make a decision if this change is desired
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants