Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

ValueError: The "" URL scheme is not supported.

未关闭
#699 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
cli

调研方向

使用所示的 rsconnect deploy quarto 和 rsconnect deploy shiny 命令重现该故障。从 rsconnect/api.py 中的 RSConnectExecutor.setup_client 和 RSConnectClient 开始,然后检查拒绝 URL scheme 的 rsconnect/http_support.py。完成标准应包括针对空服务器 URL 的已验证修复或更清晰的诊断。

由索引模型根据 Issue 内容生成。

描述

I get penguins.qmd from https://quarto.org/docs/dashboards/interactivity/shiny-python/index.html

I create a venv with the requirements:

uv venv -p 3.13.5
uv pip install shiny shinywidgets jupyter seaborn
source .venv/bin/activate

I can now see the app I expect in Firefox after using quarto preview penguins.qmd in bash.

I'd like to deploy it to Connect from the CLI. Because it has interactive content, I need to use rsconnect deploy rather than quarto deploy.

~/src/quarto-python-shiny via 🐍 v3.13.5 (quarto-python-shiny) via ⨁ v1.7.32 
[ 15:55:19 ] ❯ rsconnect deploy quarto penguins.qmd 
Inspecting Quarto project...                     [OK]
Inspecting Python environment...                     Warning: Python version constraint missing from pyproject.toml, setup.cfg or .python-version
             Connect will guess the version to use based on local environment.
             Consider specifying a Python version constraint.
[OK]
Traceback (most recent call last):
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/main.py", line 118, in wrapper
    result = func(*args, **kwargs)
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/main.py", line 1315, in deploy_quarto
    ce = RSConnectExecutor(
        ctx=ctx,
    ...<12 lines>...
        env_vars=env_vars,
    )
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/api.py", line 771, in __init__
    self.setup_client(cookies)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/api.py", line 927, in setup_client
    self.client = RSConnectClient(self.remote_server, cookies)
                  ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/api.py", line 382, in __init__
    super().__init__(
    ~~~~~~~~~~~~~~~~^
        append_to_path(server.url, "__api__"),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        cookies,
        ^^^^^^^^
    )
    ^
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/http_support.py", line 238, in __init__
    raise ValueError('The "%s" URL scheme is not supported.' % self._url.scheme)
ValueError: The "" URL scheme is not supported.
Internal error: The "" URL scheme is not supported.

From the log output, it isn't clear if I have done something wrong, or if this is an issue with rsconnect.

Note that I get the same error when I run sconnect deploy shiny . --entrypoint app.py

~/src/quarto-python-shiny via 🐍 v3.13.5 (quarto-python-shiny) via ⨁ v1.7.32 
[ 16:14:50 ] ❯ rsconnect deploy shiny . --entrypoint app.py
    Warning: Python version constraint missing from pyproject.toml, setup.cfg or .python-version
             Connect will guess the version to use based on local environment.
             Consider specifying a Python version constraint.
Traceback (most recent call last):
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/main.py", line 118, in wrapper
    result = func(*args, **kwargs)
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/main.py", line 1674, in deploy_app
    ce = RSConnectExecutor(
        ctx=ctx,
    ...<16 lines>...
        env_vars=env_vars,
    )
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/api.py", line 771, in __init__
    self.setup_client(cookies)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/api.py", line 927, in setup_client
    self.client = RSConnectClient(self.remote_server, cookies)
                  ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/api.py", line 382, in __init__
    super().__init__(
    ~~~~~~~~~~~~~~~~^
        append_to_path(server.url, "__api__"),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        cookies,
        ^^^^^^^^
    )
    ^
  File "/home/lsimpson/src/quarto-python-shiny/.venv/lib/python3.13/site-packages/rsconnect/http_support.py", line 238, in __init__
    raise ValueError('The "%s" URL scheme is not supported.' % self._url.scheme)
ValueError: The "" URL scheme is not supported.
Internal error: The "" URL scheme is not supported.
主要语言
Python
星标
37
派生
28
平均合并
1 天 3 小时
30 天内合并 PR
7

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

posit-dev/rsconnect-python 的其他 Issue

查看 posit-dev/rsconnect-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。