开发者社区 问答 正文

阿里云OpenAPI 这里配置了读超时10s,为啥报错还是readtimeout帮忙看看呢?

阿里云OpenAPI 这里配置了读超时10s,为啥报错还是readtimeout(3000),帮忙看看呢?
static createClient(): ocr_api20210707 {
let config = new $OpenApi.Config({
accessKeyId: 'xxxx',
accessKeySecret: 'xxxx',
opts: {
connectTimeout: 10000,
readTimeout: 10000,
timeout: 10000
}
});
config.endpoint = ocr-api.cn-hangzhou.aliyuncs.com;
return new ocr_api20210707(config);
}

展开
收起
夹心789 2024-06-10 20:12:44 76 分享 版权
1 条回答
写回答
取消 提交回答
  • 是不是其他地方这个域名new过client了 ,此回答整理自钉群“OpenAPI 开发者门户 - 值班服务群2群”

    2024-06-11 10:30:49
    赞同 展开评论