url - Python suds 客户端 urlopen 超时错误?
问题描述
SOAP 新手。
所以我有这个代码:
from suds.client import Client
url = 'https://wsvc.cdiscount.com/MarketplaceAPIService.svc?wsdl'
client = Client(url)
当我运行它时,它需要一段时间但最终输出:
...
/apps/asg/packages/extpy27-229400/g493_linux64/lib/python3.7/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
1350 encode_chunked=req.has_header('Transfer-encoding'))
1351 except OSError as err: # timeout error
-> 1352 raise URLError(err)
1353 r = h.getresponse()
1354 except:
URLError: <urlopen error timed out>
我该如何解决这个错误?
解决方案
推荐阅读
- vb.net - 等待 Acrobat Reader 退出
- android - ANDROID - “ID“示例”已定义但未分配给任何视图”
- spring - 在 Spring 应用程序中配置 Jaeger
- python - 在 TensorFlow 2.0 中:使用 optimizer.apply_gradients 的训练错误
- javascript - 显示映射到对象数组的动态选择项
- botframework - 查找与 microsoft bot 对话的最后一个活动
- types - 创建具有 3 种不同原始类型的可区分联合类型列表
- android - Android - 改造 - 基本网址中缺少查询参数
- r - 从 x 轴移除 1990 年到 2010 年之间的中间年份
- python - cTrader 解码来自 Report API 事件(隧道)的 protobuf 消息