Shiny app not working
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Reproduce the issue with the R example, first checking the @shiny /devApp endpoint and then the api_shiny('/ui/', ...) pipeline through api_run(). Compare the working echo endpoint with the Shiny responses and verify whether the @shiny tag is available in autocomplete; done means the Shiny endpoint runs without 404 or Internal Server Error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
Let me start by saying I think it's great what's possible in this new version of Plumber!
I was particularly interested in running a Shiny app through the API, but unfortunately I cannot seem to make this work. Below is my (hopefully) reproducible example
#* Echo the parameter that was sent in
#*
#* @get /echo/<msg>
#*
#* @param msg:string The message to echo back.
#*
function(msg) {
list(
msg = paste0("The message is: '", msg, "'")
)
}
#* @shiny /devApp
shiny::shinyAppDir(system.file("examples-shiny", "01_hello", package = "shiny"))
When I now click the Run API button in R Studio, the server starts, and the echo endpoint is working. However, if I navigate to the devApp endpoint I get {"error":"404 - Resource Not Found"}
Also the @shiny tag is not suggested in autocomplete and seems to be absent from the package
When I tried running
api() |>
api_shiny(
"/ui/",
shiny::shinyAppDir(
system.file("examples-shiny", "01_hello", package = "shiny")
)
) |>
api_run()
This did initially work when I navigated to the UI endpoint. However, now it's also broken giving me Internal Server Error (I tried installing the dev version and the the original one again so maybe that's the reason here?)
Thanks again for creating this new version!
PJ
- Ngôn ngữ chính
- R
- Star
- 119
- Fork
- 17
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 posit-dev/plumber2
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
`except` argument in `Plumber2$add_shiny` method is not respectedCó thể đã có người làm @cgiachalis đã nhận 139 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Update vignette `hosting.qmd`Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Development RoadmapĐang mở
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 20/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Tất cả issue của posit-dev/plumber2
Issue tương tự
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothĐang mởarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Apich-Organization/rssn#383 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PRL-PRG/r-compile-server#70 · 1 bình luận ·
-
dependencies docker enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
posit-dev/images-workbench#257 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies docker enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
posit-dev/images-package-manager#188 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies docker enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
posit-dev/images-connect#222 ·
Maintainer thường phản hồi trong vòng 1 ngày