fzlee / alipay

Python Alipay(支付宝) SDK with SHA1/SHA256 support
Other
1.29k stars 378 forks source link

ValueError: nameserver is not an IP address or valid https URL #155

Closed beimusky closed 1 year ago

beimusky commented 1 year ago

使用celery后台异步进行业务处理,windows环境下,会提示这个。不知道要如何排查。 result = dc_alipay.server_api('alipay.trade.query',

File "D:\Program Files\Python310\lib\site-packages\python_alipay_sdk-3.2.0-py3.10.egg\alipay__init.py", line 228, in server_api return self.verified_sync_response(data, response_type) File "D:\Program Files\Python310\lib\site-packages\python_alipay_sdk-3.2.0-py3.10.egg\alipay\init__.py", line 611, in verified_sync_response raw_string = urlopen(url, timeout=self._config.timeout).read().decode()

image

fzlee commented 1 year ago

你这边有完整的截图吗,有一部分报错看不到

fzlee commented 1 year ago

为了验证这个问题是否与这个库有关,你可以在celery里面发起一个urllib 对百度的网络请求,看看是不是有同样的报错。 我感觉跟这个库本身无关