Skip to content

chatgpt #964

Closed
Closed

Description

@mehdimalekidev

with Apps Script relay and exit node deployed on deno i get error :
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

Activity

  1. therealaleph commented on May 9, 2026

    @therealaleph
    Owner

    Reviewed via Anthropic Claude.

    Real bug, fixed in c437598.

    Root cause: when exit_node.ts called fetch(destination_url), the runtime's fetch() implementation (Deno / Bun / Node all do this by default) auto-decompressed the gzipped/brotli'd response body. So resp.arrayBuffer() returned plain decompressed bytes, but resp.headers still had Content-Encoding: gzip from the destination. Forwarding both meant the browser saw Content-Encoding: gzip on plain text → "invalid or unsupported form of compression".

    Fix: strip Content-Encoding and Content-Length from the forwarded response headers (the Apps Script + Rust transport reframes the wire body anyway, so neither header is meaningful end-to-end).

    Action needed: pull the latest exit_node.ts, redeploy your Deno Deploy project, and ChatGPT should render correctly.

    This affects every compressed-response destination through exit-node: ChatGPT, Claude, Reddit, X, etc. — the fix unblocks them all.

    Closing — please reopen if a redeployed exit_node still produces the encoding error.

  2. mehdimalekidev commented on May 10, 2026

    @mehdimalekidev
    Author

    the latest exit_node.ts i couldn't deploy on deno(deploy status is failed).
    i cant see why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions