帮忙看下阿里云OpenAPI python core sdk的问题,我本地测试正常,客户sdk版本已经最新了。没看到有代理配置?
D:\project\sku-train\venv\Scripts\python.exe D:\project\sku-train\aly.py
Traceback (most recent call last):
File "D:\project\sku-train\aly.py", line 25, in
response = client.do_action_with_exception(request)
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\client.py", line 498, in do_action_with_exception
status, headers, body, exception = self._implementation_of_do_action(acs_request)
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\client.py", line 333, in _implementation_of_do_action
return self._handle_retry_and_timeout(endpoint, request, signer)
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\client.py", line 401, in _handle_retry_and_timeout
status, headers, body, exception = self._handle_single_request(endpoint,
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\client.py", line 432, in _handle_single_request
status, headers, body = http_response.get_response_object()
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\http\http_response.py", line 139, in get_response_object
response = self.session.send(
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\vendored\requests\sessions.py", line 617, in send
r = adapter.send(request, kwargs)
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\vendored\requests\adapters.py", line 405, in send
conn = self.get_connection(request.url, proxies)
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\vendored\requests\adapters.py", line 303, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\vendored\requests\adapters.py", line 191, in proxy_manager_for
manager = self.proxy_manager[proxy] = proxy_from_url(
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\vendored\requests\packages\urllib3\poolmanager.py", line 453, in proxy_from_url
return ProxyManager(proxy_url=url, kw)
File "D:\project\sku-train\venv\lib\site-packages\aliyunsdkcore\vendored\requests\packages\urllib3\poolmanager.py", line 404, in init__
raise ProxySchemeUnknown(proxy.scheme)
aliyunsdkcore.vendored.requests.packages.urllib3.exceptions.ProxySchemeUnknown: Not supported proxy scheme 127.0.0.1
关于阿里云OpenAPI Python Core SDK的问题,从错误日志来看,似乎是代理设置存在问题,代理服务器的地址127.0.0.1
被识别为未知的代理协议方案。请确保正确设置了代理服务器地址及端口,格式应类似于http://127.0.0.1:port
或者https://127.0.0.1:port
。
从错误信息来看,问题出在代理设置上。错误提示为 "Not supported proxy scheme 127.0.0.1",意味着代理的协议不被支持。请检查您的代码中的代理设置,确保使用了正确的代理协议(如 http 或 https)。
如果您不需要使用代理,可以将代理设置为 None 或者删除相关代码。
说了推荐V2.0~, 这个问题感觉是
HTTPS_PROXY 或者 https_proxy
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。