Issue with nested reitit routes in upcoming version
まだ誰も着手していません。
評価
調査の方向性
duct.edn 内のネストされた :routes 例を、記載されている org.duct-framework/main と module.web のバージョンを使って再現し、その後 reitit.core router の出力と /v1/pong のレスポンスパスを調査します。両方のネストされたルートが機能し、リクエストで 404 や StreamableResponseBody 例外が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In the upcoming version there seems to be an issue with nested reitit routes.
Flat routes work
:routes
[["/ping" :my-test/ping]
["/pong" :my-test/pong]]
But when specified in nested form
:routes
[["/v1"
["/ping" :my-test/ping]
["/pong" :my-test/pong]]]
only the first route works. The /v1/pong route results in a 404.
I checkd with
(require '[reitit.core :as r])
(-> "duct.edn"
slurp
(str/replace "#ig/ref" "")
read-string
:system
:duct.module/web
:routes
r/router
r/routes)
and the result seems fine.
Addendum:
Well at least the error message leads to the conclusion that it wants to respond with a 404. What I actually get is Error 500 java.lang.IllegalArgumentException: No implementation of method: :write-body-to-stream of protocol: #'ring.core.protocols/StreamableResponseBody found for class: clojure.lang.PersistentArrayMap and then SERVLET:</th><td>org.eclipse.jetty.servlet.ServletHandler$Default404Servlet.
This is with
org.duct-framework/main {:mvn/version "0.1.8"}
org.duct-framework/module.web {:mvn/version "0.12.7"}
- 主要言語
- Clojure
- スター
- 22
- フォーク
- 22
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
duct-framework/module.web のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
duct-framework/module.web#21 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
duct-framework/module.web#8 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
duct-framework/module.web#7 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
duct-framework/module.web#4 · コメント 1 件 ·
duct-framework/module.web の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
calcit-lang/calcit#2075 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
.Needs Triage .Team/Gadget Priority:P3 Type:Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
metabase/metabase#84431 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
module:db module:terminology-service-local refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信