MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / buildAxiosErrorLog

Function buildAxiosErrorLog

src/controllers/chat.image.video.js:84–91  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

82 if (!payload || payload.success !== false || !payload.data?.code) {
83 return null
84 }
85
86 const errorData = payload.data
87 if (errorData.code === 'RateLimited') {
88 const waitHours = errorData.num
89 logger.error(`图片/视频生成额度已用尽,需等待约 ${waitHours || '未知'} 小时`, 'CHAT', '', {
90 parsed_error: errorData,
91 raw_response_body: rawPayload
92 })
93 return {
94 error: `当前账号的该功能使用次数已达上限,${waitHours ? `请等待约 ${waitHours} 小时后再试` : '请稍后再试'}`,

Callers 3

getChatDetailFunction · 0.85
generateImageVideoResultFunction · 0.85
getVideoTaskStatusFunction · 0.85

Calls 1

formatPayloadForLogFunction · 0.85

Tested by

no test coverage detected