Author deivid
Recipients deivid
Date 2018-08-08.12:17:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533730627.83.0.56676864532.issue34357@psf.upfronthosting.co.za>
In-reply-to
Content
Hello!

Newbie to python here. I run into an issue with one desktop library, Cinnamon. Specifically this one: https://github.com/linuxmint/Cinnamon/issues/5926#issuecomment-411232144. This library uses the urllib in the standard library to download some json. But for some reason, it does not work for me. If however, I use [https://github.com/urllib3/urllib3](urllib3), it just works. It sounds like something the standard library could do better, so I'm reporting it here in case it's helpful.

A minimal example would be:


```python
from urllib.request import urlopen
 
data = urlopen("https://cinnamon-spices.linuxmint.com/json/applets.json").read()
 
print(data)
```

which just hangs for me. If I pass a specific number of bytes (less than ~65000), it works, but only downloads parts of the file.

Using the equivalent code in urllib3 works just fine:

```python
import urllib3

http = urllib3.PoolManager()
response = http.request('GET', 'https://cinnamon-spices.linuxmint.com/json/applets.json')
print(response.data)

```

This is on

```
Python 3.7.0 (default, Aug  7 2018, 23:24:26) 
[GCC 5.5.0 20171010] on linux
```

Any help troubleshooting this would be appreciated!
History
Date User Action Args
2018-08-08 12:17:07deividsetrecipients: + deivid
2018-08-08 12:17:07deividsetmessageid: <1533730627.83.0.56676864532.issue34357@psf.upfronthosting.co.za>
2018-08-08 12:17:07deividlinkissue34357 messages
2018-08-08 12:17:07deividcreate