cloudConfig.getManifest and ActivityLogPublisher return 401 Unable to resolve user ID after upgrade to 2.21.4
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start with the cloudConfig.getManifest and ActivityLogPublisher entry points named in the report, then inspect the authentication used for requests to app.kiro.dev and runtime.us-east-1.kiro.dev. Use q doctor, q restart, and session logs to reproduce the two 401 responses; done means both calls succeed for an authenticated session without the cached-config fallback or activity publish error.
由索引模型根据 Issue 内容生成。
描述
Checks
- I have searched github.com/aws/amazon-q-developer-cli/issues and there are no duplicates of my issue
- I have run
q doctorin the affected terminal session - I have run
q restartand replicated the issue again
Operating system
Linux 6.18.33.2-microsoft-standard-WSL2 - Debian GNU/Linux 13 (trixie)
Expected behaviour
Description:
After upgrading kiro-cli to 2.21.4, every session logs a 401 Unauthorized from two backend calls, even when the session is otherwise authenticated
and working normally:
-
network.cloudConfig.getManifest -> https://app.kiro.dev
errorType: UnauthorizedException, statusCode: 401, message: "Unable to resolve user ID"
CLI falls back to cached config (cloudConfig.sync.fellBackToCache, reason: authRejected)
User-visible message: "Couldn't fetch your cloud config — it will retry on a future session." -
ActivityLogPublisher -> https://runtime.us-east-1.kiro.dev/agents/activity
Failed to publish to https://runtime.us-east-1.kiro.dev/agents/activity: 401 — {"message":"Unauthorized"}
Reproduction / timeline:
- No occurrences in logs prior to 2026-09-15 06:09 (checked all sessions from 2026-09-14).
- First appears immediately following the kiro-cli upgrade.
- Reproducible in every session since, including fresh sessions after re-authenticating.
- Confirmed not caused by a stale local lock file (~/.kiro/settings/cli.json.lock was removed; issue persists).
- Local config (~/.kiro/settings/cli.json) is valid JSON, no corruption.
Environment:
- kiro-cli version: 2.21.4
- Build: 1.0.437 (5349479558af37fecbfcdb58c199ee59d86d4dd3)
- Platform: x64 Linux
Expected: cloud config manifest and activity log publishing succeed for an authenticated session.
Actual: both consistently return 401 "Unable to resolve user ID" / "Unauthorized", suggesting the auth token used for these specific calls is not
resolving to a valid user identity server-side, despite the CLI session being authenticated for normal chat/tool use.
Actual behaviour
Description:
After upgrading kiro-cli to 2.21.4, every session logs a 401 Unauthorized from two backend calls, even when the session is otherwise authenticated
and working normally:
-
network.cloudConfig.getManifest -> https://app.kiro.dev
errorType: UnauthorizedException, statusCode: 401, message: "Unable to resolve user ID"
CLI falls back to cached config (cloudConfig.sync.fellBackToCache, reason: authRejected)
User-visible message: "Couldn't fetch your cloud config — it will retry on a future session." -
ActivityLogPublisher -> https://runtime.us-east-1.kiro.dev/agents/activity
Failed to publish to https://runtime.us-east-1.kiro.dev/agents/activity: 401 — {"message":"Unauthorized"}
Reproduction / timeline:
- No occurrences in logs prior to 2026-09-15 06:09 (checked all sessions from 2026-09-14).
- First appears immediately following the kiro-cli upgrade.
- Reproducible in every session since, including fresh sessions after re-authenticating.
- Confirmed not caused by a stale local lock file (~/.kiro/settings/cli.json.lock was removed; issue persists).
- Local config (~/.kiro/settings/cli.json) is valid JSON, no corruption.
Environment:
- kiro-cli version: 2.21.4
- Build: 1.0.437 (5349479558af37fecbfcdb58c199ee59d86d4dd3)
- Platform: x64 Linux
Expected: cloud config manifest and activity log publishing succeed for an authenticated session.
Actual: both consistently return 401 "Unable to resolve user ID" / "Unauthorized", suggesting the auth token used for these specific calls is not
resolving to a valid user identity server-side, despite the CLI session being authenticated for normal chat/tool use.
Steps to reproduce
No response
Environment
<This will be visible to anyone. Do not include personal or sensitive information>
[q-details]
version = "2.21.4"
hash = "57c33e903958a4731d1eaaa8353ad807badbe7d7"
date = "2026-09-11T12:46:40.03318Z (5d ago)"
variant = "minimal"
[system-info]
chip = "AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics"
total-cores = 3
memory = "10.70 GB"
[system-info.os.linux]
kernel_version = "6.18.33.2-microsoft-standard-WSL2"
id = "debian"
name = "Debian GNU/Linux"
pretty_name = "Debian GNU/Linux 13 (trixie)"
version_id = "13"
version = "13 (trixie)"
[environment]
cwd = "/home/USER"
cli-path = "/home/USER"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.2.37"
install-method = "unknown"
in-wsl = true
[env-vars]
DISPLAY = ":0"
PATH = "/home/USER/.nvm/versions/node/v24.21.0/bin:/usr/local/go/bin:/home/USER/.local/bin:/home/USER/bin:/home/USER/.local/bin:/home/USER/.cargo/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/USER/.nvm/versions/node/v24.21.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python313/Scripts/:/mnt/c/Python313/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Go/bin:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files/GitHub CLI/:/mnt/c/Granted:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/PostgreSQL/17/bin:/mnt/c/Program Files/Amazon/AWSCLIV2/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Microsoft SQL Server/170/Tools/Binn/:/mnt/c/Program Files/KeePassXC/:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Users/ArtoHakola/.local/bin:/mnt/c/Users/ArtoHakola/AppData/Local/Microsoft/WindowsApps:/mnt/c/Microsoft VS Code/bin:/mnt/c/Users/ArtoHakola/AppData/Local/Programs/Ollama:/mnt/c/Users/ArtoHakola/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/ArtoHakola/go/bin:/mnt/c/Users/ArtoHakola/AppData/Roaming/npm:/mnt/c/Users/ArtoHakola/.dotnet/tools:/mnt/c/Users/ArtoHakola/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/ArtoHakola/AppData/Local/Microsoft/WinGet/Links:/mnt/c/Users/ArtoHakola/.cache/lm-studio/bin:/mnt/c/Users/ArtoHakola/AppData/Local/Microsoft/WinGet/Packages/astral-sh.uv_Microsoft.Winget.Source_8wekyb3d8bbwe:/mnt/c/Users/ArtoHakola/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/ArtoHakola/AppData/Local/nvm:/mnt/c/nvm4w/nodejs:/mnt/c/Kiro/bin:/mnt/c/Users/ArtoHakola/.dotnet/tools:/snap/bin:/home/USER/.dotnet/tools:/home/USER/.local/bin:/home/USER/.dotnet/tools:/home/USER/go/bin"
QTERM_SESSION_ID = "fa9fc44e890c48dab9a08487f2a393b2"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "2.21.4"
SHELL = "/bin/bash"
TERM = "xterm-256color"
- 主要语言
- Rust
- 星标
- 2k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/amazon-q-developer-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
aws/amazon-q-developer-cli#3898 ·
-
bug: invalid JSON in agent-format.md `allowedTools` Examples block (JS `//` comments + unquoted `@builtin`) breaks copy-paste可能已有人在做 @ken-jo 于 117 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
aws/amazon-q-developer-cli#3851 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
aws/amazon-q-developer-cli#3316 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
aws/amazon-q-developer-cli#3023 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 15/100
aws/amazon-q-developer-cli#3929 ·
查看 aws/amazon-q-developer-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
wormhole-foundation/wormhole#5062 ·
维护者通常 1 天内回复
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authentication未关闭
难度 2/5 1-3 小时 新手友好度 60/100
-
难度 1/5 1-3 小时 新手友好度 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an error可能已有人在做 @bhuvan-somisetty 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
crate: spate-s3
难度 2/5 半天 新手友好度 62/100
维护者通常 1 天内回复