![](/img/trans.png)
[英]pybitcointools - Permission Denied - <urlopen error [Errno 13] Permission denied>
[英]OpenShift - URLError: <urlopen error [Errno 13] Permission denied>
我對SUDS,python2.7和OpenShift有問題。 當我嘗試查詢Web服務WSDL時,拋出錯誤:
URLError: <urlopen error [Errno 13] Permission denied>
這是它生成錯誤的WSDL的地址。
suds.client import from Client
urlmps = ' http://www.mps.com.co:91/ArticuloDisponible.asmx?wsdl '
c = Client ( urlmps )
print c
URLError: <urlopen error [Errno 13] Permission denied>
當我嘗試從webservicex.net查詢是否可行。
suds.client import from Client
url = ' http://www.webservicex.net/globalweather.asmx?WSDL '
client = Client ( url )
print client
Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699 - 20100913
Service ( GlobalWeather ) tns = " http://www.webserviceX.NET "
Prefixes (0)
Ports ( 2):
( GlobalWeatherSoap )×
Methods ( 2):
GetCitiesByCountry ( xs : string CountryName , )
GetWeather ( xs : string CityName , xs : string CountryName , )
Types ( 0):
( GlobalWeatherSoap12 )
Methods ( 2):
GetCitiesByCountry ( xs : string CountryName , )
GetWeather ( xs : string CityName , xs : string CountryName , )
Types ( 0):
pastebin中的完整軌道錯誤。
http://pastebin.com/UgxtwPWP
注意:從本地計算機運行虛擬環境可以正常工作,我發現從OpenShift拒絕了端口91。
謝謝,馬里奧·帕多(Mario Pardo)
以防萬一其他人偶然發現這一點。 當前唯一可用的外部端口是8080 8443 80 443
可以使用以下端口范圍的內部IP綁定:15000-35530。所有其他端口均保留用於特定進程,以避免沖突。 由於我們綁定到內部IP,因此您將需要使用端口轉發來訪問它: https : //openshift.redhat.com/community/blogs/getting-started-with-port-forwarding-on-openshift
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.