help with failing build

Miroslav Suchy msuchy at redhat.com
Thu Jan 29 21:35:46 UTC 2015


On 01/29/2015 07:09 PM, Greg Sheremeta wrote:
> Interesting -- I don't see that behavior in curl, and we actually
> do have the proper cert installed for patternfly:

Interesting. From browser I see too:
Common Name (CN)	*.patternfly.org

Here is full reproducer from CLI:

python -c 'import requests; 
requests.get("http://www.patternfly.org/wp-content/uploads/rpmsrc/patternfly1-1.1.3-1.fc20.src.rpm")'

Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/usr/lib/python2.7/site-packages/requests/api.py", line 55, in get
     return request('get', url, **kwargs)
   File "/usr/lib/python2.7/site-packages/requests/api.py", line 44, in 
request
     return session.request(method=method, url=url, **kwargs)
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
456, in request
     resp = self.send(prep, **send_kwargs)
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
585, in send
     history = [resp for resp in gen] if allow_redirects else []
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
179, in resolve_redirects
     allow_redirects=False,
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
559, in send
     r = adapter.send(request, **kwargs)
   File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 
382, in send
     raise SSLError(e, request=request)
requests.exceptions.SSLError: hostname 'www.patternfly.org' doesn't 
match either of '*.rhcloud.com', 'rhcloud.com'

curl 
http://www.patternfly.org/wp-content/uploads/rpmsrc/patternfly1-1.1.3-1.fc20.src.rpm
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a 
href="https://www.patternfly.org/wp-content/uploads/rpmsrc/patternfly1-1.1.3-1.fc20.src.rpm">here</a>.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at www.patternfly.org Port 
80</address>
</body></html>


I am not sure what going on.
I will try to dive deeper into requests module of python.

Mirek


More information about the copr-devel mailing list