KeyError: 'id' when deploying jupyter notebook
还没有人认领这个 Issue。
评估
调研方向
从 rsconnect/api.py 的第 253-257 行和第 712 行的 deploy_bundle 调用开始,然后使用 rsconnect deploy notebook -v ./snowflake_pythonconnector_demo.ipynb 重现该问题。检查 self.app_create 返回的响应和凭据上下文;确定响应缺少 id 的原因,并提供清晰的处理或诊断路径后,即视为完成。
由索引模型根据 Issue 内容生成。
描述
We have a report of a keyerror when deploying a jupyter notebook.
After doing some code reading, it's unclear to me how this could occur if we get a successful response from self.app_create
We'll follow up with additional diagnostic information but I thought we should file an issue here in case others have run into this problem.
rsconnect deploy notebook -v ./snowflake_pythonconnector_demo.ipynb
Connect detected CLI commands and/or environment variables that overlap with stored credential.
Check your environment variables (e.g. CONNECT_API_KEY) to make sure you want them to be used.
Credential paremeters are taken with the following precedence: stored > CLI > environment.
To ignore an environment variable, override it in the CLI with an empty string (e.g. -k '').
Validating server... [OK]
Validating app mode... [OK]
Making bundle ...[VERBOSE] 2023-11-02T09:43:20-0500 Adding file: manifest.json
[VERBOSE] 2023-11-02T09:43:20-0500 Adding file: requirements.txt
[VERBOSE] 2023-11-02T09:43:20-0500 Adding file: ./snowflake_pythonconnector_demo.ipynb
[OK]
Deploying bundle ... [ERROR]: 'id'
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/3.9.15/lib/python3.9/site-packages/rsconnect/main.py", line 96, in wrapper
result = func(*args, **kwargs)
File "/Users/user/.pyenv/versions/3.9.15/lib/python3.9/site-packages/rsconnect/main.py", line 901, in deploy_notebook
ce.deploy_bundle().save_deployed_info().emit_task_log()
File "/Users/user/.pyenv/versions/3.9.15/lib/python3.9/site-packages/rsconnect/log.py", line 189, in wrapper
result = method(self, *args, **kw)
File "/Users/user/.pyenv/versions/3.9.15/lib/python3.9/site-packages/rsconnect/api.py", line 712, in deploy_bundle
result = self.client.deploy(
File "/Users/user/.pyenv/versions/3.9.15/lib/python3.9/site-packages/rsconnect/api.py", line 257, in deploy
app_id = app["id"]
KeyError: 'id'
Internal error: 'id'
Is it possible there's 2 api keys in play as a result of the environment var being different than the api key from the cache?
- 主要语言
- Python
- 星标
- 38
- 派生
- 28
- 平均合并
- 10 小时 32 分钟
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
posit-dev/rsconnect-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
posit-dev/rsconnect-python#786 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 62/100
posit-dev/rsconnect-python#543 · 2 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
posit-dev/rsconnect-python#513 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
posit-dev/rsconnect-python#178 ·
-
bug
难度 4/5 3-5 天 新手友好度 50/100
posit-dev/rsconnect-python#857 ·
查看 posit-dev/rsconnect-python 的全部 Issue
相似的 Issue
-
json_params_matcher fails on falsy top-level JSON primitives (0, False, "")可能已有人在做 @mayureshsonawane17 今天认领。 未关闭Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
bojieli/ai-agent-book#1169 ·
维护者通常 1 天内回复
-
priority:low ready-for-dev
难度 2/5 1-3 小时 新手友好度 78/100
OpenHands/extensions#738 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
micronaut-projects/micronaut-core#13677 ·
维护者通常 1 天内回复