HTTP functions can only answer with NextResponse.json: headers are dropped, and redirects and Response fail
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- next.js, typescript
調査の方向性
Start with lib/services/ai-functions/route-module-runner.ts, especially the next/server shim around lines 286–301 and the return handling around lines 797–800. Trace how the handler result becomes an HTTP response, then check the existing tests for route-module HTTP functions. Done when the listed response forms preserve headers through to the caller, or deployment rejects unsupported forms with clear documentation.
索引モデルが issue の本文から書いたものです。
説明
A route-module function (trigger: "http") gets a next/server shim whose NextResponse has one method, json:
and whatever the handler returns is reduced to { status, body }:
So:
NextResponse.json(body, { headers })loses its headers. NoSet-Cookie,Cache-Control,Locationor content type reaches the caller.NextResponse.redirect(url)throws "NextResponse.redirect is not a function", andnew NextResponse(...)throws "NextResponse is not a constructor".Responseis not defined in the function's scope, sonew Response(csv, ...)andResponse.json(...)throw.
The functions doc says a route module may import next/server and shows a NextResponse.json example, so agents write ordinary Next.js handlers: a CSV export with its content type, an OAuth callback that redirects, a login that sets a cookie. These deploy without complaint and then fail, or lose their headers, on every call.
Done when the common response forms work (NextResponse.json with headers, NextResponse.redirect, new Response, Response.json) with their headers passed through to the HTTP response, or the doc says exactly what is supported and deploy_code refuses the rest.
- 主要言語
- TypeScript
- スター
- 56
- フォーク
- 19
- 平均マージ
- 14時間 4分
- マージ済み PR(30日)
- 366
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
backenly/backenly のほかの issue
-
JSON and Math are empty inside sandbox functions, so any function that uses them fails on every runオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
ctx.db treats { column: null } as = NULL, so query, update and delete match no rows対応中かも @akashr001 が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 77/100
backenly/backenly#602 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Signed uploads that never finish leave files that are listed and metered but cannot be downloadedオープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
backenly/backenly の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
open-webui/tether#52 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
voidzero-dev/void#835 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AykutSarac/jsoncrack.com#616 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
melgarafael/DeskcommCRM#4679 ·
メンテナーはふだん 1 日以内に返信