Shiny images 404 on Posit Connect Cloud #14652
Replies: 3 comments 17 replies
This comment has been hidden.
This comment has been hidden.
-
|
Have you looked at the documentation on external resources/assets in the shiny guide?
Now, the main issue is that the resources is not published alongside the Quarto document. project:
type: default
resources:
- ... |
Beta Was this translation helpful? Give feedback.
-
|
Important Accessibility: To improve accessibility, please add alternative text to your screenshots. This helps all users, including those using screen readers, to understand the context of the images. A brief description can make a big difference! See Good Alt Text, Bad Alt Text — Making Your Content Perceivable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have:
Bug description
I'm helping a colleague with a Quarto Dashboard that uses Shiny for Python. It runs well locally, but when I deploy the app to Posit Connect Cloud, I'm not able to get external images (in this case, pre-computed figures) to load at all. I've tried putting them in both
imagesandwww, and I've tried adding the paths underresources,resource-path,format.dashboard.resourcesandformat.dashboard.resource-path. No combination of this seems to get images loading, either with a client-side path of/images,/wwwor/www/images.I have a reprex here:
Local view (the image in this test case is an orange square):
Deployed view:
Note that I'm deploying this by connecting the repo on PPC, not using
quarto publish. So Shiny itself does work in the actual example, it's just the images that are giving me some trouble 🤔Your environment
Posit Connect Cloud
Quarto check output
Quarto 99.9.9 [✓] Checking environment information... Quarto cache location: /Users/jimjamslam/Library/Caches/quarto [✓] Checking versions of quarto binary dependencies... Pandoc version 3.8.3: OK Dart Sass version 1.87.0: OK Deno version 2.4.5: OK Typst version 0.14.2: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 99.9.9 commit: 5b88d3dfe1519179e2e8753c44e058a11ab62ff3 Path: /Users/jimjamslam/code/tools/quarto-cli/package/dist/bin [✓] Checking tools....................OK TinyTeX: (not installed) Chromium: (not installed) Chrome Headless Shell: (not installed) VeraPDF: (not installed) [✓] Checking LaTeX....................OK Tex: (not detected) [✓] Checking Chrome Headless....................OK Using: Chrome found on system Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome Source: MacOS known location [✓] Checking basic markdown render....OK [✓] Checking R installation...........OK Version: 4.5.2 Path: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources LibPaths: - /Users/jimjamslam/Library/R/arm64/4.5/library - /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library knitr: 1.51 rmarkdown: 2.31 [✓] Checking Knitr engine render......OK [✓] Checking Python 3 installation....OK Version: 3.13.13 Path: /Users/jimjamslam/Code/tests/test-ppc-quarto-shiny-python/.venv/bin/python3 Jupyter: 5.9.1 Kernels: python3 (\) Checking Jupyter engine render....[IPKernelApp] WARNING | Kernel is running over TCP without encryption. All communication (including code and outputs) is sent in plain text and is susceptible to eavesdropping. Use IPC transport or launch with kernel manager-provisioned CurveZMQ keys to enable transport encryption. [✓] Checking Jupyter engine render....OK [✓] Checking Julia installation...Beta Was this translation helpful? Give feedback.
All reactions