Skip to content

[Bug/错误]: Use Response API on Copilot Provider with MySQL database cause too long external_id #1471

@LazuliKao

Description

@LazuliKao

Pre-submission Checklist / 提交前检查

  • I have searched the existing issues and this bug has not been reported / 我已搜索现有 issues,此 Bug 尚未被报告
  • I have read the documentation / 我已阅读文档
  • I am using the latest version of AxonHub / 我正在使用 AxonHub 的最新版本

Bug Description / Bug 描述

使用Copilot渠道时请求结束后依然是处理中状态,经过核查似乎是因为Copilot使用Response API时返回的id太长导致存不进数据库

Steps to Reproduce / 复现步骤

使用MySQL数据库

Expected Behavior / 期望行为

能正常处理长id

Error Message / 错误消息

axonhub-mysql-app  | {"level":"ERROR","time":"2026-04-24T15:29:07+08:00","logger":"axonhub","message":"Failed to update request execution status to completed","error":"Error 1406 (22001): Data too long for column 'external_id' at row 1","context_deadline":"2026-04-24T15:29:17+08:00","trace_id":"at-11a95237-9571-4304-bf92-492a834c03f8","request_id":"ar-b64608e8-89bb-489e-bc20-deb48677e4d1","operation_name":"POST /v1/responses"}
axonhub-mysql-app  | {"level":"WARN","time":"2026-04-24T15:29:07+08:00","logger":"axonhub","message":"Failed to update request execution status to completed","error":"Error 1406 (22001): Data too long for column 'external_id' at row 1","context_deadline":"2026-04-24T15:29:17+08:00","trace_id":"at-11a95237-9571-4304-bf92-492a834c03f8","request_id":"ar-b64608e8-89bb-489e-bc20-deb48677e4d1","operation_name":"POST /v1/responses"}
axonhub-mysql-app  | {"level":"ERROR","time":"2026-04-24T15:29:07+08:00","logger":"axonhub","message":"Failed to update request status to completed","error":"Error 1406 (22001): Data too long for column 'external_id' at row 1","context_deadline":"2026-04-24T15:29:17+08:00","trace_id":"at-11a95237-9571-4304-bf92-492a834c03f8","request_id":"ar-b64608e8-89bb-489e-bc20-deb48677e4d1","operation_name":"POST /v1/responses"}
axonhub-mysql-app  | {"level":"WARN","time":"2026-04-24T15:29:07+08:00","logger":"axonhub","message":"Failed to update request status to completed","error":"Error 1406 (22001): Data too long for column 'external_id' at row 1","context_deadline":"2026-04-24T15:29:17+08:00","trace_id":"at-11a95237-9571-4304-bf92-492a834c03f8","request_id":"ar-b64608e8-89bb-489e-bc20-deb48677e4d1","operation_name":"POST /v1/responses"}

Operating System / 操作系统

Linux (Ubuntu/Debian) / Linux(Ubuntu/Debian)

AxonHub Version / AxonHub 版本

latest

Usage Scenario / 使用场景

API

API Format / API 格式

OpenAI - Responses (/v1/responses) / OpenAI Responses

Channel Type / 渠道类型

Custom/Other / 自定义/其他

Logs / 日志

Additional Context / 其他补充信息

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions