agentscope-ai / agentscope-ai/agentscope-java
[Bug]:无法下载的图片url会导致请求出错DashScope API error: <400> InternalError.Algo.InvalidParameter: Failed to download multimodal content
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 1.3k
- Ø Merge
- 4 T. 12 Std.
- Gemergte PRs (30 T.)
- 77
Beschreibung
【问题描述】
当传入一个错误的图片url地址,或者历史的记录中有过期或者无法访问的url图片地址?直接报错
如:
ImageBlock dataBlock = ImageBlock.builder()
.source(URLSource.builder()
.url("https://test.oss-cn-beijing.aliyuncs.com/015d88f7bf3a5458ae662770b81b88ea.jpg?Expires=1786639739&OSSAccessKeyId=TMP.3KzZUKozs1FKCwqRD7j7qygpQYmbFhafwm2ZV779HqXSHP1Yo5gWwSn8zuM4ZPABLWYZvqwvojwn7HFvAhUt3nFnr9A8MH&Signature=2eh2lud36CzVucTd6Cqs2bLw4c0%3D")
.mimeType("image/jpeg")
.build())
.build();
06:49:35.343 [boundedElastic-2] WARN io.agentscope.harness.agent.middleware.CompactionMiddleware -- Compaction failed, continuing without compaction: DashScope API error: <400> InternalError.Algo.InvalidParameter: Failed to download multimodal content
06:49:45.207 [boundedElastic-2] INFO io.agentscope.harness.agent.middleware.AgentTraceMiddleware -- [note-taker] ERROR | DashScopeHttpException: DashScope API error: <400> InternalError.Algo.InvalidParameter: Failed to download multimodal content
06:49:45.215 [agentscope-jvm-shutdown-hook] INFO io.agentscope.core.shutdown.GracefulShutdownManager -- Graceful shutdown initiated, 0 active request(s), timeout=infinite
06:49:45.215 [agentscope-jvm-shutdown-hook] INFO io.agentscope.core.model.transport.HttpTransportFactory -- Shutting down 1 managed HttpTransport(s)
Exception in thread "main" io.agentscope.extensions.model.dashscope.DashScopeHttpClient$DashScopeHttpException: DashScope API error: <400> InternalError.Algo.InvalidParameter: Failed to download multimodal content
【修复建议】
暂无
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.