开发者社区> 问答> 正文

C++ SDK onTaskFailed: status code=40000004 怎么解决

问题描述

实时语音识别超过10秒会提示Gateway:IDLE_TIMEOUT

onTaskFailed: status code=40000004, task id=bf581d123e38453c8abe0e44b8c56e48, error message={"header":{"namespace":"Default","name":"TaskFailed","status":40000004,"message_id":"8f82684e73804580b788be8b85164dac","task_id":"bf581d123e38453c8abe0e44b8c56e48","status_text":"Gateway:IDLE_TIMEOUT:Websocket session is idle for too long time, the last directive is 'StartTranscription'!"}}

期望结果

文档里说因为“超过10秒没有发送数据到服务端,空闲超时自动断连”可以增加重试机制, 请问重试机制应该怎样实现

展开
收起
暖风依旧 2022-10-03 17:59:38 164 0
1 条回答
写回答
取消 提交回答
  • 增加重试机制是指 需要客户端重新发送请求。

    2022-10-09 11:29:23
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
一个跨平台的云服务SDK需要什么 立即下载
使用C++11开发PHP7扩展 立即下载
GPON Class C++ SFP O;T Transce 立即下载