nitrojs / nitrojs/nitro

When using Nitro proxy, it's not possible to download files from the server's response.

Open
#1,703 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs reproduction proxy v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

Environment

"node": "^16.20.0"
"nuxt": "^3.6.5"

Reproduction

web.zip

Describe the bug

nitro.config
image

backend code
image

I'm capturing the code for fetch when using Nitro and when not using Nitro.
When not in use, the size is measured as 2.
image

Additional context

No response

Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by unpacking web.zip and reviewing the nitro.config, backend code, and fetch behavior shown in the report. Reproduce the Nitro proxy request and compare the response handling with the non-Nitro case; done means files can be downloaded from the proxied server response.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, nuxt
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.