|
@@ -74,7 +74,9 @@ def _upload_chunk(text: str, query: str, channel: str = "", max_retries: int = 3
|
|
|
|
|
|
for attempt in range(max_retries):
|
|
|
try:
|
|
|
- resp = requests.post(CHUNK_API_URL, headers=headers, json=payload, timeout=15)
|
|
|
+ resp = requests.get(CHUNK_API_URL, headers=headers, data=payload, timeout=30)
|
|
|
+ # 打印出请求体
|
|
|
+ logger.info(f"上传chunk请求体: payload={payload}")
|
|
|
logger.info(f"上传chunk成功: resp={resp.json()}")
|
|
|
if resp.status_code >= 200 and resp.status_code < 300:
|
|
|
return True
|