Tracking UI returns HTTP 500 on all pages with Starlette ≥1.0 (TemplateResponse signature)
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
Hướng nghiên cứu
Đọc burr/tracking/server/run.py tại điểm vào react_app và kiểm tra lệnh gọi TemplateResponse quanh dòng 341. Tái hiện lỗi của tracking UI với Starlette 1.0 hoặc mới hơn, sau đó xác minh rằng index.html được cung cấp trả về HTTP 200; đồng thời kiểm tra cấu hình dependency của burr[start] nếu thêm phiên bản Starlette tối thiểu được đề xuất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The tracking UI server (burr / burr-admin-server) returns HTTP 500 on every page when Starlette ≥1.0 is installed. The JSON API is unaffected — only the served React app (index.html) fails. Because burr[start] doesn't pin Starlette (it arrives transitively via an unpinned fastapi), a fresh pip install "burr[start]" resolves to a current Starlette and the UI is broken out of the box.
Environment
- burr 0.40.2 (via
burr[start]) - starlette 1.3.0, jinja2 3.1.6, fastapi 0.136.3
- Reproduced on Python 3.13 and 3.14 (version-independent)
Root cause
burr/tracking/server/run.py:341 uses the pre-1.0 Starlette signature:
return templates.TemplateResponse("index.html", {"request": req})
Starlette 0.29 made request the first positional argument and 1.0 removed the old form, so "index.html" binds to request and the context dict binds to name; Jinja2 then tries to load a template whose name is a dict and raises TypeError: unhashable type: 'dict'. (Same break FastAPI hit in fastapi/fastapi#15198.)
Fix
return templates.TemplateResponse(request=req, name="index.html")
This is the only TemplateResponse call site in the package; with it the UI renders (HTTP 200) on Python 3.14 + Starlette 1.3.0. Verified locally. Worth pairing with a starlette>=0.29 floor, since the keyword form requires it.
Traceback
File ".../burr/tracking/server/run.py", line 341, in react_app
return templates.TemplateResponse("index.html", {"request": req})
File ".../starlette/templating.py", line 148, in TemplateResponse
template = self.get_template(name)
File ".../jinja2/environment.py", line 1016, in get_template
return self._load_template(name, globals)
TypeError: unhashable type: 'dict'
Happy to send a PR if useful.
- Ngôn ngữ chính
- Python
- Star
- 2.6k
- Fork
- 203
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/burr
-
Streaming Event type, type hint, should support union typeCó thể đã có người làm @mvanhorn đã nhận 184 ngày trước. Đang mởarea/streaming area/typing good first issue help wanted kind/bug priority/high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
apache/burr#607 · 12 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add more instructions for applying ORM migrations for S3 deploymentCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea/storage area/ui help wanted kind/documentation priority/low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/burr#524 · 11 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add documentation on how to run the Burr UI serverCó thể làm lại được @iamSerafinnn đã nhận 123 ngày trước và không có pull request nào đang mở. Đang mởarea/ui good first issue kind/documentation priority/low
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
apache/burr#272 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
status/needs-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 2 ngày
-
status/needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 2 ngày
Issue tương tự
-
Broken link in index.rstĐang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
ansys/pydpf-core#3547 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vectorize-io/hindsight#5457 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: LangChain drops OpenAI Responses text blocks from session recordingCó thể đã có người làm @ktz03 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
volcengine/OpenViking#5806 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HTML: <template> content is extracted as document textCó thể đã có người làm @ryanmeowy đã nhận hôm nay. Đang mởbug html
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
docling-project/docling#4714 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
APIv2 event data accepts a non-string reply and a NaN upper_boundCó thể đã có người làm @awss1i đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
freedomofpress/securedrop#7946 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày