技术文章 - CS400182
在 Codebeamer 上使用 REST API 时,服务器返回 HTTP 429 响应为 text/xml 而不是 application/json
已修改: 06-Mar-2024
适用于
- Codebeamer 21.09
说明
当超过通过API Throttling设置的
"bandwidthConfigs"容量时,Codebeamer 服务器会返回字符串形式的响应(内容: text/xml ,消息: "Too many requests" )而不是application/json ,因为它是根据预期的OpenAPI 规范: "TooManyRequestsException": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"resourceUri": {
"type": "string"
},
"retryAfterSecond": {
"type": "integer",
"format": "int64"
}
}
}
这是文章 400182 的 PDF 版本,可能已过期。最新版本 CS400182