修复 daemon 请求被 Cloudflare 拦截 - #10
Closed
earayu wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
|
关闭重复 PR:同一 User-Agent 修复已由 #9 合入 main(3f7299f5)。本 PR 的本机验证结论保留:6 个 daemon 单测通过,staging join/heartbeat/desired/observed 均为 200。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
apemind-computerd使用 urllib 默认User-Agent: Python-urllib/...,staging Cloudflare 返回 403error code: 1010,导致 Computer 无法 join。修复
User-Agent: apemind-computer这是最小修复,不改重试、鉴权或协议。
验证
uv run --with pytest pytest sandbox-image/test_apemind_computerd.py:6 passedRefs #3