INNER CODE UNIT · Python
wait
canarybyte/veridrop · web/server.py:347
wait = int(retry_after) + 1
return JSONResponse(
{
"ok": False,
"auth_ok": True,
"error": f"探测过于频繁,请在 {wait} 秒后再试",
"rate_limited": True,
},
status_code=429,
headers={"Retry-After": str(wait)},
)
base_url = base_url.strip()
api_key = api_key.strip()
if not base_url.startswith(("http://", "https://")):
return JSONResponse(
{"ok": False, "error": "base_url must start with http(s)://"},