Skip to content

刷新验证过程时报400错误 #21

@AdoShan

Description

@AdoShan

config.toml域名与CloudFlare Turnstile中hostname的域名一致,在验证成功后,刷新状态时提示验证过程中发生错误,查看日志验证状态报400错误,恳请作者排查一下原因。直接打开域名可以显示TGuard机器人介绍页面,国外机器,可以直连CloudFlare。

Image Image
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2025-12-28 07:38:46,697 - src.api.main - INFO - GET /health - Status: 200 - Time: 0.001s
INFO:     127.0.0.1:47130 - "GET /health HTTP/1.1" 200 OK
2025-12-28 07:38:52,307 - src.captcha.factory - INFO - Created captcha provider: turnstile
2025-12-28 07:38:52,345 - src.api.main - INFO - GET /verify - Status: 200 - Time: 0.195s
INFO:     172.23.0.1:41696 - "GET /verify?token=04KwI2ApFgyn8RKO0KvZIAUGNY1d0FAD HTTP/1.1" 200 OK
2025-12-28 07:39:01,699 - src.api.routes.verification - INFO - Processing verification for token: 04KwI2ApFgyn8RKO0KvZIAUGNY1d0FAD
2025-12-28 07:39:01,953 - httpx - INFO - HTTP Request: POST https://challenges.cloudflare.com/turnstile/v0/siteverify "HTTP/1.1 200 OK"
2025-12-28 07:39:01,957 - src.captcha.turnstile - INFO - Turnstile verification successful
2025-12-28 07:39:01,958 - src.captcha.turnstile - ERROR - Turnstile unexpected error: CaptchaVerificationResult.__init__() got an unexpected keyword argument 'action'
2025-12-28 07:39:01,958 - src.api.routes.verification - WARNING - Captcha verification failed: internal-error
2025-12-28 07:39:01,959 - src.api.main - INFO - POST /api/v1/verify - Status: 400 - Time: 0.264s
INFO:     172.23.0.1:59480 - "POST /api/v1/verify HTTP/1.1" 400 Bad Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions