【API测试工具错误报告】 错误码: 错误 404 - 接口不存在 错误: 详细信息:Invalid URL (POST /v1/v1/responses) 模...
错误信息
【API测试工具错误报告】
错误码: 错误 404 - 接口不存在
错误: 详细信息:Invalid URL (POST /v1/v1/responses)
模型: MiniMax-M2.7-free
接口: https://www.dmxapi.cn/v1/v1/responses
令牌: sk-Eqs...ltpi
时间: 2026/4/4 01:15:38
AI 解决方案
报错分析报告
1.错误翻译
原文:Invalid URL (POST /v1/v1/responses)
译文:无效的URL(POST请求路径为/v1/v1/responses)
2.原因分析
/v1,导致路径无效。/v1/v1/responses(正确应为/v1/responses)。3. 解决方案
# 修复后的Python请求示例(修正URL路径)
import requests
url = "https://www.dmxapi.cn/v1/responses" # 移除重复的/v1
headers = {"Authorization": "Bearer sk-Eqs...ltpi"}
payload = {"model": "MiniMax-M2.7-free"} # 补充业务参数
response = requests.post(url, headers=headers, json=payload)
print(response.status_code, response.text)
4. 预防措施
分析完成,请验证修复后的URL是否匹配DMXAPI最新文档。