url stringlengths 50 53 | repository_url stringclasses 1 value | labels_url stringlengths 64 67 | comments_url stringlengths 59 62 | events_url stringlengths 57 60 | html_url stringlengths 38 43 | id int64 597k 2.65B | node_id stringlengths 18 32 | number int64 1 6.83k | title stringlengths 1 296 | user dict | labels listlengths 0 5 | state stringclasses 2 values | locked bool 2 classes | assignee dict | assignees listlengths 0 4 | milestone dict | comments int64 0 211 | created_at stringlengths 20 20 | updated_at stringlengths 20 20 | closed_at stringlengths 20 20 ⌀ | author_association stringclasses 3 values | active_lock_reason stringclasses 4 values | body stringlengths 0 65.6k ⌀ | closed_by dict | reactions dict | timeline_url stringlengths 59 62 | performed_via_github_app null | state_reason stringclasses 3 values | draft bool 2 classes | pull_request dict | is_pull_request bool 2 classes | issue_comments listlengths 0 30 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/psf/requests/issues/328 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/328/labels{/name} | https://api.github.com/repos/psf/requests/issues/328/comments | https://api.github.com/repos/psf/requests/issues/328/events | https://github.com/psf/requests/pull/328 | 2,692,668 | MDExOlB1bGxSZXF1ZXN0NjQxNDgz | 328 | Implement automatic deflating when using response.iter_content. refs #327 | {
"avatar_url": "https://avatars.githubusercontent.com/u/187133?v=4",
"events_url": "https://api.github.com/users/gazpachoking/events{/privacy}",
"followers_url": "https://api.github.com/users/gazpachoking/followers",
"following_url": "https://api.github.com/users/gazpachoking/following{/other_user}",
"gists_url": "https://api.github.com/users/gazpachoking/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gazpachoking",
"id": 187133,
"login": "gazpachoking",
"node_id": "MDQ6VXNlcjE4NzEzMw==",
"organizations_url": "https://api.github.com/users/gazpachoking/orgs",
"received_events_url": "https://api.github.com/users/gazpachoking/received_events",
"repos_url": "https://api.github.com/users/gazpachoking/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gazpachoking/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gazpachoking/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gazpachoking",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-30T23:57:36Z | 2021-09-08T23:01:02Z | 2011-12-31T00:03:39Z | CONTRIBUTOR | resolved | Refactor response.iter_lines to use responset.iter_content.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/328/reactions"
} | https://api.github.com/repos/psf/requests/issues/328/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/328.diff",
"html_url": "https://github.com/psf/requests/pull/328",
"merged_at": "2011-12-31T00:03:39Z",
"patch_url": "https://github.com/psf/requests/pull/328.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/328"
} | true | [
"#327\n"
] |
https://api.github.com/repos/psf/requests/issues/327 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/327/labels{/name} | https://api.github.com/repos/psf/requests/issues/327/comments | https://api.github.com/repos/psf/requests/issues/327/events | https://github.com/psf/requests/issues/327 | 2,690,903 | MDU6SXNzdWUyNjkwOTAz | 327 | handle deflate encoding with iter_content | {
"avatar_url": "https://avatars.githubusercontent.com/u/187133?v=4",
"events_url": "https://api.github.com/users/gazpachoking/events{/privacy}",
"followers_url": "https://api.github.com/users/gazpachoking/followers",
"following_url": "https://api.github.com/users/gazpachoking/following{/other_user}",
"gists_url": "https://api.github.com/users/gazpachoking/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gazpachoking",
"id": 187133,
"login": "gazpachoking",
"node_id": "MDQ6VXNlcjE4NzEzMw==",
"organizations_url": "https://api.github.com/users/gazpachoking/orgs",
"received_events_url": "https://api.github.com/users/gazpachoking/received_events",
"repos_url": "https://api.github.com/users/gazpachoking/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gazpachoking/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gazpachoking/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gazpachoking",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-12-30T19:08:02Z | 2021-09-09T10:00:43Z | 2012-01-23T08:04:12Z | CONTRIBUTOR | resolved | Currently deflate compression is not handled when reading a response with response.iter_content(). Some way should be figured out to handle this situation.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/327/reactions"
} | https://api.github.com/repos/psf/requests/issues/327/timeline | null | completed | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/326 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/326/labels{/name} | https://api.github.com/repos/psf/requests/issues/326/comments | https://api.github.com/repos/psf/requests/issues/326/events | https://github.com/psf/requests/issues/326 | 2,686,461 | MDU6SXNzdWUyNjg2NDYx | 326 | `ImportError: No module named certifi` when using SSL | {
"avatar_url": "https://avatars.githubusercontent.com/u/221196?v=4",
"events_url": "https://api.github.com/users/mvanveen/events{/privacy}",
"followers_url": "https://api.github.com/users/mvanveen/followers",
"following_url": "https://api.github.com/users/mvanveen/following{/other_user}",
"gists_url": "https://api.github.com/users/mvanveen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mvanveen",
"id": 221196,
"login": "mvanveen",
"node_id": "MDQ6VXNlcjIyMTE5Ng==",
"organizations_url": "https://api.github.com/users/mvanveen/orgs",
"received_events_url": "https://api.github.com/users/mvanveen/received_events",
"repos_url": "https://api.github.com/users/mvanveen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mvanveen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mvanveen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mvanveen",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 23 | 2011-12-30T04:01:57Z | 2021-09-08T12:00:52Z | 2012-01-02T05:17:39Z | CONTRIBUTOR | resolved | I did a fresh clone of the requests repo and get the following traceback when I try to POST to the following endpoint:
``` python
>>> requests.post('https://api.dropbox.com/1/oauth/request_token')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "requests/api.py", line 83, in post
return request('post', url, data=data, **kwargs)
File "requests/api.py", line 38, in request
return s.request(method=method, url=url, **kwargs)
File "requests/sessions.py", line 200, in request
r.send(prefetch=prefetch)
File "requests/models.py", line 454, in send
cert_loc = __import__('certifi').where()
ImportError: No module named certifi
```
This was after I attempted to run `python setup.py build` and navigated to the `build/lib` directory.
I realize that Requests leverages the full breadth of existing http packages out there, but do I really need to download an external dependency just to get out through https? Is there some way a fallback stub could be put in the place of this package?
Overall I'm in love with Requests and think the job you guys are doing is awesome. Keep up the great work!
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/326/reactions"
} | https://api.github.com/repos/psf/requests/issues/326/timeline | null | completed | null | null | false | [
"Traditionally, requests has had 0 dependencies. With the new SSL support, a pem file must be distributed for standard validation. I'm using mozilla's. Mozilla's is GPL. So, certifi (which contains their pen file) is a separate module, and must be distributed as such. \n\nYou can make ssl requests without it, you j... |
https://api.github.com/repos/psf/requests/issues/325 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/325/labels{/name} | https://api.github.com/repos/psf/requests/issues/325/comments | https://api.github.com/repos/psf/requests/issues/325/events | https://github.com/psf/requests/issues/325 | 2,683,806 | MDU6SXNzdWUyNjgzODA2 | 325 | Clean way to silence warnings in connectionpool? | {
"avatar_url": "https://avatars.githubusercontent.com/u/59039?v=4",
"events_url": "https://api.github.com/users/dropwhile/events{/privacy}",
"followers_url": "https://api.github.com/users/dropwhile/followers",
"following_url": "https://api.github.com/users/dropwhile/following{/other_user}",
"gists_url": "https://api.github.com/users/dropwhile/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dropwhile",
"id": 59039,
"login": "dropwhile",
"node_id": "MDQ6VXNlcjU5MDM5",
"organizations_url": "https://api.github.com/users/dropwhile/orgs",
"received_events_url": "https://api.github.com/users/dropwhile/received_events",
"repos_url": "https://api.github.com/users/dropwhile/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dropwhile/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dropwhile/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dropwhile",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 6 | 2011-12-29T23:23:13Z | 2021-09-09T10:00:43Z | 2012-01-23T08:04:02Z | NONE | resolved | Logging messages in connectionpool.py are set to level warning, and there appears to be no clean (eg. in config/defaults) way to silence them (please correct me if I am wrong about that!).
Currently, after importing requests I am doing this:
```
logging.getLogger('requests.packages.urllib3').setLevel(logging.CRITICAL)
```
It seems a bit inelegant though. Is there a better way?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/325/reactions"
} | https://api.github.com/repos/psf/requests/issues/325/timeline | null | completed | null | null | false | [
"This is not inelegant in any way. That's how logging module is supposed to work.\n",
"I realize that is how it works (or I wouldn't have known to do it!). :P\n\nAs to 'inelegant', it just seemed that way to me because urllib3 is kind of a submodule of requests, and is otherwise relatively hidden underneath reque... |
https://api.github.com/repos/psf/requests/issues/324 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/324/labels{/name} | https://api.github.com/repos/psf/requests/issues/324/comments | https://api.github.com/repos/psf/requests/issues/324/events | https://github.com/psf/requests/issues/324 | 2,682,703 | MDU6SXNzdWUyNjgyNzAz | 324 | SOCKS proxy support | {
"avatar_url": "https://avatars.githubusercontent.com/u/692970?v=4",
"events_url": "https://api.github.com/users/thefinn93/events{/privacy}",
"followers_url": "https://api.github.com/users/thefinn93/followers",
"following_url": "https://api.github.com/users/thefinn93/following{/other_user}",
"gists_url": "https://api.github.com/users/thefinn93/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thefinn93",
"id": 692970,
"login": "thefinn93",
"node_id": "MDQ6VXNlcjY5Mjk3MA==",
"organizations_url": "https://api.github.com/users/thefinn93/orgs",
"received_events_url": "https://api.github.com/users/thefinn93/received_events",
"repos_url": "https://api.github.com/users/thefinn93/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thefinn93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thefinn93/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thefinn93",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-12-29T21:04:43Z | 2021-09-09T09:00:42Z | 2012-03-16T22:59:24Z | NONE | resolved | Maybe this exists and I just can't find it, but it'd be awfully nice if requests had support for SOCKS proxies. If this exists already, could someone give me a simple example? Thanks.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/692970?v=4",
"events_url": "https://api.github.com/users/thefinn93/events{/privacy}",
"followers_url": "https://api.github.com/users/thefinn93/followers",
"following_url": "https://api.github.com/users/thefinn93/following{/other_user}",
"gists_url": "https://api.github.com/users/thefinn93/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thefinn93",
"id": 692970,
"login": "thefinn93",
"node_id": "MDQ6VXNlcjY5Mjk3MA==",
"organizations_url": "https://api.github.com/users/thefinn93/orgs",
"received_events_url": "https://api.github.com/users/thefinn93/received_events",
"repos_url": "https://api.github.com/users/thefinn93/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thefinn93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thefinn93/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thefinn93",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/324/reactions"
} | https://api.github.com/repos/psf/requests/issues/324/timeline | null | completed | null | null | false | [
"I patched in socks5 support in my fork (https://github.com/kbatten/requests/commit/fb4676bcabcb53471272b6bfbecada7ce6161be6). I'm not sure if this specific implementation is appropriate for Requests though because it bypasses the proxies={'scheme':'host:port'} method and instead globally sets up the proxy to handl... |
https://api.github.com/repos/psf/requests/issues/323 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/323/labels{/name} | https://api.github.com/repos/psf/requests/issues/323/comments | https://api.github.com/repos/psf/requests/issues/323/events | https://github.com/psf/requests/issues/323 | 2,681,784 | MDU6SXNzdWUyNjgxNzg0 | 323 | Add ending slash to raw domains before query insertion | {
"avatar_url": "https://avatars.githubusercontent.com/u/1292974?v=4",
"events_url": "https://api.github.com/users/schluffo/events{/privacy}",
"followers_url": "https://api.github.com/users/schluffo/followers",
"following_url": "https://api.github.com/users/schluffo/following{/other_user}",
"gists_url": "https://api.github.com/users/schluffo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/schluffo",
"id": 1292974,
"login": "schluffo",
"node_id": "MDQ6VXNlcjEyOTI5NzQ=",
"organizations_url": "https://api.github.com/users/schluffo/orgs",
"received_events_url": "https://api.github.com/users/schluffo/received_events",
"repos_url": "https://api.github.com/users/schluffo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/schluffo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/schluffo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/schluffo",
"user_view_type": "public"
} | [] | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | null | 6 | 2011-12-29T19:06:08Z | 2021-09-09T07:05:22Z | 2012-07-27T06:07:45Z | NONE | resolved | Method 'get' with not empty params ends with error:
File "/usr/lib/python2.6/site-packages/requests/packages/urllib3/connectionpool.py", line 524, in get_host
port = int(port)
ValueError: invalid literal for int() with base 10: '7766?test=s'
It is probably caused by invalid parsing of port in method get_host.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/323/reactions"
} | https://api.github.com/repos/psf/requests/issues/323/timeline | null | completed | null | null | false | [
"Can you attach some code to reproduce?\n",
"import requests\nrequests.get(\"http://localhost:80\", params=dict(test=\"s\")) \n",
"Ah, we should fix that. Nice catch.\n\nTechnically, that's an invalid URL. Try this:\n\n``` python\nrequests.get(\"http://localhost:80/\", params=dict(test=\"s\"))\n```\n",
"Ok, t... |
https://api.github.com/repos/psf/requests/issues/322 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/322/labels{/name} | https://api.github.com/repos/psf/requests/issues/322/comments | https://api.github.com/repos/psf/requests/issues/322/events | https://github.com/psf/requests/issues/322 | 2,674,449 | MDU6SXNzdWUyNjc0NDQ5 | 322 | Test failures with requests 0.9.0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/176984?v=4",
"events_url": "https://api.github.com/users/jbergstroem/events{/privacy}",
"followers_url": "https://api.github.com/users/jbergstroem/followers",
"following_url": "https://api.github.com/users/jbergstroem/following{/other_user}",
"gists_url": "https://api.github.com/users/jbergstroem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbergstroem",
"id": 176984,
"login": "jbergstroem",
"node_id": "MDQ6VXNlcjE3Njk4NA==",
"organizations_url": "https://api.github.com/users/jbergstroem/orgs",
"received_events_url": "https://api.github.com/users/jbergstroem/received_events",
"repos_url": "https://api.github.com/users/jbergstroem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbergstroem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbergstroem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbergstroem",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-28T20:27:48Z | 2021-09-09T10:00:47Z | 2011-12-28T20:34:36Z | CONTRIBUTOR | resolved | I get lots of these errors (most likely related to gunicorn starting correctly):
<pre>
# PYTHONPATH=build/lib python test_requests.py
EEEEEEEEEEEEEEEEEE.E..EEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: test_BASICAUTH_HTTP_200_OK_GET (__main__.RequestsTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_requests.py", line 176, in test_BASICAUTH_HTTP_200_OK_GET
r = requests.get(url, auth=auth)
File "/home/jbergstroem/requests/requests/api.py", line 50, in get
return request('get', url, **kwargs)
File "/home/jbergstroem/requests/requests/api.py", line 38, in request
return s.request(method=method, url=url, **kwargs)
File "/home/jbergstroem/requests/requests/sessions.py", line 200, in request
r.send(prefetch=prefetch)
File "/home/jbergstroem/requests/requests/models.py", line 498, in send
raise ConnectionError(e)
ConnectionError: Max retries exceeded for url: /basic-auth/user/pass
</pre>
requests 0.9.0, envoy 0.0.2, gunicorn 0.13.4, certifi 0.0.6. tested on python2.5-2.7.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/322/reactions"
} | https://api.github.com/repos/psf/requests/issues/322/timeline | null | completed | null | null | false | [
"looks like you aren't running httpbin correctly.\n"
] |
https://api.github.com/repos/psf/requests/issues/321 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/321/labels{/name} | https://api.github.com/repos/psf/requests/issues/321/comments | https://api.github.com/repos/psf/requests/issues/321/events | https://github.com/psf/requests/issues/321 | 2,671,113 | MDU6SXNzdWUyNjcxMTEz | 321 | `requests.get('https://httpbin.org', verify=True)` fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/24753?v=4",
"events_url": "https://api.github.com/users/zed/events{/privacy}",
"followers_url": "https://api.github.com/users/zed/followers",
"following_url": "https://api.github.com/users/zed/following{/other_user}",
"gists_url": "https://api.github.com/users/zed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zed",
"id": 24753,
"login": "zed",
"node_id": "MDQ6VXNlcjI0NzUz",
"organizations_url": "https://api.github.com/users/zed/orgs",
"received_events_url": "https://api.github.com/users/zed/received_events",
"repos_url": "https://api.github.com/users/zed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zed",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-12-28T13:09:34Z | 2021-09-09T10:00:46Z | 2011-12-28T20:48:01Z | NONE | resolved | Example from the docs doesn't work http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification
```
>>> import requests
>>> requests.get('https://httpbin.org', verify=True)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/path/to/lib/python2.7/site-packages/requests/api.py", line
50, in get
return request('get', url, **kwargs)
File "/path/to/lib/python2.7/site-packages/requests/api.py", line
38, in request
return s.request(method=method, url=url, **kwargs)
File "/path/to/lib/python2.7/site-packages/requests/sessions.py",
line 200, in request
r.send(prefetch=prefetch)
File "/path/to/lib/python2.7/site-packages/requests/models.py", li
ne 502, in send
raise SSLError(e)
SSLError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certi
ficate verify failed
>>> requests.__version__
'0.9.0'
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.0e 6 Sep 2011'
```
<!-- -->
```
$ pip freeze | grep certifi
certifi==0.0.6
$ python -mplatform
Linux-3.0.0-14-generic-i686-with-Ubuntu-11.10-oneiric
```
I've also tried to specify path to httpbin certificate:
```
>>> requests.get('https://httpbin.org', verify='./httpbin.pem')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/path/to/lib/python2.7/site-packages/requests/api.py", line
50, in get
return request('get', url, **kwargs)
File "/path/to/lib/python2.7/site-packages/requests/api.py", line
38, in request
return s.request(method=method, url=url, **kwargs)
File "/path/to/lib/python2.7/site-packages/requests/sessions.py",
line 200, in request
r.send(prefetch=prefetch)
File "/path/to/lib/python2.7/site-packages/requests/models.py", li
ne 502, in send
raise SSLError(e)
SSLError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certi
ficate verify failed
>>> print open('./httpbin.pem').read(),
-----BEGIN CERTIFICATE-----
MIIEPjCCAyagAwIBAgIDBEmFMA0GCSqGSIb3DQEBBQUAMDwxCzAJBgNVBAYTAlVT
MRcwFQYDVQQKEw5HZW9UcnVzdCwgSW5jLjEUMBIGA1UEAxMLUmFwaWRTU0wgQ0Ew
HhcNMTExMjA1MDc0NzE4WhcNMTIwOTI3MTQwOTIxWjCB3TEpMCcGA1UEBRMgVmZQ
ZmpuSlVKWi9MZkVEdkVPd1l1LzJWWDJKZzEvQVcxCzAJBgNVBAYTAlVTMRQwEgYD
VQQKEwtodHRwYmluLm9yZzETMBEGA1UECxMKR1QxNjA2ODExMjExMC8GA1UECxMo
U2VlIHd3dy5yYXBpZHNzbC5jb20vcmVzb3VyY2VzL2NwcyAoYykxMTEvMC0GA1UE
CxMmRG9tYWluIENvbnRyb2wgVmFsaWRhdGVkIC0gUmFwaWRTU0woUikxFDASBgNV
BAMTC2h0dHBiaW4ub3JnMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHxo+T
CKPwIVglz3VpmkptvP/JAd1pLwyVafQwixGY779wuRwMwF3GRqwfHk2BNMuXWhw2
FwAoLT6oRjpFEGT/sbh5AY3V+qf+bXyQfxebFvjME5eA0hKb8HXnHAtmqWaDUs7k
yItMWUSAGi+vBiUjwSLTrWdslNWtKxD5KXBJNwIDAQABo4IBKTCCASUwHwYDVR0j
BBgwFoAUa2k9ahhCSt2PAmU5/TUkhniRFjAwDgYDVR0PAQH/BAQDAgWgMB0GA1Ud
JQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAWBgNVHREEDzANggtodHRwYmluLm9y
ZzBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vcmFwaWRzc2wtY3JsLmdlb3RydXN0
LmNvbS9jcmxzL3JhcGlkc3NsLmNybDAdBgNVHQ4EFgQUTZ2ILuE9CsUsoMX1uUGu
n+kbHBgwDAYDVR0TAQH/BAIwADBJBggrBgEFBQcBAQQ9MDswOQYIKwYBBQUHMAKG
LWh0dHA6Ly9yYXBpZHNzbC1haWEuZ2VvdHJ1c3QuY29tL3JhcGlkc3NsLmNydDAN
BgkqhkiG9w0BAQUFAAOCAQEAdLSwICRSG3vSSxBVdF/vZ1rAURU6ztOFaYiPC6jg
GWdNNOwljG4tkf5bCGh6XJjlMtLosz7QtcKprTvoMuCYSTKR5VTxJqgWbdhds4oU
nBnI0YzcgZR9qtVItCaZfl5487gYuIertX8le0cJBAG+X8I14AKAsBGJ/+HFbtRV
aWa4M7Faw6jTLxrc/NjiCFSs4RB38vpLkcbUa0jOTN4czPmSgWJHiaEnleUQ+AO9
L+0f+4Y1HULBFJAOJ1VjIdY0JEt67CFulkdbMXZ8qrGldpWYLlHqsoUH1xYS9g0F
RufOesXsqmteRxjKo8KocDpxw+RSFvyJL4sRBzBobHLWyg==
-----END CERTIFICATE-----
```
Firefox for `https://httpbin.org` says:
```
httpbin.org uses an invalid security certificate.
The certificate is not trusted because no issuer chain was provided.
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/321/reactions"
} | https://api.github.com/repos/psf/requests/issues/321/timeline | null | completed | null | null | false | [
"I can reproduce this here:\n\n```\n$ pip freeze | grep certifi\npip freeze | grep certifi\n$ python -mplatform\nLinux-3.1.5-1-ARCH-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-glibc2.2.5\n```\n",
"Sorry, httpbin's cert is a little bit messed up. Depends on the ssl version.\n"
] |
https://api.github.com/repos/psf/requests/issues/320 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/320/labels{/name} | https://api.github.com/repos/psf/requests/issues/320/comments | https://api.github.com/repos/psf/requests/issues/320/events | https://github.com/psf/requests/issues/320 | 2,659,735 | MDU6SXNzdWUyNjU5NzM1 | 320 | mention binary mode for saving files | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-12-26T20:11:50Z | 2021-09-09T07:05:22Z | 2012-07-27T06:07:49Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/320/reactions"
} | https://api.github.com/repos/psf/requests/issues/320/timeline | null | completed | null | null | false | [] | |
https://api.github.com/repos/psf/requests/issues/319 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/319/labels{/name} | https://api.github.com/repos/psf/requests/issues/319/comments | https://api.github.com/repos/psf/requests/issues/319/events | https://github.com/psf/requests/issues/319 | 2,657,111 | MDU6SXNzdWUyNjU3MTEx | 319 | Timeout when using authenticated proxy for https request | {
"avatar_url": "https://avatars.githubusercontent.com/u/118963?v=4",
"events_url": "https://api.github.com/users/j0hnsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/j0hnsmith/followers",
"following_url": "https://api.github.com/users/j0hnsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/j0hnsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/j0hnsmith",
"id": 118963,
"login": "j0hnsmith",
"node_id": "MDQ6VXNlcjExODk2Mw==",
"organizations_url": "https://api.github.com/users/j0hnsmith/orgs",
"received_events_url": "https://api.github.com/users/j0hnsmith/received_events",
"repos_url": "https://api.github.com/users/j0hnsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/j0hnsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/j0hnsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/j0hnsmith",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-12-26T07:14:10Z | 2021-09-09T07:05:22Z | 2012-07-27T06:08:02Z | NONE | resolved | I get a timeout when I run this
```
import requests
proxies = {
'https': 'https://username:password@ip:port',
}
resp = requests.get('https://www.google.com/', proxies=proxies)
print resp.status_code`
```
This worked in 0.7.6, then 0.8.0 - 0.8.5 there's the `ValueError: invalid literal for int() with base 10: 'user:pass@ip:port'` that contains the proxy details. Then 0.8.6/7 it just takes ages then times out. Here's the stacktrace if I kill it manually
```
^CTraceback (most recent call last):
File "test.py", line 6, in <module>
resp = requests.get('https://www.google.com/', proxies=proxies)
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/api.py", line 79, in get
return request('get', url, **kwargs)
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/api.py", line 66, in request
prefetch=prefetch
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/sessions.py", line 191, in request
r.send(prefetch=prefetch)
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/models.py", line 462, in send
timeout=self.timeout,
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/packages/urllib3/poolmanager.py", line 123, in urlopen
return self.proxy_pool.urlopen(method, url, **kw)
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 334, in urlopen
body=body, headers=headers)
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 215, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 941, in request
self._send_request(method, url, body, headers)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 975, in _send_request
self.endheaders(body)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 937, in endheaders
self._send_output(message_body)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 797, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 759, in send
self.connect()
File "/Users/peter/.virtualenvs/my_project/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 72, in connect
ca_certs=self.ca_certs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 344, in wrap_socket
ciphers=ciphers)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 121, in __init__
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 283, in do_handshake
self._sslobj.do_handshake()
KeyboardInterrupt
```
Here's where the error happens https://github.com/kennethreitz/requests/blob/develop/requests/models.py#L469 but I'm not sure of the cause. I'm pretty sure this is related to #293.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/319/reactions"
} | https://api.github.com/repos/psf/requests/issues/319/timeline | null | completed | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/318 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/318/labels{/name} | https://api.github.com/repos/psf/requests/issues/318/comments | https://api.github.com/repos/psf/requests/issues/318/events | https://github.com/psf/requests/pull/318 | 2,650,596 | MDExOlB1bGxSZXF1ZXN0NjI4Mjg3 | 318 | Make safe_mode handle exceptions more consistently | {
"avatar_url": "https://avatars.githubusercontent.com/u/376462?v=4",
"events_url": "https://api.github.com/users/atdt/events{/privacy}",
"followers_url": "https://api.github.com/users/atdt/followers",
"following_url": "https://api.github.com/users/atdt/following{/other_user}",
"gists_url": "https://api.github.com/users/atdt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/atdt",
"id": 376462,
"login": "atdt",
"node_id": "MDQ6VXNlcjM3NjQ2Mg==",
"organizations_url": "https://api.github.com/users/atdt/orgs",
"received_events_url": "https://api.github.com/users/atdt/received_events",
"repos_url": "https://api.github.com/users/atdt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/atdt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atdt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/atdt",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-12-23T22:07:30Z | 2021-09-08T13:06:06Z | 2011-12-23T22:24:35Z | CONTRIBUTOR | resolved | I'm not sure how I feel about this patch, but I thought I'd submit a pull request regardless because if nothing else it raises a couple of issues that need some attention, IMHO.
Instead of passing None to `_build_response` when a request failed in safe mode, we now pass an empty `urllib3.HTTPResponse` object instead. One advantage is that you no longer need to check for None in the `iter_*` methods, because reading the bare response works as expected (i.e., you end up with an empty iterator). Having a regular object is also nice because you can save suppressed exceptions in an attribute before passing it to `_build_response`, which allows us to avoid breaking the current pattern of having the nested build function there build a `requests.Response` by inspecting attributes of the raw response.
I took out the optional `is_error` arg in `_build_response` because it was not getting used anywhere, nor was it part of the public API.
But: is it a good idea to store suppressed exceptions in safe mode on `Response.error`? This makes `Response.ok` work as expected (or at least as _I_ expect :P), but maybe this encourages bad habits. If you need to know what exceptions (if any) were raised by your HTTP request, you probably shouldn't be suppressing them.
On the other hand, the current implementation seems a little inconsistent:
``` python
>>> import requests
>>> r = requests.get('http://__bad_url__/', config=dict(safe_mode=True))
>>> r.ok
True
>>> r = requests.get('http://httpbin.org/status/501', config=dict(safe_mode=True))
>>> r.ok
False
```
Thoughts?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/318/reactions"
} | https://api.github.com/repos/psf/requests/issues/318/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/318.diff",
"html_url": "https://github.com/psf/requests/pull/318",
"merged_at": "2011-12-23T22:24:35Z",
"patch_url": "https://github.com/psf/requests/pull/318.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/318"
} | true | [
"Thanks for the thoughts — I'm glad someone noticed. I lot of these oddities that you noticed are remnants from old iterations of requests that need to be cleaned up. \n",
"I'm going to accept this. I think it's a good step going forward.\n",
"Thanks. I like this a lot.\n\nLast thing to do is have safe_mode be ... |
https://api.github.com/repos/psf/requests/issues/317 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/317/labels{/name} | https://api.github.com/repos/psf/requests/issues/317/comments | https://api.github.com/repos/psf/requests/issues/317/events | https://github.com/psf/requests/pull/317 | 2,644,228 | MDExOlB1bGxSZXF1ZXN0NjI2MDQ0 | 317 | fix iteration on null responses in safe_mode | {
"avatar_url": "https://avatars.githubusercontent.com/u/376462?v=4",
"events_url": "https://api.github.com/users/atdt/events{/privacy}",
"followers_url": "https://api.github.com/users/atdt/followers",
"following_url": "https://api.github.com/users/atdt/following{/other_user}",
"gists_url": "https://api.github.com/users/atdt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/atdt",
"id": 376462,
"login": "atdt",
"node_id": "MDQ6VXNlcjM3NjQ2Mg==",
"organizations_url": "https://api.github.com/users/atdt/orgs",
"received_events_url": "https://api.github.com/users/atdt/received_events",
"repos_url": "https://api.github.com/users/atdt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/atdt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atdt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/atdt",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-23T02:43:30Z | 2021-09-08T13:06:05Z | 2011-12-23T02:45:10Z | CONTRIBUTOR | resolved | Previously, calling `iter_lines` or `iter_content` on a blank response caused an `AttributeError` to be thrown, because it called `self.raw.read()` where `raw` was `None`. In my opinion, the correct behavior should be to return an empty iterator.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/317/reactions"
} | https://api.github.com/repos/psf/requests/issues/317/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/317.diff",
"html_url": "https://github.com/psf/requests/pull/317",
"merged_at": "2011-12-23T02:45:10Z",
"patch_url": "https://github.com/psf/requests/pull/317.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/317"
} | true | [
"Excellent, thanks!\n\nFor the record, I commend you for adding tests to all of your pull requests. I wish everyone was like you.\n\n:sparkles: :cake: :sparkles:\n"
] |
https://api.github.com/repos/psf/requests/issues/316 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/316/labels{/name} | https://api.github.com/repos/psf/requests/issues/316/comments | https://api.github.com/repos/psf/requests/issues/316/events | https://github.com/psf/requests/pull/316 | 2,642,280 | MDExOlB1bGxSZXF1ZXN0NjI1MzAy | 316 | Make safe_mode play nice with timeout (fixes #312) | {
"avatar_url": "https://avatars.githubusercontent.com/u/376462?v=4",
"events_url": "https://api.github.com/users/atdt/events{/privacy}",
"followers_url": "https://api.github.com/users/atdt/followers",
"following_url": "https://api.github.com/users/atdt/following{/other_user}",
"gists_url": "https://api.github.com/users/atdt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/atdt",
"id": 376462,
"login": "atdt",
"node_id": "MDQ6VXNlcjM3NjQ2Mg==",
"organizations_url": "https://api.github.com/users/atdt/orgs",
"received_events_url": "https://api.github.com/users/atdt/received_events",
"repos_url": "https://api.github.com/users/atdt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/atdt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atdt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/atdt",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-12-22T21:53:36Z | 2021-09-08T13:06:07Z | 2011-12-22T23:17:45Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/316/reactions"
} | https://api.github.com/repos/psf/requests/issues/316/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/316.diff",
"html_url": "https://github.com/psf/requests/pull/316",
"merged_at": "2011-12-22T23:17:45Z",
"patch_url": "https://github.com/psf/requests/pull/316.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/316"
} | true | [
":sparkles: :cake: :sparkles:\n",
":sparkles: :cake: :sparkles:\n"
] | |
https://api.github.com/repos/psf/requests/issues/315 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/315/labels{/name} | https://api.github.com/repos/psf/requests/issues/315/comments | https://api.github.com/repos/psf/requests/issues/315/events | https://github.com/psf/requests/pull/315 | 2,621,807 | MDExOlB1bGxSZXF1ZXN0NjE3ODYx | 315 | Fix for #30: options for certificate validation and client certs. | {
"avatar_url": "https://avatars.githubusercontent.com/u/39950?v=4",
"events_url": "https://api.github.com/users/sciyoshi/events{/privacy}",
"followers_url": "https://api.github.com/users/sciyoshi/followers",
"following_url": "https://api.github.com/users/sciyoshi/following{/other_user}",
"gists_url": "https://api.github.com/users/sciyoshi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sciyoshi",
"id": 39950,
"login": "sciyoshi",
"node_id": "MDQ6VXNlcjM5OTUw",
"organizations_url": "https://api.github.com/users/sciyoshi/orgs",
"received_events_url": "https://api.github.com/users/sciyoshi/received_events",
"repos_url": "https://api.github.com/users/sciyoshi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sciyoshi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sciyoshi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sciyoshi",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 4 | 2011-12-21T05:16:06Z | 2021-09-08T13:06:04Z | 2011-12-28T09:20:24Z | NONE | resolved | Quick fix for issue #30. Note that this doesn't do hostname matching when verifying, although this is an issue in urllib3 - maybe it should use [`backports.ssl_match_hostname`](http://pypi.python.org/pypi/backports.ssl_match_hostname/) if available.
For example, you can set the global `ca_certs` and enable cert verification with
```
import requests
requests.defaults.defaults['verify_cert'] = True
requests.defaults.defaults['ca_certs'] = '/etc/ssl/certs/ca-certificates.crt'
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/315/reactions"
} | https://api.github.com/repos/psf/requests/issues/315/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/315.diff",
"html_url": "https://github.com/psf/requests/pull/315",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/315.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/315"
} | true | [
"Awesome!\n\nThose default dicts shouldn't be touched by any users. There needs to be a better API for this.\n",
"> Those default dicts shouldn't be touched by any users.\n\nThis would be not quite pythonic I guess :)\n",
"shazow/urllib3#25\n",
"Requests v0.8.8 was just released that includes ssl verification... |
https://api.github.com/repos/psf/requests/issues/314 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/314/labels{/name} | https://api.github.com/repos/psf/requests/issues/314/comments | https://api.github.com/repos/psf/requests/issues/314/events | https://github.com/psf/requests/issues/314 | 2,611,645 | MDU6SXNzdWUyNjExNjQ1 | 314 | Exceptions inside greenlets | {
"avatar_url": "https://avatars.githubusercontent.com/u/6988?v=4",
"events_url": "https://api.github.com/users/j4mie/events{/privacy}",
"followers_url": "https://api.github.com/users/j4mie/followers",
"following_url": "https://api.github.com/users/j4mie/following{/other_user}",
"gists_url": "https://api.github.com/users/j4mie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/j4mie",
"id": 6988,
"login": "j4mie",
"node_id": "MDQ6VXNlcjY5ODg=",
"organizations_url": "https://api.github.com/users/j4mie/orgs",
"received_events_url": "https://api.github.com/users/j4mie/received_events",
"repos_url": "https://api.github.com/users/j4mie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/j4mie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/j4mie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/j4mie",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-12-20T10:59:48Z | 2021-09-09T09:00:42Z | 2011-12-28T09:21:19Z | NONE | resolved | Hi,
When using the async stuff, how do I correctly handle an exception that occurs inside the greenlet?
```
Traceback (most recent call last):
File "/Users/jamie/.virtualenvs/pulse/lib/python2.7/site-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/Users/jamie/.virtualenvs/pulse/lib/python2.7/site-packages/requests/async.py", line 50, in send
r.send()
File "/Users/jamie/.virtualenvs/pulse/lib/python2.7/site-packages/requests/models.py", line 454, in send
raise ConnectionError(e)
ConnectionError: Max retries exceeded for url: /followers/ids.json?user_id=21762493
<Greenlet at 0x111fe05f0: send(<Request [GET]>)> failed with ConnectionError
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/314/reactions"
} | https://api.github.com/repos/psf/requests/issues/314/timeline | null | completed | null | null | false | [
"aync requests now have `safe_mode` enabled by default.\n",
"This doesn´t solve the problem. Same issue here. Adding \"ConnectionError\" on line 650 in models.py solves the problem, buts it´s just a workaround\n"
] |
https://api.github.com/repos/psf/requests/issues/313 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/313/labels{/name} | https://api.github.com/repos/psf/requests/issues/313/comments | https://api.github.com/repos/psf/requests/issues/313/events | https://github.com/psf/requests/pull/313 | 2,609,961 | MDExOlB1bGxSZXF1ZXN0NjEzMzE0 | 313 | fix bug that causes iter_lines to truncate content | {
"avatar_url": "https://avatars.githubusercontent.com/u/376462?v=4",
"events_url": "https://api.github.com/users/atdt/events{/privacy}",
"followers_url": "https://api.github.com/users/atdt/followers",
"following_url": "https://api.github.com/users/atdt/following{/other_user}",
"gists_url": "https://api.github.com/users/atdt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/atdt",
"id": 376462,
"login": "atdt",
"node_id": "MDQ6VXNlcjM3NjQ2Mg==",
"organizations_url": "https://api.github.com/users/atdt/orgs",
"received_events_url": "https://api.github.com/users/atdt/received_events",
"repos_url": "https://api.github.com/users/atdt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/atdt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atdt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/atdt",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-20T07:05:47Z | 2021-09-08T13:06:04Z | 2011-12-22T16:56:05Z | CONTRIBUTOR | resolved | Currently, if the response does not terminate with a newline, iter_lines truncates the trailing remainder.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/313/reactions"
} | https://api.github.com/repos/psf/requests/issues/313/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/313.diff",
"html_url": "https://github.com/psf/requests/pull/313",
"merged_at": "2011-12-22T16:56:05Z",
"patch_url": "https://github.com/psf/requests/pull/313.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/313"
} | true | [
"Thanks for the awesome fix!\n"
] |
https://api.github.com/repos/psf/requests/issues/312 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/312/labels{/name} | https://api.github.com/repos/psf/requests/issues/312/comments | https://api.github.com/repos/psf/requests/issues/312/events | https://github.com/psf/requests/issues/312 | 2,608,975 | MDU6SXNzdWUyNjA4OTc1 | 312 | Unhandled exception on timeout in safe_mode | {
"avatar_url": "https://avatars.githubusercontent.com/u/187133?v=4",
"events_url": "https://api.github.com/users/gazpachoking/events{/privacy}",
"followers_url": "https://api.github.com/users/gazpachoking/followers",
"following_url": "https://api.github.com/users/gazpachoking/following{/other_user}",
"gists_url": "https://api.github.com/users/gazpachoking/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gazpachoking",
"id": 187133,
"login": "gazpachoking",
"node_id": "MDQ6VXNlcjE4NzEzMw==",
"organizations_url": "https://api.github.com/users/gazpachoking/orgs",
"received_events_url": "https://api.github.com/users/gazpachoking/received_events",
"repos_url": "https://api.github.com/users/gazpachoking/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gazpachoking/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gazpachoking/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gazpachoking",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-12-20T03:28:28Z | 2021-09-09T10:00:47Z | 2011-12-22T23:17:45Z | CONTRIBUTOR | resolved | If safe_mode is specified, and a timeout occurs, the following error is raised:
``` python
>>>requests.get('http://timeout.com', timeout=0.01, config=dict(safe_mode=True))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win32\egg\requests\api.py", line 79, in get
File "build\bdist.win32\egg\requests\api.py", line 66, in request
File "build\bdist.win32\egg\requests\sessions.py", line 191, in request
File "build\bdist.win32\egg\requests\models.py", line 468, in send
UnboundLocalError: local variable 'r' referenced before assignment
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/312/reactions"
} | https://api.github.com/repos/psf/requests/issues/312/timeline | null | completed | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/311 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/311/labels{/name} | https://api.github.com/repos/psf/requests/issues/311/comments | https://api.github.com/repos/psf/requests/issues/311/events | https://github.com/psf/requests/pull/311 | 2,602,685 | MDExOlB1bGxSZXF1ZXN0NjEwMzc1 | 311 | Add Twitter Streaming API example to Advanced Usage docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/18160?v=4",
"events_url": "https://api.github.com/users/jemerick/events{/privacy}",
"followers_url": "https://api.github.com/users/jemerick/followers",
"following_url": "https://api.github.com/users/jemerick/following{/other_user}",
"gists_url": "https://api.github.com/users/jemerick/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jemerick",
"id": 18160,
"login": "jemerick",
"node_id": "MDQ6VXNlcjE4MTYw",
"organizations_url": "https://api.github.com/users/jemerick/orgs",
"received_events_url": "https://api.github.com/users/jemerick/received_events",
"repos_url": "https://api.github.com/users/jemerick/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jemerick/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jemerick/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jemerick",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-19T16:46:19Z | 2021-09-08T13:06:03Z | 2011-12-19T16:51:15Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/311/reactions"
} | https://api.github.com/repos/psf/requests/issues/311/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/311.diff",
"html_url": "https://github.com/psf/requests/pull/311",
"merged_at": "2011-12-19T16:51:15Z",
"patch_url": "https://github.com/psf/requests/pull/311.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/311"
} | true | [
"Beautiful. Thanks!\n"
] | |
https://api.github.com/repos/psf/requests/issues/310 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/310/labels{/name} | https://api.github.com/repos/psf/requests/issues/310/comments | https://api.github.com/repos/psf/requests/issues/310/events | https://github.com/psf/requests/issues/310 | 2,597,235 | MDU6SXNzdWUyNTk3MjM1 | 310 | Encode data according to Content-Type. | {
"avatar_url": "https://avatars.githubusercontent.com/u/100702?v=4",
"events_url": "https://api.github.com/users/jorgeecardona/events{/privacy}",
"followers_url": "https://api.github.com/users/jorgeecardona/followers",
"following_url": "https://api.github.com/users/jorgeecardona/following{/other_user}",
"gists_url": "https://api.github.com/users/jorgeecardona/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorgeecardona",
"id": 100702,
"login": "jorgeecardona",
"node_id": "MDQ6VXNlcjEwMDcwMg==",
"organizations_url": "https://api.github.com/users/jorgeecardona/orgs",
"received_events_url": "https://api.github.com/users/jorgeecardona/received_events",
"repos_url": "https://api.github.com/users/jorgeecardona/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorgeecardona/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorgeecardona/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorgeecardona",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 18 | 2011-12-19T06:16:33Z | 2021-09-09T10:00:47Z | 2011-12-19T06:18:14Z | NONE | resolved | Hi,
It would be great that a request with a particular content-type would encode the "data" to the type given by the header Content-Type.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/310/reactions"
} | https://api.github.com/repos/psf/requests/issues/310/timeline | null | completed | null | null | false | [
"Don't mean to be blunt, but... this is out of scope. \n",
"It's been heavily considered before, but it's definitely a step in the wrong direction.\n",
"Why? this will make my (and assume others) life really easy, If there\nis already some decoding in the response with the content-type, why is\na wrong directio... |
https://api.github.com/repos/psf/requests/issues/309 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/309/labels{/name} | https://api.github.com/repos/psf/requests/issues/309/comments | https://api.github.com/repos/psf/requests/issues/309/events | https://github.com/psf/requests/pull/309 | 2,590,245 | MDExOlB1bGxSZXF1ZXN0NjA2NTQ2 | 309 | Add Proxy Authorization Support | {
"avatar_url": "https://avatars.githubusercontent.com/u/1010392?v=4",
"events_url": "https://api.github.com/users/chrisguitarguy/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisguitarguy/followers",
"following_url": "https://api.github.com/users/chrisguitarguy/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisguitarguy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisguitarguy",
"id": 1010392,
"login": "chrisguitarguy",
"node_id": "MDQ6VXNlcjEwMTAzOTI=",
"organizations_url": "https://api.github.com/users/chrisguitarguy/orgs",
"received_events_url": "https://api.github.com/users/chrisguitarguy/received_events",
"repos_url": "https://api.github.com/users/chrisguitarguy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisguitarguy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisguitarguy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisguitarguy",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-12-17T19:56:12Z | 2021-09-08T09:01:08Z | 2011-12-19T00:14:56Z | CONTRIBUTOR | resolved | A new class is auth.py adds the `Proxy-Authorization` header to a Request object.
If a proxy is specified in the request, the `send()` method is going to look for authentication info in the proxy URL string and set up the proxy auth from there.
None of this works with out the changes to urllib3 in #293, however.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/309/reactions"
} | https://api.github.com/repos/psf/requests/issues/309/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/309.diff",
"html_url": "https://github.com/psf/requests/pull/309",
"merged_at": "2011-12-19T00:14:56Z",
"patch_url": "https://github.com/psf/requests/pull/309.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/309"
} | true | [
"Thanks a ton for this!\n",
"(Great pull request btw — honored to be your first :)\n"
] |
https://api.github.com/repos/psf/requests/issues/308 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/308/labels{/name} | https://api.github.com/repos/psf/requests/issues/308/comments | https://api.github.com/repos/psf/requests/issues/308/events | https://github.com/psf/requests/issues/308 | 2,559,650 | MDU6SXNzdWUyNTU5NjUw | 308 | Client Certificates in Requests | {
"avatar_url": "https://avatars.githubusercontent.com/u/1264133?v=4",
"events_url": "https://api.github.com/users/johncwheeler/events{/privacy}",
"followers_url": "https://api.github.com/users/johncwheeler/followers",
"following_url": "https://api.github.com/users/johncwheeler/following{/other_user}",
"gists_url": "https://api.github.com/users/johncwheeler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/johncwheeler",
"id": 1264133,
"login": "johncwheeler",
"node_id": "MDQ6VXNlcjEyNjQxMzM=",
"organizations_url": "https://api.github.com/users/johncwheeler/orgs",
"received_events_url": "https://api.github.com/users/johncwheeler/received_events",
"repos_url": "https://api.github.com/users/johncwheeler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/johncwheeler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johncwheeler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/johncwheeler",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-14T22:09:30Z | 2021-09-09T10:00:48Z | 2011-12-19T00:23:27Z | NONE | resolved | In requests there doesn't seem to be a way to specify an SSL key and certificate for client certificate auth.
urllib and httplib both support the client cert approach. This is a commonly requested implementation for business to business communications.
Is this something that we would use the custom auth approach for, using the interface to bind the values to the internal urllib object... or, what?
Just want to get a handle on whether or not this is achievable using requests.
John
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/308/reactions"
} | https://api.github.com/repos/psf/requests/issues/308/timeline | null | completed | null | null | false | [
"Hey there. I'm looking forward to adding support for this soon.\n\nSee #30 for discussion and details. \n"
] |
https://api.github.com/repos/psf/requests/issues/307 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/307/labels{/name} | https://api.github.com/repos/psf/requests/issues/307/comments | https://api.github.com/repos/psf/requests/issues/307/events | https://github.com/psf/requests/issues/307 | 2,541,917 | MDU6SXNzdWUyNTQxOTE3 | 307 | Digest Authentication in 0.7.3 versus 0.8.4 | {
"avatar_url": "https://avatars.githubusercontent.com/u/212338?v=4",
"events_url": "https://api.github.com/users/sweenzor/events{/privacy}",
"followers_url": "https://api.github.com/users/sweenzor/followers",
"following_url": "https://api.github.com/users/sweenzor/following{/other_user}",
"gists_url": "https://api.github.com/users/sweenzor/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sweenzor",
"id": 212338,
"login": "sweenzor",
"node_id": "MDQ6VXNlcjIxMjMzOA==",
"organizations_url": "https://api.github.com/users/sweenzor/orgs",
"received_events_url": "https://api.github.com/users/sweenzor/received_events",
"repos_url": "https://api.github.com/users/sweenzor/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sweenzor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sweenzor/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sweenzor",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 4 | 2011-12-13T19:32:57Z | 2021-09-09T10:00:48Z | 2011-12-13T19:39:23Z | CONTRIBUTOR | resolved | After upgrading from 0.7.3 to 0.8.4:
A digest request such as:
``` python
r = requests.get('http://app.com/sensors.json', auth=('digest', 'username', 'password'))
```
Yields:
```
matt@Jenkins:~/Development/sensor-tools$ python pollsensors.py
Traceback (most recent call last):
File "pollsensors.py", line 84, in <module>
s = PollSensors()
File "pollsensors.py", line 12, in __init__
r = requests.get('http://app.com/sensors.json', auth=('digest', 'username', 'password'))
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 80, in get
return request('get', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 67, in request
prefetch=prefetch
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 191, in request
r.send(prefetch=prefetch)
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 400, in send
r = self.auth(self)
TypeError: 'tuple' object is not callable
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/212338?v=4",
"events_url": "https://api.github.com/users/sweenzor/events{/privacy}",
"followers_url": "https://api.github.com/users/sweenzor/followers",
"following_url": "https://api.github.com/users/sweenzor/following{/other_user}",
"gists_url": "https://api.github.com/users/sweenzor/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sweenzor",
"id": 212338,
"login": "sweenzor",
"node_id": "MDQ6VXNlcjIxMjMzOA==",
"organizations_url": "https://api.github.com/users/sweenzor/orgs",
"received_events_url": "https://api.github.com/users/sweenzor/received_events",
"repos_url": "https://api.github.com/users/sweenzor/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sweenzor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sweenzor/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sweenzor",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/307/reactions"
} | https://api.github.com/repos/psf/requests/issues/307/timeline | null | completed | null | null | false | [
"There was a backwards incompatible change. \n\nHere's the new usage:\n\nhttp://docs.python-requests.org/en/latest/user/quickstart/#digest-authentication\n",
"ah, shit. I didn't see that\n\nworks now.\n",
"Sorry for the backwards-incompatible changes. They're for the best :)\n",
"no worries, I like this new s... |
https://api.github.com/repos/psf/requests/issues/306 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/306/labels{/name} | https://api.github.com/repos/psf/requests/issues/306/comments | https://api.github.com/repos/psf/requests/issues/306/events | https://github.com/psf/requests/issues/306 | 2,529,375 | MDU6SXNzdWUyNTI5Mzc1 | 306 | requests does not install if Python has no SSL support | {
"avatar_url": "https://avatars.githubusercontent.com/u/576874?v=4",
"events_url": "https://api.github.com/users/nisavid/events{/privacy}",
"followers_url": "https://api.github.com/users/nisavid/followers",
"following_url": "https://api.github.com/users/nisavid/following{/other_user}",
"gists_url": "https://api.github.com/users/nisavid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nisavid",
"id": 576874,
"login": "nisavid",
"node_id": "MDQ6VXNlcjU3Njg3NA==",
"organizations_url": "https://api.github.com/users/nisavid/orgs",
"received_events_url": "https://api.github.com/users/nisavid/received_events",
"repos_url": "https://api.github.com/users/nisavid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nisavid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nisavid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nisavid",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 8 | 2011-12-12T22:12:42Z | 2021-09-09T10:00:41Z | 2012-01-23T08:01:45Z | NONE | resolved | here's what happens if you try to install requests in a Python environment that doesn't have SSL support:
```
Downloading/unpacking requests
Downloading requests-0.8.4.tar.gz (52Kb): 52Kb downloaded
Running setup.py egg_info for package requests
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/usr/local/src/cogo/platform/systemfiles/analyst/home/config/build/requests/setup.py", line 6, in <module>
import requests
File "requests/__init__.py", line 27, in <module>
from .models import Request, Response
File "requests/models.py", line 19, in <module>
from .packages import oreos
File "requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "requests/packages/urllib3/connectionpool.py", line 11, in <module>
from httplib import HTTPConnection, HTTPSConnection, HTTPException
ImportError: cannot import name HTTPSConnection
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/usr/local/src/cogo/platform/systemfiles/analyst/home/config/build/requests/setup.py", line 6, in <module>
import requests
File "requests/__init__.py", line 27, in <module>
from .models import Request, Response
File "requests/models.py", line 19, in <module>
from .packages import oreos
File "requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "requests/packages/urllib3/connectionpool.py", line 11, in <module>
from httplib import HTTPConnection, HTTPSConnection, HTTPException
ImportError: cannot import name HTTPSConnection
----------------------------------------
Command python setup.py egg_info failed with error code 1
```
not only is this very inconvenient, but it seems to contradict the assertion that requests has "zero dependencies".
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/306/reactions"
} | https://api.github.com/repos/psf/requests/issues/306/timeline | null | completed | null | null | false | [
"Interesting. We should definitely fix this.\n\nNow I'm curious though — what's the best way to hand this? Raise a `ConnectionError` when someone tries to open an https url? Or maybe a `ProtocolNotAvailable` error?\n",
"Shouldn't this be handled in the urllib3?\n",
"@piotr-dobrogost: urllib3 is, as always, not ... |
https://api.github.com/repos/psf/requests/issues/305 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/305/labels{/name} | https://api.github.com/repos/psf/requests/issues/305/comments | https://api.github.com/repos/psf/requests/issues/305/events | https://github.com/psf/requests/pull/305 | 2,515,123 | MDExOlB1bGxSZXF1ZXN0NTgxMjQw | 305 | Fix spelling errors, typos. | {
"avatar_url": "https://avatars.githubusercontent.com/u/47585?v=4",
"events_url": "https://api.github.com/users/hatchetation/events{/privacy}",
"followers_url": "https://api.github.com/users/hatchetation/followers",
"following_url": "https://api.github.com/users/hatchetation/following{/other_user}",
"gists_url": "https://api.github.com/users/hatchetation/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hatchetation",
"id": 47585,
"login": "hatchetation",
"node_id": "MDQ6VXNlcjQ3NTg1",
"organizations_url": "https://api.github.com/users/hatchetation/orgs",
"received_events_url": "https://api.github.com/users/hatchetation/received_events",
"repos_url": "https://api.github.com/users/hatchetation/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hatchetation/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hatchetation/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hatchetation",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-11T08:02:29Z | 2021-09-08T13:06:03Z | 2011-12-11T16:04:27Z | NONE | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/305/reactions"
} | https://api.github.com/repos/psf/requests/issues/305/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/305.diff",
"html_url": "https://github.com/psf/requests/pull/305",
"merged_at": "2011-12-11T16:04:26Z",
"patch_url": "https://github.com/psf/requests/pull/305.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/305"
} | true | [
"Thanks!\n"
] | |
https://api.github.com/repos/psf/requests/issues/304 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/304/labels{/name} | https://api.github.com/repos/psf/requests/issues/304/comments | https://api.github.com/repos/psf/requests/issues/304/events | https://github.com/psf/requests/issues/304 | 2,511,261 | MDU6SXNzdWUyNTExMjYx | 304 | Add caching support with pluggable storage classes | {
"avatar_url": "https://avatars.githubusercontent.com/u/308610?v=4",
"events_url": "https://api.github.com/users/jaraco/events{/privacy}",
"followers_url": "https://api.github.com/users/jaraco/followers",
"following_url": "https://api.github.com/users/jaraco/following{/other_user}",
"gists_url": "https://api.github.com/users/jaraco/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jaraco",
"id": 308610,
"login": "jaraco",
"node_id": "MDQ6VXNlcjMwODYxMA==",
"organizations_url": "https://api.github.com/users/jaraco/orgs",
"received_events_url": "https://api.github.com/users/jaraco/received_events",
"repos_url": "https://api.github.com/users/jaraco/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jaraco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jaraco/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jaraco",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 20 | 2011-12-10T14:56:07Z | 2021-09-09T07:05:21Z | 2012-07-27T06:08:15Z | CONTRIBUTOR | resolved | Our application relies heavily on the caching support of httplib2. We cannot consider switching to requests until requests has basic caching support with pluggable storage backends (we use a BSDDB backend for a multi-process shared cache).
Glancing over the code, I did not see any cache support. Let's sprint on this some day. I maintain an [http cache handler for urllib2](https://bitbucket.org/jaraco/jaraco.net/src/eeb3581fb267/jaraco/net/http/caching.py#cl-15) and I've also worked on the httplib2 code base (though I recognize that might be as much a detriment as a compliment ;).
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/304/reactions"
} | https://api.github.com/repos/psf/requests/issues/304/timeline | null | completed | null | null | false | [
"What's the status of caching support? Has anyone considered it yet? Would pull requests be considered? Are there any other considerations that should be made before going down the path of an implementation?\n",
"Excellent! It's absolutely something that I'd like to support eventually, as long as the API is right... |
https://api.github.com/repos/psf/requests/issues/303 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/303/labels{/name} | https://api.github.com/repos/psf/requests/issues/303/comments | https://api.github.com/repos/psf/requests/issues/303/events | https://github.com/psf/requests/issues/303 | 2,511,120 | MDU6SXNzdWUyNTExMTIw | 303 | prefetch=True and RuntimeError: The content for this response was already consumed | {
"avatar_url": "https://avatars.githubusercontent.com/u/103396?v=4",
"events_url": "https://api.github.com/users/fillest/events{/privacy}",
"followers_url": "https://api.github.com/users/fillest/followers",
"following_url": "https://api.github.com/users/fillest/following{/other_user}",
"gists_url": "https://api.github.com/users/fillest/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fillest",
"id": 103396,
"login": "fillest",
"node_id": "MDQ6VXNlcjEwMzM5Ng==",
"organizations_url": "https://api.github.com/users/fillest/orgs",
"received_events_url": "https://api.github.com/users/fillest/received_events",
"repos_url": "https://api.github.com/users/fillest/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fillest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fillest/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fillest",
"user_view_type": "public"
} | [] | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | null | 1 | 2011-12-10T14:10:20Z | 2021-09-09T10:00:49Z | 2011-12-11T16:32:21Z | NONE | resolved | Hello!
requests 0.8.3 (was installed with pip), python 2.7.1
> > > import requests
> > > r = requests.get("http://www.httpbin.org/headers", prefetch=True)
> > > print r.content
> > > Traceback (most recent call last):
> > > File "<stdin>", line 1, in <module>
> > > File "/home/hurr/venvs/durr/local/lib/python2.7/site-packages/requests/models.py", line 584, in content
> > > 'The content for this response was already consumed')
> > > RuntimeError: The content for this response was already consumed
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/303/reactions"
} | https://api.github.com/repos/psf/requests/issues/303/timeline | null | completed | null | null | false | [
"Yikes, thanks for finding this. I'll push a fix up soon.\n"
] |
https://api.github.com/repos/psf/requests/issues/302 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/302/labels{/name} | https://api.github.com/repos/psf/requests/issues/302/comments | https://api.github.com/repos/psf/requests/issues/302/events | https://github.com/psf/requests/issues/302 | 2,505,608 | MDU6SXNzdWUyNTA1NjA4 | 302 | LICENSE file absent from pip based install | {
"avatar_url": "https://avatars.githubusercontent.com/u/281946?v=4",
"events_url": "https://api.github.com/users/devdave/events{/privacy}",
"followers_url": "https://api.github.com/users/devdave/followers",
"following_url": "https://api.github.com/users/devdave/following{/other_user}",
"gists_url": "https://api.github.com/users/devdave/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devdave",
"id": 281946,
"login": "devdave",
"node_id": "MDQ6VXNlcjI4MTk0Ng==",
"organizations_url": "https://api.github.com/users/devdave/orgs",
"received_events_url": "https://api.github.com/users/devdave/received_events",
"repos_url": "https://api.github.com/users/devdave/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devdave/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devdave/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devdave",
"user_view_type": "public"
} | [] | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-12-17T21:10:23Z",
"closed_issues": 4,
"created_at": "2011-08-23T15:07:10Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
},
"description": "",
"due_on": null,
"html_url": "https://github.com/psf/requests/milestone/11",
"id": 30486,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/11/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODY=",
"number": 11,
"open_issues": 0,
"state": "closed",
"title": "v0.9.0",
"updated_at": "2011-12-28T10:04:17Z",
"url": "https://api.github.com/repos/psf/requests/milestones/11"
} | 1 | 2011-12-09T19:25:45Z | 2021-09-09T10:00:48Z | 2011-12-17T21:10:23Z | NONE | resolved | Should be a simple fix by adding a "package_data" configuration option to setup.py
| {
"avatar_url": "https://avatars.githubusercontent.com/u/281946?v=4",
"events_url": "https://api.github.com/users/devdave/events{/privacy}",
"followers_url": "https://api.github.com/users/devdave/followers",
"following_url": "https://api.github.com/users/devdave/following{/other_user}",
"gists_url": "https://api.github.com/users/devdave/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devdave",
"id": 281946,
"login": "devdave",
"node_id": "MDQ6VXNlcjI4MTk0Ng==",
"organizations_url": "https://api.github.com/users/devdave/orgs",
"received_events_url": "https://api.github.com/users/devdave/received_events",
"repos_url": "https://api.github.com/users/devdave/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devdave/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devdave/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devdave",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/302/reactions"
} | https://api.github.com/repos/psf/requests/issues/302/timeline | null | completed | null | null | false | [
"Interesting, we should definitely add that.\n"
] |
https://api.github.com/repos/psf/requests/issues/301 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/301/labels{/name} | https://api.github.com/repos/psf/requests/issues/301/comments | https://api.github.com/repos/psf/requests/issues/301/events | https://github.com/psf/requests/pull/301 | 2,499,217 | MDExOlB1bGxSZXF1ZXN0NTc2MDk5 | 301 | Fixed typo in documentation. | {
"avatar_url": "https://avatars.githubusercontent.com/u/30053?v=4",
"events_url": "https://api.github.com/users/cwvh/events{/privacy}",
"followers_url": "https://api.github.com/users/cwvh/followers",
"following_url": "https://api.github.com/users/cwvh/following{/other_user}",
"gists_url": "https://api.github.com/users/cwvh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cwvh",
"id": 30053,
"login": "cwvh",
"node_id": "MDQ6VXNlcjMwMDUz",
"organizations_url": "https://api.github.com/users/cwvh/orgs",
"received_events_url": "https://api.github.com/users/cwvh/received_events",
"repos_url": "https://api.github.com/users/cwvh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cwvh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cwvh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cwvh",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-09T07:49:39Z | 2021-09-08T13:06:01Z | 2011-12-09T16:42:19Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/301/reactions"
} | https://api.github.com/repos/psf/requests/issues/301/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/301.diff",
"html_url": "https://github.com/psf/requests/pull/301",
"merged_at": "2011-12-09T16:42:19Z",
"patch_url": "https://github.com/psf/requests/pull/301.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/301"
} | true | [
"Thanks!\n"
] | |
https://api.github.com/repos/psf/requests/issues/300 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/300/labels{/name} | https://api.github.com/repos/psf/requests/issues/300/comments | https://api.github.com/repos/psf/requests/issues/300/events | https://github.com/psf/requests/pull/300 | 2,470,559 | MDExOlB1bGxSZXF1ZXN0NTY2MTI4 | 300 | disable_redirects should be allow_redirects in docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/33829?v=4",
"events_url": "https://api.github.com/users/edsu/events{/privacy}",
"followers_url": "https://api.github.com/users/edsu/followers",
"following_url": "https://api.github.com/users/edsu/following{/other_user}",
"gists_url": "https://api.github.com/users/edsu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/edsu",
"id": 33829,
"login": "edsu",
"node_id": "MDQ6VXNlcjMzODI5",
"organizations_url": "https://api.github.com/users/edsu/orgs",
"received_events_url": "https://api.github.com/users/edsu/received_events",
"repos_url": "https://api.github.com/users/edsu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/edsu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/edsu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/edsu",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-12-07T02:37:34Z | 2021-09-08T13:06:01Z | 2011-12-07T02:38:31Z | CONTRIBUTOR | resolved | disable_redirects parameter does not seem to exist anymore, updated docs to point folks at allow_redirects
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/300/reactions"
} | https://api.github.com/repos/psf/requests/issues/300/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/300.diff",
"html_url": "https://github.com/psf/requests/pull/300",
"merged_at": "2011-12-07T02:38:31Z",
"patch_url": "https://github.com/psf/requests/pull/300.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/300"
} | true | [
"I must have been really tired when I wrote this. Thanks!\n",
"It's the least I could do. Thank you for requests. It has made life w/ http worth living :-)\n",
"My pleasure! Thanks for the support :)\n\n:sparkles: :cake: :sparkles:\n"
] |
https://api.github.com/repos/psf/requests/issues/299 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/299/labels{/name} | https://api.github.com/repos/psf/requests/issues/299/comments | https://api.github.com/repos/psf/requests/issues/299/events | https://github.com/psf/requests/issues/299 | 2,466,910 | MDU6SXNzdWUyNDY2OTEw | 299 | honor .netrc | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-06T20:19:12Z | 2021-09-09T09:00:31Z | 2012-05-04T01:58:31Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/376448?v=4",
"events_url": "https://api.github.com/users/slingamn/events{/privacy}",
"followers_url": "https://api.github.com/users/slingamn/followers",
"following_url": "https://api.github.com/users/slingamn/following{/other_user}",
"gists_url": "https://api.github.com/users/slingamn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/slingamn",
"id": 376448,
"login": "slingamn",
"node_id": "MDQ6VXNlcjM3NjQ0OA==",
"organizations_url": "https://api.github.com/users/slingamn/orgs",
"received_events_url": "https://api.github.com/users/slingamn/received_events",
"repos_url": "https://api.github.com/users/slingamn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/slingamn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/slingamn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/slingamn",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/299/reactions"
} | https://api.github.com/repos/psf/requests/issues/299/timeline | null | completed | null | null | false | [
"Looks like this was done in 793d314c8d45d.\n"
] | |
https://api.github.com/repos/psf/requests/issues/298 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/298/labels{/name} | https://api.github.com/repos/psf/requests/issues/298/comments | https://api.github.com/repos/psf/requests/issues/298/events | https://github.com/psf/requests/issues/298 | 2,451,226 | MDU6SXNzdWUyNDUxMjI2 | 298 | File upload not working with HTTP digest authentication | {
"avatar_url": "https://avatars.githubusercontent.com/u/733442?v=4",
"events_url": "https://api.github.com/users/ibrechin/events{/privacy}",
"followers_url": "https://api.github.com/users/ibrechin/followers",
"following_url": "https://api.github.com/users/ibrechin/following{/other_user}",
"gists_url": "https://api.github.com/users/ibrechin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ibrechin",
"id": 733442,
"login": "ibrechin",
"node_id": "MDQ6VXNlcjczMzQ0Mg==",
"organizations_url": "https://api.github.com/users/ibrechin/orgs",
"received_events_url": "https://api.github.com/users/ibrechin/received_events",
"repos_url": "https://api.github.com/users/ibrechin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ibrechin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ibrechin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ibrechin",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-12-05T16:25:41Z | 2021-09-09T09:00:36Z | 2012-05-01T09:42:59Z | NONE | resolved | This is due to a couple of issues involved with the fact that it is necessary to create two requests and the file already having been read and a boundary set in the content-type header by the first request, resulting in the second (authenticated) request lacking file data and having an incorrect boundary even if you reset the file input stream.
However, more than that it seems like a waste of bytes to send POST data up with the initial request which you know will come back as 401. As a quick fix in my own project I have added an if statement around lines 360-388 in models.py with the conditional
```
if (not isinstance(self.auth, HTTPDigestAuth)) or 'Authorization' in self.headers:
```
but I expect there is a more elegant way. If there already exists a way to do an empty first request when using HTTP Digest then I was unable to find it.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/298/reactions"
} | https://api.github.com/repos/psf/requests/issues/298/timeline | null | completed | null | null | false | [
"Thanks for the report. I'm really unhappy with the post-hook thing that's being used in the Digest Auth handler. It feels really messy.\n\nI'd love to take a more elegant approach, but nothing seems immediately obvious.\n"
] |
https://api.github.com/repos/psf/requests/issues/297 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/297/labels{/name} | https://api.github.com/repos/psf/requests/issues/297/comments | https://api.github.com/repos/psf/requests/issues/297/events | https://github.com/psf/requests/issues/297 | 2,387,034 | MDU6SXNzdWUyMzg3MDM0 | 297 | File download: get the filename without the data | {
"avatar_url": "https://avatars.githubusercontent.com/u/319220?v=4",
"events_url": "https://api.github.com/users/Diaoul/events{/privacy}",
"followers_url": "https://api.github.com/users/Diaoul/followers",
"following_url": "https://api.github.com/users/Diaoul/following{/other_user}",
"gists_url": "https://api.github.com/users/Diaoul/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Diaoul",
"id": 319220,
"login": "Diaoul",
"node_id": "MDQ6VXNlcjMxOTIyMA==",
"organizations_url": "https://api.github.com/users/Diaoul/orgs",
"received_events_url": "https://api.github.com/users/Diaoul/received_events",
"repos_url": "https://api.github.com/users/Diaoul/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Diaoul/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Diaoul/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Diaoul",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-11-29T16:34:21Z | 2021-09-09T10:00:49Z | 2011-11-29T16:42:31Z | NONE | resolved | Is it possible to just retrieve the filename when doing a get request without the file itself?
For example, any browsers prompts for a filename to save before actually downloading the file if the save button is hit.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/319220?v=4",
"events_url": "https://api.github.com/users/Diaoul/events{/privacy}",
"followers_url": "https://api.github.com/users/Diaoul/followers",
"following_url": "https://api.github.com/users/Diaoul/following{/other_user}",
"gists_url": "https://api.github.com/users/Diaoul/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Diaoul",
"id": 319220,
"login": "Diaoul",
"node_id": "MDQ6VXNlcjMxOTIyMA==",
"organizations_url": "https://api.github.com/users/Diaoul/orgs",
"received_events_url": "https://api.github.com/users/Diaoul/received_events",
"repos_url": "https://api.github.com/users/Diaoul/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Diaoul/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Diaoul/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Diaoul",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/297/reactions"
} | https://api.github.com/repos/psf/requests/issues/297/timeline | null | completed | null | null | false | [
"This might help: http://docs.python-requests.org/en/latest/user/advanced/#body-content-workflow\n",
"Wow it seems the doc has been updated since last time I checked. Sorry for that useless issue, I may be able to read the filename in one of the header.\n\nThanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/296 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/296/labels{/name} | https://api.github.com/repos/psf/requests/issues/296/comments | https://api.github.com/repos/psf/requests/issues/296/events | https://github.com/psf/requests/issues/296 | 2,384,830 | MDU6SXNzdWUyMzg0ODMw | 296 | ConnectionError with Python 2.5 and SSL site | {
"avatar_url": "https://avatars.githubusercontent.com/u/334087?v=4",
"events_url": "https://api.github.com/users/davidwtbuxton/events{/privacy}",
"followers_url": "https://api.github.com/users/davidwtbuxton/followers",
"following_url": "https://api.github.com/users/davidwtbuxton/following{/other_user}",
"gists_url": "https://api.github.com/users/davidwtbuxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidwtbuxton",
"id": 334087,
"login": "davidwtbuxton",
"node_id": "MDQ6VXNlcjMzNDA4Nw==",
"organizations_url": "https://api.github.com/users/davidwtbuxton/orgs",
"received_events_url": "https://api.github.com/users/davidwtbuxton/received_events",
"repos_url": "https://api.github.com/users/davidwtbuxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidwtbuxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidwtbuxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidwtbuxton",
"user_view_type": "public"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
}
] | closed | true | null | [] | null | 10 | 2011-11-29T14:20:07Z | 2021-09-09T10:00:42Z | 2012-01-23T08:06:13Z | NONE | resolved | I am using requests 0.8.5 to GET the front page of an SSL site. This works fine with Python 2.7.2, Python 2.6.7, but throws ConnectionError with Python 2.5.6. Other SSL sites work as expected with Python 2.5.6.
Quick tests from the command-line:
```
veronica:test david$ python2.7 -c "import requests; print requests.get('https://viewpoint.toyota-europe.com/');"
<Response [200]>
veronica:test david$ python2.6 -c "import requests; print requests.get('https://viewpoint.toyota-europe.com/');"
<Response [200]>
veronica:test david$ python2.5 -c "import requests; print requests.get('https://viewpoint.toyota-europe.com/');"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "requests/api.py", line 80, in get
return request('get', url, **kwargs)
File "requests/api.py", line 67, in request
prefetch=prefetch
File "requests/sessions.py", line 191, in request
r.send(prefetch=prefetch)
File "requests/models.py", line 453, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError: Max retries exceeded for url: /
veronica:test david$
```
But this works in Python 2.5:
```
veronica:test david$ python2.5 -c "import requests; print requests.get('https://github.com/');"
<Response [200]>
```
The problem web server is running IIS7. I will try and get more details soon. Platform is Mac OS X 10.7.2, all Python versions built from MacPorts.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/296/reactions"
} | https://api.github.com/repos/psf/requests/issues/296/timeline | null | completed | null | null | false | [
"Hmm, very odd. Oddly enough, it's working properly on my local copy of Python 2.5.6. \n\nDo let me know what you come up with.\n",
"Mistake, I am using requests version 0.8.3\n",
"The test works fine using a local proxy. Dammit. Turning up the log level I see\n\n```\nINFO:requests.packages.urllib3.connectionpo... |
https://api.github.com/repos/psf/requests/issues/295 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/295/labels{/name} | https://api.github.com/repos/psf/requests/issues/295/comments | https://api.github.com/repos/psf/requests/issues/295/events | https://github.com/psf/requests/issues/295 | 2,383,619 | MDU6SXNzdWUyMzgzNjE5 | 295 | Don't read whole files into memory for multipart file uploads. | {
"avatar_url": "https://avatars.githubusercontent.com/u/55050?v=4",
"events_url": "https://api.github.com/users/zacharyvoase/events{/privacy}",
"followers_url": "https://api.github.com/users/zacharyvoase/followers",
"following_url": "https://api.github.com/users/zacharyvoase/following{/other_user}",
"gists_url": "https://api.github.com/users/zacharyvoase/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zacharyvoase",
"id": 55050,
"login": "zacharyvoase",
"node_id": "MDQ6VXNlcjU1MDUw",
"organizations_url": "https://api.github.com/users/zacharyvoase/orgs",
"received_events_url": "https://api.github.com/users/zacharyvoase/received_events",
"repos_url": "https://api.github.com/users/zacharyvoase/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zacharyvoase/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zacharyvoase/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zacharyvoase",
"user_view_type": "public"
} | [
{
"color": "02e10c",
"default": false,
"description": null,
"id": 76800,
"name": "Feature Request",
"node_id": "MDU6TGFiZWw3NjgwMA==",
"url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request"
},
{
"color": "e102d8",
"default": false,
"description": null... | closed | true | null | [] | null | 19 | 2011-11-29T11:51:14Z | 2021-09-09T00:28:28Z | 2013-02-10T22:50:21Z | NONE | resolved | This: https://github.com/kennethreitz/requests/blob/develop/requests/models.py#L375 would indicate that files passed in `files` are being read into memory in their entirety. This is likely to get pathological for large files; the underlying `poster` library supports streaming requests. The solution to this issue is probably related to #292.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/295/reactions"
} | https://api.github.com/repos/psf/requests/issues/295/timeline | null | completed | null | null | false | [
"Correct. This is currently a bit of a fundamental limitation of the current architecture, but is something that I'd like to revisit on the longterm roadmap. \n\nRequests no longer utilizes Poster internally. \n\nI believe @mitsuhiko has some thoughts on this.\n",
"I see that this is planned. I just wanted to ve... |
https://api.github.com/repos/psf/requests/issues/294 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/294/labels{/name} | https://api.github.com/repos/psf/requests/issues/294/comments | https://api.github.com/repos/psf/requests/issues/294/events | https://github.com/psf/requests/pull/294 | 2,379,375 | MDExOlB1bGxSZXF1ZXN0NTM2NzIz | 294 | Documentation fix: clarification of keep-alive behavior. | {
"avatar_url": "https://avatars.githubusercontent.com/u/136931?v=4",
"events_url": "https://api.github.com/users/berg/events{/privacy}",
"followers_url": "https://api.github.com/users/berg/followers",
"following_url": "https://api.github.com/users/berg/following{/other_user}",
"gists_url": "https://api.github.com/users/berg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/berg",
"id": 136931,
"login": "berg",
"node_id": "MDQ6VXNlcjEzNjkzMQ==",
"organizations_url": "https://api.github.com/users/berg/orgs",
"received_events_url": "https://api.github.com/users/berg/received_events",
"repos_url": "https://api.github.com/users/berg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/berg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/berg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/berg",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-29T06:58:22Z | 2021-09-08T13:06:02Z | 2011-11-29T08:06:54Z | CONTRIBUTOR | resolved | The existing behavior was a little opaque for me--I was making a PUT request which returned a HTTP 204 with a 0-byte body. I was never reading the body and was wondering why my connections were not being reused.
Thanks so much for the requests library--we use it at App.net and absolutely love it. I threw away a big spaghetti'd-out mess of a homegrown urllib2 wrapper and haven't looked back.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/294/reactions"
} | https://api.github.com/repos/psf/requests/issues/294/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/294.diff",
"html_url": "https://github.com/psf/requests/pull/294",
"merged_at": "2011-11-29T08:06:54Z",
"patch_url": "https://github.com/psf/requests/pull/294.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/294"
} | true | [
"That's for the kind words!\n\nThis is a great addition. Thanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/293 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/293/labels{/name} | https://api.github.com/repos/psf/requests/issues/293/comments | https://api.github.com/repos/psf/requests/issues/293/events | https://github.com/psf/requests/issues/293 | 2,370,543 | MDU6SXNzdWUyMzcwNTQz | 293 | Proxy authentication broken with 0.76 -> 0.83 upgrade. | {
"avatar_url": "https://avatars.githubusercontent.com/u/795033?v=4",
"events_url": "https://api.github.com/users/steinster/events{/privacy}",
"followers_url": "https://api.github.com/users/steinster/followers",
"following_url": "https://api.github.com/users/steinster/following{/other_user}",
"gists_url": "https://api.github.com/users/steinster/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/steinster",
"id": 795033,
"login": "steinster",
"node_id": "MDQ6VXNlcjc5NTAzMw==",
"organizations_url": "https://api.github.com/users/steinster/orgs",
"received_events_url": "https://api.github.com/users/steinster/received_events",
"repos_url": "https://api.github.com/users/steinster/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/steinster/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/steinster/subscriptions",
"type": "User",
"url": "https://api.github.com/users/steinster",
"user_view_type": "public"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": null,
"id": 191274,
"... | closed | true | null | [] | null | 4 | 2011-11-28T17:25:20Z | 2021-09-09T09:00:40Z | 2012-03-31T07:16:31Z | NONE | resolved | Proxy authentication was possible in 0.76 using a string like "user:password@ip:port". In 0.83 I am getting the following error:
Traceback (most recent call last):
File "req.py", line 10, in <module>
print get('http://ipcheckit.com', proxies=p).content
File "build\bdist.win32\egg\requests\api.py", line 80, in get
File "build\bdist.win32\egg\requests\api.py", line 67, in request
File "build\bdist.win32\egg\requests\sessions.py", line 191, in request
File "build\bdist.win32\egg\requests\models.py", line 409, in send
File "build\bdist.win32\egg\requests\packages\urllib3\poolmanager.py", line 127, in proxy_from_url
File "build\bdist.win32\egg\requests\packages\urllib3\connectionpool.py", line 521, in connection_from_url
File "build\bdist.win32\egg\requests\packages\urllib3\connectionpool.py", line 497, in get_host
ValueError: invalid literal for int() with base 10: '(censored)@184.154.139.226:60099'
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/293/reactions"
} | https://api.github.com/repos/psf/requests/issues/293/timeline | null | completed | null | null | false | [
"This may be an unexpected side effect of @shazow's hated for the urlparse module :)\n",
"You are correct. :(\n\nI actually had a thought that @ would break my parsing last week but didn't get around to fixing it yet.\n\nSorry about this, I'll fix it this week. It's being tracked here: https://github.com/shazow/u... |
https://api.github.com/repos/psf/requests/issues/292 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/292/labels{/name} | https://api.github.com/repos/psf/requests/issues/292/comments | https://api.github.com/repos/psf/requests/issues/292/events | https://github.com/psf/requests/issues/292 | 2,369,635 | MDU6SXNzdWUyMzY5NjM1 | 292 | Accept file-like objects as request data | {
"avatar_url": "https://avatars.githubusercontent.com/u/55050?v=4",
"events_url": "https://api.github.com/users/zacharyvoase/events{/privacy}",
"followers_url": "https://api.github.com/users/zacharyvoase/followers",
"following_url": "https://api.github.com/users/zacharyvoase/following{/other_user}",
"gists_url": "https://api.github.com/users/zacharyvoase/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zacharyvoase",
"id": 55050,
"login": "zacharyvoase",
"node_id": "MDQ6VXNlcjU1MDUw",
"organizations_url": "https://api.github.com/users/zacharyvoase/orgs",
"received_events_url": "https://api.github.com/users/zacharyvoase/received_events",
"repos_url": "https://api.github.com/users/zacharyvoase/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zacharyvoase/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zacharyvoase/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zacharyvoase",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-11-28T16:42:28Z | 2021-09-09T07:05:21Z | 2012-07-27T06:08:28Z | NONE | resolved | I'd like it to be possible to pass in a file-like object as the source of request data, provided `Content-Length` and `Content-Type` headers have been specified already. Here's an example of what I'd like to do:
```
response = requests.put(
'http://example.com/endpoint',
data=open('filename', 'rb'),
headers={
"Content-Type": "text/plain",
"Content-Length": os.stat('filename').st_size})
```
Alternatively, requests could even recognise that I've passed in a `file` object and perform an `os.fstat(file_like_obj.fileno())` automatically.
Here's the bit of code that seems to be breaking:
https://github.com/kennethreitz/requests/blob/c7b99f78192bdff62fad4f92039396c0dfbe4fb8/requests/models.py#L267
When I pass in an object that is neither a string nor a dictionary, the call to `dict()` fails.
I'm able and willing to work on this in a fork, I just figured it would be better to submit it as an issue first.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/292/reactions"
} | https://api.github.com/repos/psf/requests/issues/292/timeline | null | completed | null | null | false | [
"Interesting. I see no reason why we couldn't support that.\n\nSupporting this everywhere would also force us to revisit the `files` parameter. Currently, it expects file-like objects. It should also accept bytes/unicode strings.\n",
"In this case, I'd imagine that the `files` parameter wouldn't even be used in `... |
https://api.github.com/repos/psf/requests/issues/291 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/291/labels{/name} | https://api.github.com/repos/psf/requests/issues/291/comments | https://api.github.com/repos/psf/requests/issues/291/events | https://github.com/psf/requests/issues/291 | 2,360,630 | MDU6SXNzdWUyMzYwNjMw | 291 | models.Request.sent never set to `True`? | {
"avatar_url": "https://avatars.githubusercontent.com/u/68183?v=4",
"events_url": "https://api.github.com/users/mrtazz/events{/privacy}",
"followers_url": "https://api.github.com/users/mrtazz/followers",
"following_url": "https://api.github.com/users/mrtazz/following{/other_user}",
"gists_url": "https://api.github.com/users/mrtazz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrtazz",
"id": 68183,
"login": "mrtazz",
"node_id": "MDQ6VXNlcjY4MTgz",
"organizations_url": "https://api.github.com/users/mrtazz/orgs",
"received_events_url": "https://api.github.com/users/mrtazz/received_events",
"repos_url": "https://api.github.com/users/mrtazz/repos",
"site_admin": true,
"starred_url": "https://api.github.com/users/mrtazz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrtazz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrtazz",
"user_view_type": "public"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
}
] | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | {
"closed_at": "2011-12-17T21:10:23Z",
"closed_issues": 4,
"created_at": "2011-08-23T15:07:10Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
},
"description": "",
"due_on": null,
"html_url": "https://github.com/psf/requests/milestone/11",
"id": 30486,
"labels_url": "https://api.github.com/repos/psf/requests/milestones/11/labels",
"node_id": "MDk6TWlsZXN0b25lMzA0ODY=",
"number": 11,
"open_issues": 0,
"state": "closed",
"title": "v0.9.0",
"updated_at": "2011-12-28T10:04:17Z",
"url": "https://api.github.com/repos/psf/requests/milestones/11"
} | 1 | 2011-11-27T16:16:40Z | 2021-09-09T10:00:50Z | 2011-11-27T16:29:58Z | CONTRIBUTOR | resolved | While dissecting the `models.Request.send()` method for unit testing I tried to find the path where `return self.sent` actually returns `True`. I `ack`-ed through the code but failed to find a path. Did I miss something or is it really never set?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/291/reactions"
} | https://api.github.com/repos/psf/requests/issues/291/timeline | null | completed | null | null | false | [
"Yikes! Thanks for the catch.\n"
] |
https://api.github.com/repos/psf/requests/issues/290 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/290/labels{/name} | https://api.github.com/repos/psf/requests/issues/290/comments | https://api.github.com/repos/psf/requests/issues/290/events | https://github.com/psf/requests/issues/290 | 2,355,061 | MDU6SXNzdWUyMzU1MDYx | 290 | timeout not working? | {
"avatar_url": "https://avatars.githubusercontent.com/u/59039?v=4",
"events_url": "https://api.github.com/users/dropwhile/events{/privacy}",
"followers_url": "https://api.github.com/users/dropwhile/followers",
"following_url": "https://api.github.com/users/dropwhile/following{/other_user}",
"gists_url": "https://api.github.com/users/dropwhile/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dropwhile",
"id": 59039,
"login": "dropwhile",
"node_id": "MDQ6VXNlcjU5MDM5",
"organizations_url": "https://api.github.com/users/dropwhile/orgs",
"received_events_url": "https://api.github.com/users/dropwhile/received_events",
"repos_url": "https://api.github.com/users/dropwhile/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dropwhile/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dropwhile/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dropwhile",
"user_view_type": "public"
} | [
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
},
{
"color": "0b02e1",
"default": false,
"description": null,
"id": 19127... | closed | true | null | [] | null | 12 | 2011-11-26T11:46:59Z | 2017-02-01T09:38:27Z | 2011-12-19T05:25:42Z | NONE | null | It seems that timeouts are not working when the host cannot be reached. It appears that the standard socket timeout timeframe is being used (I get similar timings with timeouts via telnet to the same non listening host/port for example).
``` .python
>>> import logging
>>> logging.basicConfig(level=logging.DEBUG)
>>> import requests
>>> import time
>>> def callwithtime(callable, *args, **kwds):
... t1 = time.time()
... try:
... callable(*args, **kwds)
... except:
... pass
... t2 = time.time()
... print '%s took %0.3f ms' % (callable.func_name, (t2-t1)*1000.0)
...
>>> callwithtime(requests.get, 'http://1.1.1.1/foo.txt')
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 1.1.1.1
^Cget took 10215.639 ms
>>> callwithtime(requests.get, 'http://1.1.1.1/foo.txt', timeout=1)
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 1.1.1.1
WARNING:requests.packages.urllib3.connectionpool:Retrying (0 attempts remain) after connection broken by 'error(60, 'Operation timed out')': /foo.txt
get took 75865.529 ms
>>> callwithtime(requests.get, 'http://1.1.1.1/foo.txt', timeout=0.1)
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 1.1.1.1
WARNING:requests.packages.urllib3.connectionpool:Retrying (0 attempts remain) after connection broken by 'error(60, 'Operation timed out')': /foo.txt
get took 75441.546 ms
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/290/reactions"
} | https://api.github.com/repos/psf/requests/issues/290/timeline | null | completed | null | null | false | [
"This should be causing a `ConnectionError`, but instead it just hangs. Very odd.\n",
"Does a timeout value need to be passed to HTTPConnection when you create one?\n\nhttps://github.com/kennethreitz/requests/blob/a76f4925b512b481375f0886a5b675d3e8522b34/requests/packages/urllib3/connectionpool.py#L151\n\nWhen I ... |
https://api.github.com/repos/psf/requests/issues/289 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/289/labels{/name} | https://api.github.com/repos/psf/requests/issues/289/comments | https://api.github.com/repos/psf/requests/issues/289/events | https://github.com/psf/requests/issues/289 | 2,355,022 | MDU6SXNzdWUyMzU1MDIy | 289 | original errors get swallowed due to retries | {
"avatar_url": "https://avatars.githubusercontent.com/u/59039?v=4",
"events_url": "https://api.github.com/users/dropwhile/events{/privacy}",
"followers_url": "https://api.github.com/users/dropwhile/followers",
"following_url": "https://api.github.com/users/dropwhile/following{/other_user}",
"gists_url": "https://api.github.com/users/dropwhile/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dropwhile",
"id": 59039,
"login": "dropwhile",
"node_id": "MDQ6VXNlcjU5MDM5",
"organizations_url": "https://api.github.com/users/dropwhile/orgs",
"received_events_url": "https://api.github.com/users/dropwhile/received_events",
"repos_url": "https://api.github.com/users/dropwhile/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dropwhile/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dropwhile/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dropwhile",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 6 | 2011-11-26T11:28:28Z | 2021-09-09T10:00:50Z | 2011-11-26T15:49:59Z | NONE | resolved | specifically, hostname nonexistence is being swallowed in my case.
It looks like this is because a retry is always attempted if a conn is None in urlib3 (it appears), then after the second invocation the retry is aborted if tries is too large, and finally a max connection exception is thrown (losing the original exception)
``` .python
>>> import logging
>>> logging.basicConfig(level=logging.DEBUG)
>>> import requests
>>> r = requests.get('http://doesntexist.foo')
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): doesntexist.foo
WARNING:requests.packages.urllib3.connectionpool:Retrying (0 attempts remain) after connection broken by 'gaierror(8, 'nodename nor servname provided, or not known')': /
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "venv/lib/python2.6/site-packages/requests/api.py", line 78, in get
return request('get', url, **kwargs)
File "venv/lib/python2.6/site-packages/requests/api.py", line 65, in request
prefetch=prefetch
File "venv/lib/python2.6/site-packages/requests/sessions.py", line 191, in request
r.send(prefetch=prefetch)
File "venv/lib/python2.6/site-packages/requests/models.py", line 453, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError: Max retries exceeded for url: /
>>>
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/289/reactions"
} | https://api.github.com/repos/psf/requests/issues/289/timeline | null | completed | null | null | false | [
"note: the above output was generated testing against the current release version 0.8.2.\n",
"Is a `ConnectionError` not specific-enough?\n",
"I suppose it would be, but the message I get is about failing retries (even when retry is set to 0). I have no visibility at the api level into the actual cause (name no... |
https://api.github.com/repos/psf/requests/issues/288 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/288/labels{/name} | https://api.github.com/repos/psf/requests/issues/288/comments | https://api.github.com/repos/psf/requests/issues/288/events | https://github.com/psf/requests/pull/288 | 2,346,287 | MDExOlB1bGxSZXF1ZXN0NTI3ODAz | 288 | Add use_session argument to request method. | {
"avatar_url": "https://avatars.githubusercontent.com/u/120119?v=4",
"events_url": "https://api.github.com/users/sharat87/events{/privacy}",
"followers_url": "https://api.github.com/users/sharat87/followers",
"following_url": "https://api.github.com/users/sharat87/following{/other_user}",
"gists_url": "https://api.github.com/users/sharat87/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharat87",
"id": 120119,
"login": "sharat87",
"node_id": "MDQ6VXNlcjEyMDExOQ==",
"organizations_url": "https://api.github.com/users/sharat87/orgs",
"received_events_url": "https://api.github.com/users/sharat87/received_events",
"repos_url": "https://api.github.com/users/sharat87/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharat87/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharat87/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharat87",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 5 | 2011-11-25T03:18:59Z | 2021-09-08T13:06:00Z | 2011-11-26T04:04:24Z | CONTRIBUTOR | resolved | This allows usage of an existing session to make a request with the request and the get, post etc. function.
I made this so that it is easier to create async requests with pre-existing sessions. Currently, we have to do
```
async.map([my_session.get(url, return_response=False, prefetch=True) for url in urls])
```
I got the `return_response` and `prefetch` arguments from inspecting the source of async module. This isn't very pleasant.
With the proposed simple change in this pull request, one can do
```
async.map([async.get(url, use_session=my_session) for url in urls])
```
which feels more natural.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/288/reactions"
} | https://api.github.com/repos/psf/requests/issues/288/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/288.diff",
"html_url": "https://github.com/psf/requests/pull/288",
"merged_at": "2011-11-26T04:04:24Z",
"patch_url": "https://github.com/psf/requests/pull/288.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/288"
} | true | [
"Thanks! I've been thinking of this lately myself. \n\nCan you change from `user_session` to `session` ?\n",
"That's what I initially did, but that would mean changing the session's import. Ok with that?\n",
"That's fine ;)\n\n## \n\nKenneth Reitz\n\nOn Nov 25, 2011, at 12:04 AM, Shrikant Sharat Kandulareply@re... |
https://api.github.com/repos/psf/requests/issues/287 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/287/labels{/name} | https://api.github.com/repos/psf/requests/issues/287/comments | https://api.github.com/repos/psf/requests/issues/287/events | https://github.com/psf/requests/pull/287 | 2,346,115 | MDExOlB1bGxSZXF1ZXN0NTI3NzQz | 287 | Allow generators or any iterators for async.map | {
"avatar_url": "https://avatars.githubusercontent.com/u/120119?v=4",
"events_url": "https://api.github.com/users/sharat87/events{/privacy}",
"followers_url": "https://api.github.com/users/sharat87/followers",
"following_url": "https://api.github.com/users/sharat87/following{/other_user}",
"gists_url": "https://api.github.com/users/sharat87/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sharat87",
"id": 120119,
"login": "sharat87",
"node_id": "MDQ6VXNlcjEyMDExOQ==",
"organizations_url": "https://api.github.com/users/sharat87/orgs",
"received_events_url": "https://api.github.com/users/sharat87/received_events",
"repos_url": "https://api.github.com/users/sharat87/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sharat87/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharat87/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sharat87",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-25T02:20:07Z | 2021-09-08T23:08:16Z | 2011-11-26T15:09:38Z | CONTRIBUTOR | resolved | Hey Kenneth,
If I call `async.map` this way
```
async.map(async.get(u) for u in urls)
```
I get an empty list as the list of responses. But it works if I do
```
async.map([async.get(u) for u in urls])
```
The proposed change fixes this.
If in case, this kind of usage is not intended, i.e., if only a list has to be passed to the `async.map` function, please make it clear in the documentation. Currently it says "A _collection_ of Requests objects" which does not necessarily imply a _list_.
Thanks.
Note: I just hacked up a simple solution in the github editor, you might want to ignore it and fix it up your style :)
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/287/reactions"
} | https://api.github.com/repos/psf/requests/issues/287/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/287.diff",
"html_url": "https://github.com/psf/requests/pull/287",
"merged_at": "2011-11-26T15:09:38Z",
"patch_url": "https://github.com/psf/requests/pull/287.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/287"
} | true | [
":cake: \n\nThanks a ton!\n"
] |
https://api.github.com/repos/psf/requests/issues/286 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/286/labels{/name} | https://api.github.com/repos/psf/requests/issues/286/comments | https://api.github.com/repos/psf/requests/issues/286/events | https://github.com/psf/requests/issues/286 | 2,332,498 | MDU6SXNzdWUyMzMyNDk4 | 286 | Session Cookie doublequotes bug | {
"avatar_url": "https://avatars.githubusercontent.com/u/173095?v=4",
"events_url": "https://api.github.com/users/benmao/events{/privacy}",
"followers_url": "https://api.github.com/users/benmao/followers",
"following_url": "https://api.github.com/users/benmao/following{/other_user}",
"gists_url": "https://api.github.com/users/benmao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benmao",
"id": 173095,
"login": "benmao",
"node_id": "MDQ6VXNlcjE3MzA5NQ==",
"organizations_url": "https://api.github.com/users/benmao/orgs",
"received_events_url": "https://api.github.com/users/benmao/received_events",
"repos_url": "https://api.github.com/users/benmao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benmao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benmao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benmao",
"user_view_type": "public"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
}
] | closed | true | null | [] | null | 11 | 2011-11-23T17:47:01Z | 2021-09-09T10:00:40Z | 2012-01-30T06:15:36Z | NONE | resolved | test code:
``` Python
from requests import session
with session() as c:
c.get('http://www.baidu.com')
#should have cookie headers
c.get('http://www.baidu.com')
```
Server:
``` Python
Set-Cookie: BAIDUID=DC1510722CF5A19A2A4C4E4DB720C5D4:FG=1; expires=Wed, 23-Nov-41 17:44:00 GMT; path=/; domain=.baidu.com
```
Client:
``` Python
Cookie: BAIDUID="DC1510722CF5A19A2A4C4E4DB720C5D4:FG=1"
```
The correct result should be:
``` Python
Cookie: BAIDUID=DC1510722CF5A19A2A4C4E4DB720C5D4:FG=1
```
quote function
``` Python
def _quote(str, LegalChars=_LegalChars,
idmap=_idmap, translate=string.translate):
#
# If the string does not need to be double-quoted,
# then just return the string. Otherwise, surround
# the string in doublequotes and precede quote (with a \)
# special characters.
#
if "" == translate(str, idmap, LegalChars):
return str
else:
return '"' + _nulljoin( map(_Translator.get, str, str) ) + '"'
# end _quote
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/173095?v=4",
"events_url": "https://api.github.com/users/benmao/events{/privacy}",
"followers_url": "https://api.github.com/users/benmao/followers",
"following_url": "https://api.github.com/users/benmao/following{/other_user}",
"gists_url": "https://api.github.com/users/benmao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benmao",
"id": 173095,
"login": "benmao",
"node_id": "MDQ6VXNlcjE3MzA5NQ==",
"organizations_url": "https://api.github.com/users/benmao/orgs",
"received_events_url": "https://api.github.com/users/benmao/received_events",
"repos_url": "https://api.github.com/users/benmao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benmao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benmao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benmao",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/286/reactions"
} | https://api.github.com/repos/psf/requests/issues/286/timeline | null | completed | null | null | false | [
"It's because `:` is not regarded as legal character according to\n `_LegalChars = string.ascii_letters + string.digits + \"!#$%&'*+-.^_`|~[]_\"`\ndeclaration. Do you think it should be regarded as legal? Can you quote specification?\n",
"urllib2 with CookieJia works.\nWeb server can not get the cookie which requ... |
https://api.github.com/repos/psf/requests/issues/285 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/285/labels{/name} | https://api.github.com/repos/psf/requests/issues/285/comments | https://api.github.com/repos/psf/requests/issues/285/events | https://github.com/psf/requests/issues/285 | 2,327,462 | MDU6SXNzdWUyMzI3NDYy | 285 | Requests don't allow multiple files for a key | {
"avatar_url": "https://avatars.githubusercontent.com/u/617482?v=4",
"events_url": "https://api.github.com/users/obukhov-sergey/events{/privacy}",
"followers_url": "https://api.github.com/users/obukhov-sergey/followers",
"following_url": "https://api.github.com/users/obukhov-sergey/following{/other_user}",
"gists_url": "https://api.github.com/users/obukhov-sergey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/obukhov-sergey",
"id": 617482,
"login": "obukhov-sergey",
"node_id": "MDQ6VXNlcjYxNzQ4Mg==",
"organizations_url": "https://api.github.com/users/obukhov-sergey/orgs",
"received_events_url": "https://api.github.com/users/obukhov-sergey/received_events",
"repos_url": "https://api.github.com/users/obukhov-sergey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/obukhov-sergey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obukhov-sergey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/obukhov-sergey",
"user_view_type": "public"
} | [
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] | closed | true | null | [] | null | 8 | 2011-11-23T08:11:59Z | 2021-09-09T06:00:43Z | 2012-09-21T22:35:17Z | NONE | resolved | We are a startup developing a programmable email platform and we love using Requests.
However we have encountered a problem recently.
Our API tends to send data in key value pairs where a key could have multiple values.
In order to do so we used multi dictionary and it worked pretty well with Requests 0.7.5.
But with new versions of Requests e.g. 0.8.2 it looks like we won't be able to do that.
The problem is that data structures to store 'params', 'data' and 'files' are explicitly set to be dictionaries.
For 'params' and 'data' we could use a list of values for a key but it won't work for 'files'.
I don't know what the mentioned changes in Requests are based on but
is there a chance that the situation would change regarding multi valued keys?
Any advise regarding the issue?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/285/reactions"
} | https://api.github.com/repos/psf/requests/issues/285/timeline | null | completed | null | null | false | [
"This applies to any HTTP request in general: multiple values for a single key must be allowed, not just file uploads.\n",
"@mailgun Multiple values for singe key **are** allowed. See [`test_urlencoded_post_query_multivalued_and_data`](https://github.com/kennethreitz/requests/blob/develop/test_requests.py#L390)\n... |
https://api.github.com/repos/psf/requests/issues/284 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/284/labels{/name} | https://api.github.com/repos/psf/requests/issues/284/comments | https://api.github.com/repos/psf/requests/issues/284/events | https://github.com/psf/requests/issues/284 | 2,303,319 | MDU6SXNzdWUyMzAzMzE5 | 284 | Support passing data and params in ordered dict | {
"avatar_url": "https://avatars.githubusercontent.com/u/92239?v=4",
"events_url": "https://api.github.com/users/piotr-dobrogost/events{/privacy}",
"followers_url": "https://api.github.com/users/piotr-dobrogost/followers",
"following_url": "https://api.github.com/users/piotr-dobrogost/following{/other_user}",
"gists_url": "https://api.github.com/users/piotr-dobrogost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/piotr-dobrogost",
"id": 92239,
"login": "piotr-dobrogost",
"node_id": "MDQ6VXNlcjkyMjM5",
"organizations_url": "https://api.github.com/users/piotr-dobrogost/orgs",
"received_events_url": "https://api.github.com/users/piotr-dobrogost/received_events",
"repos_url": "https://api.github.com/users/piotr-dobrogost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/piotr-dobrogost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/piotr-dobrogost",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 5 | 2011-11-21T10:38:12Z | 2021-09-09T10:00:51Z | 2011-11-26T15:53:59Z | NONE | resolved | Order of multiple params with the same name is important. To support sending such requests there should be an option to pass data and params in ordered dict (and then keep the ordering when building request of course).
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/284/reactions"
} | https://api.github.com/repos/psf/requests/issues/284/timeline | null | completed | null | null | false | [
"Item sequences will be supported everywhere soon (e.g. `[('name', 'kennethreitz'), ('key', 'value')]`\n",
"It has to be supported in urllib3 then, right?\n",
"urllib3 is, as always, a non-issue.\n",
"> Item sequences will be supported everywhere soon (e.g. `[('name', 'kennethreitz'), ('key', 'value')]`\n\nWe... |
https://api.github.com/repos/psf/requests/issues/283 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/283/labels{/name} | https://api.github.com/repos/psf/requests/issues/283/comments | https://api.github.com/repos/psf/requests/issues/283/events | https://github.com/psf/requests/pull/283 | 2,291,742 | MDExOlB1bGxSZXF1ZXN0NTEyMTk1 | 283 | Display full URL when logging. | {
"avatar_url": "https://avatars.githubusercontent.com/u/198537?v=4",
"events_url": "https://api.github.com/users/rgieseke/events{/privacy}",
"followers_url": "https://api.github.com/users/rgieseke/followers",
"following_url": "https://api.github.com/users/rgieseke/following{/other_user}",
"gists_url": "https://api.github.com/users/rgieseke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rgieseke",
"id": 198537,
"login": "rgieseke",
"node_id": "MDQ6VXNlcjE5ODUzNw==",
"organizations_url": "https://api.github.com/users/rgieseke/orgs",
"received_events_url": "https://api.github.com/users/rgieseke/received_events",
"repos_url": "https://api.github.com/users/rgieseke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rgieseke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rgieseke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rgieseke",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-20T09:21:13Z | 2021-09-08T13:06:00Z | 2011-11-26T15:10:08Z | CONTRIBUTOR | resolved | Logging should display the query string as well, shouldn't it?
Test script:
``` python
import requests
import sys
my_config = {'verbose': sys.stderr}
my_params = {'q': 'test'}
r = requests.get('http://www.google.de/search', params=my_params, config=my_config)
```
Before:
`2011-11-20T10:13:37.502444 GET http://www.google.de/search`
After:
`2011-11-20T10:14:02.652295 GET http://www.google.de/search?q=test`
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/283/reactions"
} | https://api.github.com/repos/psf/requests/issues/283/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/283.diff",
"html_url": "https://github.com/psf/requests/pull/283",
"merged_at": "2011-11-26T15:10:08Z",
"patch_url": "https://github.com/psf/requests/pull/283.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/283"
} | true | [
"I agree — thanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/282 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/282/labels{/name} | https://api.github.com/repos/psf/requests/issues/282/comments | https://api.github.com/repos/psf/requests/issues/282/events | https://github.com/psf/requests/issues/282 | 2,289,237 | MDU6SXNzdWUyMjg5MjM3 | 282 | Response.encoding should be available, overridable. | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-19T18:15:02Z | 2021-09-09T11:00:47Z | 2011-11-19T21:13:19Z | CONTRIBUTOR | resolved | - Japanese websites specify the incorrect charset.
- `r.content` would decode as accessed. only raw response will be cached.
- Exclude compression.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/282/reactions"
} | https://api.github.com/repos/psf/requests/issues/282/timeline | null | completed | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/281 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/281/labels{/name} | https://api.github.com/repos/psf/requests/issues/281/comments | https://api.github.com/repos/psf/requests/issues/281/events | https://github.com/psf/requests/issues/281 | 2,289,196 | MDU6SXNzdWUyMjg5MTk2 | 281 | Cookies need to be CookieJar-backed again. | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 39 | 2011-11-19T17:59:54Z | 2021-09-09T09:00:31Z | 2012-05-04T01:59:43Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/376448?v=4",
"events_url": "https://api.github.com/users/slingamn/events{/privacy}",
"followers_url": "https://api.github.com/users/slingamn/followers",
"following_url": "https://api.github.com/users/slingamn/following{/other_user}",
"gists_url": "https://api.github.com/users/slingamn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/slingamn",
"id": 376448,
"login": "slingamn",
"node_id": "MDQ6VXNlcjM3NjQ0OA==",
"organizations_url": "https://api.github.com/users/slingamn/orgs",
"received_events_url": "https://api.github.com/users/slingamn/received_events",
"repos_url": "https://api.github.com/users/slingamn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/slingamn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/slingamn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/slingamn",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/281/reactions"
} | https://api.github.com/repos/psf/requests/issues/281/timeline | null | completed | null | null | false | [
"Why?\n",
"k/v only doesn't account for same keys with different paths.\n",
"So you're gonna use [kennethreitz/oreos](http://github.com/kennethreitz/oreos) then?\n",
"We'll see :)\n",
"Why was this issue closed? I'm having problems with exactly this at the moment. As it is requests can not handle cookies ac... | |
https://api.github.com/repos/psf/requests/issues/280 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/280/labels{/name} | https://api.github.com/repos/psf/requests/issues/280/comments | https://api.github.com/repos/psf/requests/issues/280/events | https://github.com/psf/requests/pull/280 | 2,285,560 | MDExOlB1bGxSZXF1ZXN0NTEwNDU4 | 280 | Updated docs with an example of explicit filename in file uploads section | {
"avatar_url": "https://avatars.githubusercontent.com/u/26015?v=4",
"events_url": "https://api.github.com/users/rmax/events{/privacy}",
"followers_url": "https://api.github.com/users/rmax/followers",
"following_url": "https://api.github.com/users/rmax/following{/other_user}",
"gists_url": "https://api.github.com/users/rmax/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmax",
"id": 26015,
"login": "rmax",
"node_id": "MDQ6VXNlcjI2MDE1",
"organizations_url": "https://api.github.com/users/rmax/orgs",
"received_events_url": "https://api.github.com/users/rmax/received_events",
"repos_url": "https://api.github.com/users/rmax/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmax/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmax/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmax",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-18T22:58:43Z | 2021-09-08T13:05:59Z | 2011-11-19T05:26:08Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/280/reactions"
} | https://api.github.com/repos/psf/requests/issues/280/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/280.diff",
"html_url": "https://github.com/psf/requests/pull/280",
"merged_at": "2011-11-19T05:26:08Z",
"patch_url": "https://github.com/psf/requests/pull/280.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/280"
} | true | [
"Awesome, thanks!\n"
] | |
https://api.github.com/repos/psf/requests/issues/279 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/279/labels{/name} | https://api.github.com/repos/psf/requests/issues/279/comments | https://api.github.com/repos/psf/requests/issues/279/events | https://github.com/psf/requests/pull/279 | 2,285,513 | MDExOlB1bGxSZXF1ZXN0NTEwNDQw | 279 | use session's hooks as defaults for every requests.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/26015?v=4",
"events_url": "https://api.github.com/users/rmax/events{/privacy}",
"followers_url": "https://api.github.com/users/rmax/followers",
"following_url": "https://api.github.com/users/rmax/following{/other_user}",
"gists_url": "https://api.github.com/users/rmax/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmax",
"id": 26015,
"login": "rmax",
"node_id": "MDQ6VXNlcjI2MDE1",
"organizations_url": "https://api.github.com/users/rmax/orgs",
"received_events_url": "https://api.github.com/users/rmax/received_events",
"repos_url": "https://api.github.com/users/rmax/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmax/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmax/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmax",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-18T22:53:41Z | 2021-09-08T13:05:59Z | 2011-11-19T05:26:11Z | CONTRIBUTOR | resolved | Current Session class allows to set a parameter hooks, but this parameter is not used in requests.
This change fixes that by using Session's hooks as defaults for every requests, letting override per request.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/279/reactions"
} | https://api.github.com/repos/psf/requests/issues/279/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/279.diff",
"html_url": "https://github.com/psf/requests/pull/279",
"merged_at": "2011-11-19T05:26:11Z",
"patch_url": "https://github.com/psf/requests/pull/279.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/279"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/278 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/278/labels{/name} | https://api.github.com/repos/psf/requests/issues/278/comments | https://api.github.com/repos/psf/requests/issues/278/events | https://github.com/psf/requests/pull/278 | 2,285,234 | MDExOlB1bGxSZXF1ZXN0NTEwMzMz | 278 | use session's hooks as defaults for every requests. | {
"avatar_url": "https://avatars.githubusercontent.com/u/26015?v=4",
"events_url": "https://api.github.com/users/rmax/events{/privacy}",
"followers_url": "https://api.github.com/users/rmax/followers",
"following_url": "https://api.github.com/users/rmax/following{/other_user}",
"gists_url": "https://api.github.com/users/rmax/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmax",
"id": 26015,
"login": "rmax",
"node_id": "MDQ6VXNlcjI2MDE1",
"organizations_url": "https://api.github.com/users/rmax/orgs",
"received_events_url": "https://api.github.com/users/rmax/received_events",
"repos_url": "https://api.github.com/users/rmax/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmax/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmax/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmax",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-18T22:21:56Z | 2021-09-08T13:05:58Z | 2011-11-18T22:52:17Z | CONTRIBUTOR | resolved | Current `Session` class allows to set a parameter `hooks`, but this parameter is not used in requests.
This change fixes that by using `Session`'s hooks as defaults for every requests, letting override per request.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/26015?v=4",
"events_url": "https://api.github.com/users/rmax/events{/privacy}",
"followers_url": "https://api.github.com/users/rmax/followers",
"following_url": "https://api.github.com/users/rmax/following{/other_user}",
"gists_url": "https://api.github.com/users/rmax/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmax",
"id": 26015,
"login": "rmax",
"node_id": "MDQ6VXNlcjI2MDE1",
"organizations_url": "https://api.github.com/users/rmax/orgs",
"received_events_url": "https://api.github.com/users/rmax/received_events",
"repos_url": "https://api.github.com/users/rmax/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmax/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmax/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmax",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/278/reactions"
} | https://api.github.com/repos/psf/requests/issues/278/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/278.diff",
"html_url": "https://github.com/psf/requests/pull/278",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/278.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/278"
} | true | [
"messed up pull request. I'll repeat again.\n"
] |
https://api.github.com/repos/psf/requests/issues/277 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/277/labels{/name} | https://api.github.com/repos/psf/requests/issues/277/comments | https://api.github.com/repos/psf/requests/issues/277/events | https://github.com/psf/requests/pull/277 | 2,273,536 | MDExOlB1bGxSZXF1ZXN0NTA1OTUx | 277 | some additions to .gitignore | {
"avatar_url": "https://avatars.githubusercontent.com/u/92239?v=4",
"events_url": "https://api.github.com/users/piotr-dobrogost/events{/privacy}",
"followers_url": "https://api.github.com/users/piotr-dobrogost/followers",
"following_url": "https://api.github.com/users/piotr-dobrogost/following{/other_user}",
"gists_url": "https://api.github.com/users/piotr-dobrogost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/piotr-dobrogost",
"id": 92239,
"login": "piotr-dobrogost",
"node_id": "MDQ6VXNlcjkyMjM5",
"organizations_url": "https://api.github.com/users/piotr-dobrogost/orgs",
"received_events_url": "https://api.github.com/users/piotr-dobrogost/received_events",
"repos_url": "https://api.github.com/users/piotr-dobrogost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/piotr-dobrogost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/piotr-dobrogost",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 4 | 2011-11-17T20:46:58Z | 2021-09-08T13:05:58Z | 2011-11-17T21:05:51Z | NONE | resolved | added Eclipse project files and .egg-info dir
entries sorted alphabetically (case-insensitive)
| {
"avatar_url": "https://avatars.githubusercontent.com/u/92239?v=4",
"events_url": "https://api.github.com/users/piotr-dobrogost/events{/privacy}",
"followers_url": "https://api.github.com/users/piotr-dobrogost/followers",
"following_url": "https://api.github.com/users/piotr-dobrogost/following{/other_user}",
"gists_url": "https://api.github.com/users/piotr-dobrogost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/piotr-dobrogost",
"id": 92239,
"login": "piotr-dobrogost",
"node_id": "MDQ6VXNlcjkyMjM5",
"organizations_url": "https://api.github.com/users/piotr-dobrogost/orgs",
"received_events_url": "https://api.github.com/users/piotr-dobrogost/received_events",
"repos_url": "https://api.github.com/users/piotr-dobrogost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/piotr-dobrogost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/piotr-dobrogost",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/277/reactions"
} | https://api.github.com/repos/psf/requests/issues/277/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/277.diff",
"html_url": "https://github.com/psf/requests/pull/277",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/277.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/277"
} | true | [
"I'll add the `.egg-info`, but not the ecplise files. Those belong in your [global gitignore](http://help.github.com/ignore-files/) :)\n",
"So what's `.idea` entry doing there?\n",
"It should absolutely be removed :)\n",
"Global gitignore wasn't known when I started this :)\n"
] |
https://api.github.com/repos/psf/requests/issues/276 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/276/labels{/name} | https://api.github.com/repos/psf/requests/issues/276/comments | https://api.github.com/repos/psf/requests/issues/276/events | https://github.com/psf/requests/pull/276 | 2,267,845 | MDExOlB1bGxSZXF1ZXN0NTAzODg1 | 276 | Converted auth to use callable objects instead of tuples. | {
"avatar_url": "https://avatars.githubusercontent.com/u/22723?v=4",
"events_url": "https://api.github.com/users/idan/events{/privacy}",
"followers_url": "https://api.github.com/users/idan/followers",
"following_url": "https://api.github.com/users/idan/following{/other_user}",
"gists_url": "https://api.github.com/users/idan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/idan",
"id": 22723,
"login": "idan",
"node_id": "MDQ6VXNlcjIyNzIz",
"organizations_url": "https://api.github.com/users/idan/orgs",
"received_events_url": "https://api.github.com/users/idan/received_events",
"repos_url": "https://api.github.com/users/idan/repos",
"site_admin": true,
"starred_url": "https://api.github.com/users/idan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/idan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/idan",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 12 | 2011-11-17T11:47:29Z | 2021-09-08T13:05:57Z | 2011-11-26T15:14:27Z | CONTRIBUTOR | resolved | My attempt to address #275.
This seems a lot more explicit/clean, though I confess that I'm not aware of the considerations that led to the current implementation.
I also think this is a good first step towards implementing OAuth support (#65).
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/276/reactions"
} | https://api.github.com/repos/psf/requests/issues/276/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/276.diff",
"html_url": "https://github.com/psf/requests/pull/276",
"merged_at": "2011-11-26T15:14:27Z",
"patch_url": "https://github.com/psf/requests/pull/276.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/276"
} | true | [
"@idangazit I can see you referenced this pull request in the main [OAUTH Feature request](https://github.com/kennethreitz/requests/issues/65).\n\nAfter reading the full thread thoroughly I can see how @maraujop [already thought about doing a pull request and then decided better](https://github.com/kennethreitz/req... |
https://api.github.com/repos/psf/requests/issues/275 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/275/labels{/name} | https://api.github.com/repos/psf/requests/issues/275/comments | https://api.github.com/repos/psf/requests/issues/275/events | https://github.com/psf/requests/issues/275 | 2,267,407 | MDU6SXNzdWUyMjY3NDA3 | 275 | Custom authentication is broken / incorrect docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/22723?v=4",
"events_url": "https://api.github.com/users/idan/events{/privacy}",
"followers_url": "https://api.github.com/users/idan/followers",
"following_url": "https://api.github.com/users/idan/following{/other_user}",
"gists_url": "https://api.github.com/users/idan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/idan",
"id": 22723,
"login": "idan",
"node_id": "MDQ6VXNlcjIyNzIz",
"organizations_url": "https://api.github.com/users/idan/orgs",
"received_events_url": "https://api.github.com/users/idan/received_events",
"repos_url": "https://api.github.com/users/idan/repos",
"site_admin": true,
"starred_url": "https://api.github.com/users/idan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/idan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/idan",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-11-17T10:49:37Z | 2021-09-09T10:00:53Z | 2011-11-26T15:50:59Z | CONTRIBUTOR | resolved | # Teh broken
Consider the following code, mostly lifted from the docs:
``` python
def pizza_auth(r, username):
"""Attaches HTTP Pizza Authentication to the given Request object."""
r.headers['X-Pizza'] = username
return r
import requests
r = requests.get('http://www.google.com', auth=(pizza_auth, 'foo'))
print r.request.headers['X-Pizza']
```
It appears that basic auth is hardwired for cases where two params are passed ([source](https://github.com/kennethreitz/requests/blob/master/requests/auth.py#L133-134)).
Either I'm not getting something, or auth doesn't work as documented / the way I expect.
# A proposal
Why not make all auth handlers callable objects? For example:
``` python
class AuthBase(object):
"""Base class that all auth implementations derive from"""
def __call__(self, r):
raise NotImplementedError('Auth hooks must be callable.')
class HTTPBasic(AuthBase):
def __init__(self, username, password):
self.username = str(username)
self.password = str(password)
def __call__(self, r):
auth_s = b64encode('%s:%s' % (self.username, self.password))
r.headers['Authorization'] = ('Basic %s' % auth_s)
return r
# Inline usage
r = requests.get('http://foo.com', auth=HTTPBasic('idan', 'secret'))
# Also in recyclable form!
idan_auth = HTTPBasic('idan', 'secret')
r1 = requests.get('http://foo.com', auth=idan_auth)
r2 = requests.get('http://bar.com', auth=idan_auth)
```
Such an approach has a few benefits:
- Doesn't make the trivial use-case's syntax any worse (if anything, it seems more explicit/clearer to me)
- Makes reuse much simpler if you're not starting a session.
- Facilitates implementation of more complex forms of auth, like OAuth
For the latter case, I could do something like:
``` python
idan_oauth = OAuth(consumer_key, consumer_secret, access_token, access_token_secret)
requests.get(twitter_api_url, auth=idan_oauth)
# or even
client = session(auth=idan_oauth)
r1 = client.get(an_endpoint)
r2 = client.get(another_endpoint)
```
… which would keep the OAuth implementation details neatly encapsulated inside the OAuth class.
This would also make adding OAuth (#65) relatively easier.
Thoughts?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/275/reactions"
} | https://api.github.com/repos/psf/requests/issues/275/timeline | null | completed | null | null | false | [
"Here's an example implementation of header-based OAuth: https://gist.github.com/1373019\n\nI would probably break it into an OAuthBase class with the common methods, and then subclass for every OAuth parameter method (header, querystring, body).\n\nAll in all, it's only ~100 loc.\n",
"Sorry for the delay on this... |
https://api.github.com/repos/psf/requests/issues/274 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/274/labels{/name} | https://api.github.com/repos/psf/requests/issues/274/comments | https://api.github.com/repos/psf/requests/issues/274/events | https://github.com/psf/requests/pull/274 | 2,267,285 | MDExOlB1bGxSZXF1ZXN0NTAzNzA0 | 274 | Corrected period to comma. | {
"avatar_url": "https://avatars.githubusercontent.com/u/408526?v=4",
"events_url": "https://api.github.com/users/elpres/events{/privacy}",
"followers_url": "https://api.github.com/users/elpres/followers",
"following_url": "https://api.github.com/users/elpres/following{/other_user}",
"gists_url": "https://api.github.com/users/elpres/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/elpres",
"id": 408526,
"login": "elpres",
"node_id": "MDQ6VXNlcjQwODUyNg==",
"organizations_url": "https://api.github.com/users/elpres/orgs",
"received_events_url": "https://api.github.com/users/elpres/received_events",
"repos_url": "https://api.github.com/users/elpres/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/elpres/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elpres/subscriptions",
"type": "User",
"url": "https://api.github.com/users/elpres",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-17T10:32:21Z | 2021-09-08T13:05:57Z | 2011-11-18T20:06:40Z | NONE | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/274/reactions"
} | https://api.github.com/repos/psf/requests/issues/274/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/274.diff",
"html_url": "https://github.com/psf/requests/pull/274",
"merged_at": "2011-11-18T20:06:40Z",
"patch_url": "https://github.com/psf/requests/pull/274.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/274"
} | true | [
"Thanks!\n"
] | |
https://api.github.com/repos/psf/requests/issues/273 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/273/labels{/name} | https://api.github.com/repos/psf/requests/issues/273/comments | https://api.github.com/repos/psf/requests/issues/273/events | https://github.com/psf/requests/pull/273 | 2,263,757 | MDExOlB1bGxSZXF1ZXN0NTAyNTgy | 273 | Correct handling of URLs with quoted slashes. | {
"avatar_url": "https://avatars.githubusercontent.com/u/34695?v=4",
"events_url": "https://api.github.com/users/rfk/events{/privacy}",
"followers_url": "https://api.github.com/users/rfk/followers",
"following_url": "https://api.github.com/users/rfk/following{/other_user}",
"gists_url": "https://api.github.com/users/rfk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rfk",
"id": 34695,
"login": "rfk",
"node_id": "MDQ6VXNlcjM0Njk1",
"organizations_url": "https://api.github.com/users/rfk/orgs",
"received_events_url": "https://api.github.com/users/rfk/received_events",
"repos_url": "https://api.github.com/users/rfk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rfk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rfk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rfk",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 4 | 2011-11-17T00:04:53Z | 2021-09-08T23:05:27Z | 2011-11-18T19:48:49Z | CONTRIBUTOR | resolved | The Request class currently does a urllib.quote(urllib.unquote(path)) cycle to ensure consistent quoting on the input URL. Unfortunately this breaks paths that contain quoted slashes (i.e. "%2F") since they get unquoted by urllib.unquote but are re-quoted by urllib.quote.
This patch adds a requote_path() function that does the same thing but is careful not to destroy quoted slashes.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/273/reactions"
} | https://api.github.com/repos/psf/requests/issues/273/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/273.diff",
"html_url": "https://github.com/psf/requests/pull/273",
"merged_at": "2011-11-18T19:48:49Z",
"patch_url": "https://github.com/psf/requests/pull/273.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/273"
} | true | [
"still broken. try to run\n\n``` requests.get('http://www.cocktail.uk.com/db/random.asp')\n```\n\nshould have 404\n",
"This appears unrelated to my change, as it also gives a 404 using the latest release build. In any case, I've pushed a change that makes it work for me.\n",
"Oh man, thank you ever so much.\nN... |
https://api.github.com/repos/psf/requests/issues/272 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/272/labels{/name} | https://api.github.com/repos/psf/requests/issues/272/comments | https://api.github.com/repos/psf/requests/issues/272/events | https://github.com/psf/requests/issues/272 | 2,257,713 | MDU6SXNzdWUyMjU3NzEz | 272 | Session cookies break requests-oauth | {
"avatar_url": "https://avatars.githubusercontent.com/u/252257?v=4",
"events_url": "https://api.github.com/users/maraujop/events{/privacy}",
"followers_url": "https://api.github.com/users/maraujop/followers",
"following_url": "https://api.github.com/users/maraujop/following{/other_user}",
"gists_url": "https://api.github.com/users/maraujop/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maraujop",
"id": 252257,
"login": "maraujop",
"node_id": "MDQ6VXNlcjI1MjI1Nw==",
"organizations_url": "https://api.github.com/users/maraujop/orgs",
"received_events_url": "https://api.github.com/users/maraujop/received_events",
"repos_url": "https://api.github.com/users/maraujop/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maraujop/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maraujop/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maraujop",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 11 | 2011-11-16T15:47:52Z | 2021-09-09T11:00:48Z | 2011-11-17T13:04:35Z | NONE | resolved | Hi,
requests 0.8 breaks <a href="https://github.com/maraujop/requests-oauth">requests-oauth</a>. See the related issue in requests-oauth:
https://github.com/maraujop/requests-oauth/issues/5
After debugging both together, I've found out the culprit is this line:
https://github.com/kennethreitz/requests/blob/develop/requests/sessions.py#L190
Cookies were not updated automatically in sessions before 0.8. If I add `self.cookies = {}` before sending the request, requests-oauth starts working again.
Not sure if this is a bug or you want me to set cookies to an empty dictionary in my hook.
Cheers,
Miguel
| {
"avatar_url": "https://avatars.githubusercontent.com/u/252257?v=4",
"events_url": "https://api.github.com/users/maraujop/events{/privacy}",
"followers_url": "https://api.github.com/users/maraujop/followers",
"following_url": "https://api.github.com/users/maraujop/following{/other_user}",
"gists_url": "https://api.github.com/users/maraujop/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maraujop",
"id": 252257,
"login": "maraujop",
"node_id": "MDQ6VXNlcjI1MjI1Nw==",
"organizations_url": "https://api.github.com/users/maraujop/orgs",
"received_events_url": "https://api.github.com/users/maraujop/received_events",
"repos_url": "https://api.github.com/users/maraujop/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maraujop/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maraujop/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maraujop",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/272/reactions"
} | https://api.github.com/repos/psf/requests/issues/272/timeline | null | completed | null | null | false | [
"I don't see what the problem is, but the requests behavior is intentional.\n",
"How would cookies break your hook? \n",
"Me neither, but trust me, if I set them to an empty dict, tests start passing again.\n\nI thought you would have a clue about it. I'm guessing Twitter OAuth API doesn't support cookies?\n",
... |
https://api.github.com/repos/psf/requests/issues/271 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/271/labels{/name} | https://api.github.com/repos/psf/requests/issues/271/comments | https://api.github.com/repos/psf/requests/issues/271/events | https://github.com/psf/requests/pull/271 | 2,252,776 | MDExOlB1bGxSZXF1ZXN0NDk4ODA5 | 271 | Filenames improvement and cookie fix | {
"avatar_url": "https://avatars.githubusercontent.com/u/26015?v=4",
"events_url": "https://api.github.com/users/rmax/events{/privacy}",
"followers_url": "https://api.github.com/users/rmax/followers",
"following_url": "https://api.github.com/users/rmax/following{/other_user}",
"gists_url": "https://api.github.com/users/rmax/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmax",
"id": 26015,
"login": "rmax",
"node_id": "MDQ6VXNlcjI2MDE1",
"organizations_url": "https://api.github.com/users/rmax/orgs",
"received_events_url": "https://api.github.com/users/rmax/received_events",
"repos_url": "https://api.github.com/users/rmax/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmax/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmax/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmax",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-16T04:06:32Z | 2021-09-08T13:05:56Z | 2011-11-18T20:34:07Z | CONTRIBUTOR | resolved | - added support for explicit filenames
- use ";" as cookie separator for multiple values
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/271/reactions"
} | https://api.github.com/repos/psf/requests/issues/271/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/271.diff",
"html_url": "https://github.com/psf/requests/pull/271",
"merged_at": "2011-11-18T20:34:07Z",
"patch_url": "https://github.com/psf/requests/pull/271.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/271"
} | true | [
"Thanks! Do you think you could add this to the docs?\n"
] |
https://api.github.com/repos/psf/requests/issues/270 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/270/labels{/name} | https://api.github.com/repos/psf/requests/issues/270/comments | https://api.github.com/repos/psf/requests/issues/270/events | https://github.com/psf/requests/issues/270 | 2,245,579 | MDU6SXNzdWUyMjQ1NTc5 | 270 | allow_redirects=True by default also for post-requests | {
"avatar_url": "https://avatars.githubusercontent.com/u/59132?v=4",
"events_url": "https://api.github.com/users/albertz/events{/privacy}",
"followers_url": "https://api.github.com/users/albertz/followers",
"following_url": "https://api.github.com/users/albertz/following{/other_user}",
"gists_url": "https://api.github.com/users/albertz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/albertz",
"id": 59132,
"login": "albertz",
"node_id": "MDQ6VXNlcjU5MTMy",
"organizations_url": "https://api.github.com/users/albertz/orgs",
"received_events_url": "https://api.github.com/users/albertz/received_events",
"repos_url": "https://api.github.com/users/albertz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/albertz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/albertz",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-11-15T15:53:23Z | 2021-09-09T10:00:51Z | 2011-11-26T15:42:16Z | NONE | resolved | I think it makes sense to also have allow_redirects=True as default for POST-requests.
I have seen Ruby on Rails application in the wild which often directly redirect after a POST.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/270/reactions"
} | https://api.github.com/repos/psf/requests/issues/270/timeline | null | completed | null | null | false | [
"Absolutely not. Only 303 responses should be treated this way.\n\nPlease see http://tools.ietf.org/html/rfc1945. \n",
"If we agree to implement change requested in issue [#269](https://github.com/kennethreitz/requests/issues/269) we should also implement automatic redirects for 301 and 302 redirects after POST r... |
https://api.github.com/repos/psf/requests/issues/269 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/269/labels{/name} | https://api.github.com/repos/psf/requests/issues/269/comments | https://api.github.com/repos/psf/requests/issues/269/events | https://github.com/psf/requests/pull/269 | 2,245,134 | MDExOlB1bGxSZXF1ZXN0NDk2MDU3 | 269 | fix subsequent redirect request method type | {
"avatar_url": "https://avatars.githubusercontent.com/u/59132?v=4",
"events_url": "https://api.github.com/users/albertz/events{/privacy}",
"followers_url": "https://api.github.com/users/albertz/followers",
"following_url": "https://api.github.com/users/albertz/following{/other_user}",
"gists_url": "https://api.github.com/users/albertz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/albertz",
"id": 59132,
"login": "albertz",
"node_id": "MDQ6VXNlcjU5MTMy",
"organizations_url": "https://api.github.com/users/albertz/orgs",
"received_events_url": "https://api.github.com/users/albertz/received_events",
"repos_url": "https://api.github.com/users/albertz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/albertz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/albertz",
"user_view_type": "public"
} | [
{
"color": "02e10c",
"default": false,
"description": null,
"id": 76800,
"name": "Feature Request",
"node_id": "MDU6TGFiZWw3NjgwMA==",
"url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request"
}
] | closed | true | null | [] | null | 19 | 2011-11-15T15:16:15Z | 2021-09-09T00:01:26Z | 2012-03-31T03:32:47Z | NONE | resolved | E.g., after a POST with a 302 response, we should do a GET. This is how all browsers do it for historical reasons. And some websites even don't work otherwise.
See also: http://stackoverflow.com/questions/8138137/http-post-request-receives-a-302-should-the-redirect-request-be-a-get
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/269/reactions"
} | https://api.github.com/repos/psf/requests/issues/269/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/269.diff",
"html_url": "https://github.com/psf/requests/pull/269",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/269.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/269"
} | true | [
"1. If elegance (among other things) means adhering to the spec then according to [10.3.3](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3) of rfc2616 _If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless... |
https://api.github.com/repos/psf/requests/issues/268 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/268/labels{/name} | https://api.github.com/repos/psf/requests/issues/268/comments | https://api.github.com/repos/psf/requests/issues/268/events | https://github.com/psf/requests/pull/268 | 2,240,957 | MDExOlB1bGxSZXF1ZXN0NDk0ODUy | 268 | fixed: 301 request does not use proxy. | {
"avatar_url": "https://avatars.githubusercontent.com/u/173095?v=4",
"events_url": "https://api.github.com/users/benmao/events{/privacy}",
"followers_url": "https://api.github.com/users/benmao/followers",
"following_url": "https://api.github.com/users/benmao/following{/other_user}",
"gists_url": "https://api.github.com/users/benmao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benmao",
"id": 173095,
"login": "benmao",
"node_id": "MDQ6VXNlcjE3MzA5NQ==",
"organizations_url": "https://api.github.com/users/benmao/orgs",
"received_events_url": "https://api.github.com/users/benmao/received_events",
"repos_url": "https://api.github.com/users/benmao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benmao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benmao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benmao",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-15T07:53:52Z | 2021-09-08T13:05:55Z | 2011-11-15T13:58:10Z | NONE | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/268/reactions"
} | https://api.github.com/repos/psf/requests/issues/268/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/268.diff",
"html_url": "https://github.com/psf/requests/pull/268",
"merged_at": "2011-11-15T13:58:10Z",
"patch_url": "https://github.com/psf/requests/pull/268.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/268"
} | true | [
"thanks!\n"
] | |
https://api.github.com/repos/psf/requests/issues/267 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/267/labels{/name} | https://api.github.com/repos/psf/requests/issues/267/comments | https://api.github.com/repos/psf/requests/issues/267/events | https://github.com/psf/requests/pull/267 | 2,239,620 | MDExOlB1bGxSZXF1ZXN0NDk0NDQ1 | 267 | fixed proxy | {
"avatar_url": "https://avatars.githubusercontent.com/u/173095?v=4",
"events_url": "https://api.github.com/users/benmao/events{/privacy}",
"followers_url": "https://api.github.com/users/benmao/followers",
"following_url": "https://api.github.com/users/benmao/following{/other_user}",
"gists_url": "https://api.github.com/users/benmao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benmao",
"id": 173095,
"login": "benmao",
"node_id": "MDQ6VXNlcjE3MzA5NQ==",
"organizations_url": "https://api.github.com/users/benmao/orgs",
"received_events_url": "https://api.github.com/users/benmao/received_events",
"repos_url": "https://api.github.com/users/benmao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benmao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benmao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benmao",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-15T03:01:18Z | 2021-09-08T13:05:56Z | 2011-11-15T03:04:03Z | NONE | resolved | https://github.com/kennethreitz/requests/issues/266
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/267/reactions"
} | https://api.github.com/repos/psf/requests/issues/267/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/267.diff",
"html_url": "https://github.com/psf/requests/pull/267",
"merged_at": "2011-11-15T03:04:03Z",
"patch_url": "https://github.com/psf/requests/pull/267.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/267"
} | true | [
"Excellent, thanks! I need to add a unittest for that....\n"
] |
https://api.github.com/repos/psf/requests/issues/266 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/266/labels{/name} | https://api.github.com/repos/psf/requests/issues/266/comments | https://api.github.com/repos/psf/requests/issues/266/events | https://github.com/psf/requests/issues/266 | 2,231,452 | MDU6SXNzdWUyMjMxNDUy | 266 | Proxy dose not work. | {
"avatar_url": "https://avatars.githubusercontent.com/u/173095?v=4",
"events_url": "https://api.github.com/users/benmao/events{/privacy}",
"followers_url": "https://api.github.com/users/benmao/followers",
"following_url": "https://api.github.com/users/benmao/following{/other_user}",
"gists_url": "https://api.github.com/users/benmao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benmao",
"id": 173095,
"login": "benmao",
"node_id": "MDQ6VXNlcjE3MzA5NQ==",
"organizations_url": "https://api.github.com/users/benmao/orgs",
"received_events_url": "https://api.github.com/users/benmao/received_events",
"repos_url": "https://api.github.com/users/benmao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benmao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benmao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benmao",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 6 | 2011-11-14T15:18:20Z | 2021-09-09T11:00:50Z | 2011-11-15T15:03:29Z | NONE | resolved | My test Code:
``` Python
import requests
r = requests.get('http://www.google.com', proxies={'http': '127.0.0.1:888'})
print r.content
```
proxy, {'http': '127.0.0.1:888'} does not exist,so there should not return the correct results.
Looks like not using a proxy.
version: 0.8
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/266/reactions"
} | https://api.github.com/repos/psf/requests/issues/266/timeline | null | completed | null | null | false | [
"In addition to that, proxies are not used in redirects.\n",
"Fixed!\n",
"Need to find a way to test proxies btw.\n",
"I use Charles http://www.charlesproxy.com/ .\n",
"I meant in the testsuite.\n",
"v0.8.1 was just released, which fixes this!\n"
] |
https://api.github.com/repos/psf/requests/issues/265 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/265/labels{/name} | https://api.github.com/repos/psf/requests/issues/265/comments | https://api.github.com/repos/psf/requests/issues/265/events | https://github.com/psf/requests/issues/265 | 2,231,010 | MDU6SXNzdWUyMjMxMDEw | 265 | HTTP request uses full URL, should be path only | {
"avatar_url": "https://avatars.githubusercontent.com/u/201022?v=4",
"events_url": "https://api.github.com/users/pennersr/events{/privacy}",
"followers_url": "https://api.github.com/users/pennersr/followers",
"following_url": "https://api.github.com/users/pennersr/following{/other_user}",
"gists_url": "https://api.github.com/users/pennersr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pennersr",
"id": 201022,
"login": "pennersr",
"node_id": "MDQ6VXNlcjIwMTAyMg==",
"organizations_url": "https://api.github.com/users/pennersr/orgs",
"received_events_url": "https://api.github.com/users/pennersr/received_events",
"repos_url": "https://api.github.com/users/pennersr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pennersr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pennersr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pennersr",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 19 | 2011-11-14T14:30:31Z | 2021-09-09T05:00:47Z | 2011-11-15T14:54:51Z | CONTRIBUTOR | resolved | Possibly related to #174: these are links that work just fine in a browser or `curl`/`wget`, but `requests` seems to have trouble with them:
- http://www.rankingz.com
- http://my.jibecompany.com
Example:
```
>>> import requests
>>> requests.get('http://www.rankingz.com')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/pennersr/src/ep/opt/python2.6/src/requests/requests/api.py", line 78, in get
return request('get', url, **kwargs)
File "/Users/pennersr/src/ep/opt/python2.6/src/requests/requests/api.py", line 65, in request
prefetch=prefetch
File "/Users/pennersr/src/ep/opt/python2.6/src/requests/requests/sessions.py", line 187, in request
r.send(prefetch=prefetch)
File "/Users/pennersr/src/ep/opt/python2.6/src/requests/requests/models.py", line 432, in send
self._build_response(r)
File "/Users/pennersr/src/ep/opt/python2.6/src/requests/requests/models.py", line 245, in _build_response
request.send()
File "/Users/pennersr/src/ep/opt/python2.6/src/requests/requests/models.py", line 424, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError: Max retries exceeded for url: http://www.rankingz.comhttp/www.rankingz.com
```
Examining the HTTP headers reveals...:
```
GET http://www.rankingz.com HTTP/1.1
Host: www.rankingz.com
Accept-Encoding: identity, deflate, compress, gzip
Accept: */*
User-Agent: python-requests/0.8.0
HTTP/1.1 301 Moved Permanently
Server: Apache
X-Powered-By: PHP/5.3.2-1ubuntu4.10
X-Pingback: http://www.rankingz.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Mon, 14 Nov 2011 14:20:48 GMT
Cache-Control: public
Pragma: no-cache
Location: http://www.rankingz.comhttp/www.rankingz.com
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Content-Length: 20
Date: Mon, 14 Nov 2011 14:20:48 GMT
X-Varnish: 875757742
Age: 0
Via: 1.1 varnish
Connection: keep-alive
```
... whereas `curl` shows:
```
GET / HTTP/1.1
User-Agent: curl/7.22.0 (x86_64-apple-darwin11.1.0) libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 libidn/1.22
Host: www.rankingz.com
Accept: */*
HTTP/1.1 200 OK
Server: Apache
X-Powered-By: PHP/5.3.2-1ubuntu4.10
X-Pingback: http://www.rankingz.com/xmlrpc.php
Last-Modified: Mon, 14 Nov 2011 14:25:32 GMT
Vary: Cookie,Accept-Encoding
Expires: Mon, 14 Nov 2011 14:26:52 GMT
Pragma: public
Cache-Control: public
Content-Type: text/html; charset=UTF-8
X-Cacheable: NO: Vary: Cookie
Content-Length: 25914
Date: Mon, 14 Nov 2011 14:25:32 GMT
X-Varnish: 875757934
Age: 0
Via: 1.1 varnish
Connection: keep-alive
```
`requests` should be using "GET /" instead of "GET http://www.rankingz.com".
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/265/reactions"
} | https://api.github.com/repos/psf/requests/issues/265/timeline | null | completed | null | null | false | [
"For what it is worth, an earlier version works fine:\n\n```\n>>> requests.__version__\n'0.6.2 (dev)'\n>>> requests.get('http://www.jibecompany.com')\n<Response [200]>\n```\n\nThis one indeed uses the following headers:\n\n```\nGET / HTTP/1.1\nHost: www.jibecompany.com\nUser-Agent: python-requests.org\nConnection: ... |
https://api.github.com/repos/psf/requests/issues/264 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/264/labels{/name} | https://api.github.com/repos/psf/requests/issues/264/comments | https://api.github.com/repos/psf/requests/issues/264/events | https://github.com/psf/requests/pull/264 | 2,228,338 | MDExOlB1bGxSZXF1ZXN0NDkwODI1 | 264 | Pass along timeout when following redirects (closes #263) | {
"avatar_url": "https://avatars.githubusercontent.com/u/201022?v=4",
"events_url": "https://api.github.com/users/pennersr/events{/privacy}",
"followers_url": "https://api.github.com/users/pennersr/followers",
"following_url": "https://api.github.com/users/pennersr/following{/other_user}",
"gists_url": "https://api.github.com/users/pennersr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pennersr",
"id": 201022,
"login": "pennersr",
"node_id": "MDQ6VXNlcjIwMTAyMg==",
"organizations_url": "https://api.github.com/users/pennersr/orgs",
"received_events_url": "https://api.github.com/users/pennersr/received_events",
"repos_url": "https://api.github.com/users/pennersr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pennersr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pennersr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pennersr",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-14T09:04:19Z | 2021-09-08T13:05:55Z | 2011-11-14T21:42:18Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/264/reactions"
} | https://api.github.com/repos/psf/requests/issues/264/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/264.diff",
"html_url": "https://github.com/psf/requests/pull/264",
"merged_at": "2011-11-14T21:42:18Z",
"patch_url": "https://github.com/psf/requests/pull/264.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/264"
} | true | [] | |
https://api.github.com/repos/psf/requests/issues/263 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/263/labels{/name} | https://api.github.com/repos/psf/requests/issues/263/comments | https://api.github.com/repos/psf/requests/issues/263/events | https://github.com/psf/requests/issues/263 | 2,228,315 | MDU6SXNzdWUyMjI4MzE1 | 263 | Timeout ignored when following redirects | {
"avatar_url": "https://avatars.githubusercontent.com/u/201022?v=4",
"events_url": "https://api.github.com/users/pennersr/events{/privacy}",
"followers_url": "https://api.github.com/users/pennersr/followers",
"following_url": "https://api.github.com/users/pennersr/following{/other_user}",
"gists_url": "https://api.github.com/users/pennersr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pennersr",
"id": 201022,
"login": "pennersr",
"node_id": "MDQ6VXNlcjIwMTAyMg==",
"organizations_url": "https://api.github.com/users/pennersr/orgs",
"received_events_url": "https://api.github.com/users/pennersr/received_events",
"repos_url": "https://api.github.com/users/pennersr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pennersr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pennersr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pennersr",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-14T08:59:15Z | 2021-09-09T11:00:51Z | 2011-11-14T21:42:20Z | CONTRIBUTOR | resolved | To reproduce, add a print to requests.models.Request.send():
```
def send(self, anyway=False, prefetch=False):
"""...."""
print "send with timeout %s" % self.timeout
```
Then:
```
>>> requests.head('http://httpbin.org/redirect/3', timeout=10)
send with timeout 10
send with timeout None
send with timeout None
send with timeout None
<Response [200]>
```
I expected a timeout of 10 everywhere, not None.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/263/reactions"
} | https://api.github.com/repos/psf/requests/issues/263/timeline | null | completed | null | null | false | [
"(Sorry for the closed/reopened -- me typing in the wrong window resulted in accidentally closing the ticket)\n"
] |
https://api.github.com/repos/psf/requests/issues/262 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/262/labels{/name} | https://api.github.com/repos/psf/requests/issues/262/comments | https://api.github.com/repos/psf/requests/issues/262/events | https://github.com/psf/requests/pull/262 | 2,228,213 | MDExOlB1bGxSZXF1ZXN0NDkwNzkw | 262 | Fixing status codes. Somehow these were wrong. | {
"avatar_url": "https://avatars.githubusercontent.com/u/292951?v=4",
"events_url": "https://api.github.com/users/petermanser/events{/privacy}",
"followers_url": "https://api.github.com/users/petermanser/followers",
"following_url": "https://api.github.com/users/petermanser/following{/other_user}",
"gists_url": "https://api.github.com/users/petermanser/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/petermanser",
"id": 292951,
"login": "petermanser",
"node_id": "MDQ6VXNlcjI5Mjk1MQ==",
"organizations_url": "https://api.github.com/users/petermanser/orgs",
"received_events_url": "https://api.github.com/users/petermanser/received_events",
"repos_url": "https://api.github.com/users/petermanser/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/petermanser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/petermanser/subscriptions",
"type": "User",
"url": "https://api.github.com/users/petermanser",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-14T08:45:15Z | 2021-09-08T13:05:54Z | 2011-11-14T21:42:24Z | CONTRIBUTOR | resolved | > > > requests.codes['temporary_redirect']
> > > 307
> > > requests.codes.teapot
> > > 418
> > > requests.codes['\o/']
> > > 200
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/262/reactions"
} | https://api.github.com/repos/psf/requests/issues/262/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/262.diff",
"html_url": "https://github.com/psf/requests/pull/262",
"merged_at": "2011-11-14T21:42:24Z",
"patch_url": "https://github.com/psf/requests/pull/262.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/262"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/261 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/261/labels{/name} | https://api.github.com/repos/psf/requests/issues/261/comments | https://api.github.com/repos/psf/requests/issues/261/events | https://github.com/psf/requests/issues/261 | 2,227,882 | MDU6SXNzdWUyMjI3ODgy | 261 | Version 0.8 breaks something from 0.7.4 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1113284?v=4",
"events_url": "https://api.github.com/users/Mike-Allen/events{/privacy}",
"followers_url": "https://api.github.com/users/Mike-Allen/followers",
"following_url": "https://api.github.com/users/Mike-Allen/following{/other_user}",
"gists_url": "https://api.github.com/users/Mike-Allen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Mike-Allen",
"id": 1113284,
"login": "Mike-Allen",
"node_id": "MDQ6VXNlcjExMTMyODQ=",
"organizations_url": "https://api.github.com/users/Mike-Allen/orgs",
"received_events_url": "https://api.github.com/users/Mike-Allen/received_events",
"repos_url": "https://api.github.com/users/Mike-Allen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Mike-Allen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mike-Allen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Mike-Allen",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-11-14T07:50:42Z | 2021-09-09T11:00:51Z | 2011-11-15T14:00:30Z | NONE | resolved | Something happened between version 0.7.4 and 0.8 that made requests stop working with two embedded devices that I have. One is an Axis video server and the other is a Digital-Loggers web power switch.
I’m using Python 2.6.6 and 2.7.2, under Windows and Linux.
I am able to connect to both devices using 0.7.4. When 0.8 is used it returns a 404 error when trying to connect to the Axis video server and it returns a very basic/simple web page when connection to the web power switch (it’s not the device’s login page but it does have a cookie from the device. Very strange.)
I spent a lot of time trying different options/settings in 0.8 but to no avail.
I have no trouble connecting to these devices using urllib2, htmllib or even wget and of course web browsers.
I’ve been concentrating on projects with these two devices so I haven’t had time to test either version of requests against other servers.
I’m sorry I can’t give you something more specific. I thought I should at least mention that I’ve run into a problem.
Mike
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/261/reactions"
} | https://api.github.com/repos/psf/requests/issues/261/timeline | null | completed | null | null | false | [
"I also have problems with version 0.8.\n\nAt least _all_ Tumblr URLs are not working.\n\n```\n\n>>> a = requests.get('http://status.soundcloud.com/rss')\n>>> a.content\n'<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\\n<html xmlns... |
https://api.github.com/repos/psf/requests/issues/260 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/260/labels{/name} | https://api.github.com/repos/psf/requests/issues/260/comments | https://api.github.com/repos/psf/requests/issues/260/events | https://github.com/psf/requests/pull/260 | 2,227,732 | MDExOlB1bGxSZXF1ZXN0NDkwNjgw | 260 | Doc changes | {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-14T07:15:36Z | 2021-09-08T13:05:54Z | 2011-11-14T21:43:01Z | CONTRIBUTOR | resolved | Removed some closed issues from todo and added a reference to [requests-oauth](https://github.com/maraujop/requests-oauth) in quickstart.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/260/reactions"
} | https://api.github.com/repos/psf/requests/issues/260/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/260.diff",
"html_url": "https://github.com/psf/requests/pull/260",
"merged_at": "2011-11-14T21:43:01Z",
"patch_url": "https://github.com/psf/requests/pull/260.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/260"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/259 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/259/labels{/name} | https://api.github.com/repos/psf/requests/issues/259/comments | https://api.github.com/repos/psf/requests/issues/259/events | https://github.com/psf/requests/issues/259 | 2,227,639 | MDU6SXNzdWUyMjI3NjM5 | 259 | Timeout exception not being thrown - NoneType instead | {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-11-14T06:48:41Z | 2021-09-09T11:00:49Z | 2011-11-15T15:03:39Z | CONTRIBUTOR | resolved | On OS X, I'm not getting the nice Timeout exception.
``` python
>>> requests.get('http://github.com', timeout=0.001)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "requests/api.py", line 78, in get
return request('get', url, **kwargs)
File "requests/api.py", line 65, in request
prefetch=prefetch
File "requests/sessions.py", line 187, in request
r.send(prefetch=prefetch)
File "/Library/WebServer/Documents/lab/python/requests/requests/models.py", line 418, in send
timeout=self.timeout,
File "requests/packages/urllib3/connectionpool.py", line 342, in urlopen
self.timeout)
TypeError: float argument required, not NoneType
>>> requests.get('http://github.com', timeout=1.0)
<Response [200]>
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/259/reactions"
} | https://api.github.com/repos/psf/requests/issues/259/timeline | null | completed | null | null | false | [
"Minor bug in urllib3 — thanks!\n",
"v0.8.1 was just released, which fixes this!\n"
] |
https://api.github.com/repos/psf/requests/issues/258 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/258/labels{/name} | https://api.github.com/repos/psf/requests/issues/258/comments | https://api.github.com/repos/psf/requests/issues/258/events | https://github.com/psf/requests/issues/258 | 2,223,695 | MDU6SXNzdWUyMjIzNjk1 | 258 | Make it possible to choose multipart encoding instead of form encoding | {
"avatar_url": "https://avatars.githubusercontent.com/u/92239?v=4",
"events_url": "https://api.github.com/users/piotr-dobrogost/events{/privacy}",
"followers_url": "https://api.github.com/users/piotr-dobrogost/followers",
"following_url": "https://api.github.com/users/piotr-dobrogost/following{/other_user}",
"gists_url": "https://api.github.com/users/piotr-dobrogost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/piotr-dobrogost",
"id": 92239,
"login": "piotr-dobrogost",
"node_id": "MDQ6VXNlcjkyMjM5",
"organizations_url": "https://api.github.com/users/piotr-dobrogost/orgs",
"received_events_url": "https://api.github.com/users/piotr-dobrogost/received_events",
"repos_url": "https://api.github.com/users/piotr-dobrogost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/piotr-dobrogost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/piotr-dobrogost",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 6 | 2011-11-13T22:51:09Z | 2021-09-09T11:00:50Z | 2011-11-15T14:01:16Z | NONE | resolved | Currently multipart (multipart/form-data) encoding is used only for files. It should be possible to use it instead of form encoding (application/x-www-form-urlencoded) in every place the latter one can be used.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/258/reactions"
} | https://api.github.com/repos/psf/requests/issues/258/timeline | null | completed | null | null | false | [
"Agreed! I've been wanting this for a while. Coming up with an elegant api is tricky though.\n",
"As much as I love elegant code I'm afraid that after reaching some level of complexity one has to leave elegance to others :( Could we just add yet another param (called transfer_encoding) to request method?\n",
"R... |
https://api.github.com/repos/psf/requests/issues/257 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/257/labels{/name} | https://api.github.com/repos/psf/requests/issues/257/comments | https://api.github.com/repos/psf/requests/issues/257/events | https://github.com/psf/requests/issues/257 | 2,223,544 | MDU6SXNzdWUyMjIzNTQ0 | 257 | Support forum | {
"avatar_url": "https://avatars.githubusercontent.com/u/92239?v=4",
"events_url": "https://api.github.com/users/piotr-dobrogost/events{/privacy}",
"followers_url": "https://api.github.com/users/piotr-dobrogost/followers",
"following_url": "https://api.github.com/users/piotr-dobrogost/following{/other_user}",
"gists_url": "https://api.github.com/users/piotr-dobrogost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/piotr-dobrogost",
"id": 92239,
"login": "piotr-dobrogost",
"node_id": "MDQ6VXNlcjkyMjM5",
"organizations_url": "https://api.github.com/users/piotr-dobrogost/orgs",
"received_events_url": "https://api.github.com/users/piotr-dobrogost/received_events",
"repos_url": "https://api.github.com/users/piotr-dobrogost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/piotr-dobrogost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/piotr-dobrogost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/piotr-dobrogost",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 6 | 2011-11-13T22:20:39Z | 2021-09-09T11:00:50Z | 2011-11-15T14:01:30Z | NONE | resolved | It would be nice to have some support forum for users.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/257/reactions"
} | https://api.github.com/repos/psf/requests/issues/257/timeline | null | completed | null | null | false | [
"You're on it :)\n\n## \n\nKenneth Reitz\n\nOn Nov 13, 2011, at 5:20 PM, Piotr Dobrogostreply@reply.github.com wrote:\n\n> It would be nice to have some support forum for users.\n> \n> ---\n> \n> Reply to this email directly or view it on GitHub:\n> https://github.com/kennethreitz/requests/issues/257\n",
"Am I re... |
https://api.github.com/repos/psf/requests/issues/256 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/256/labels{/name} | https://api.github.com/repos/psf/requests/issues/256/comments | https://api.github.com/repos/psf/requests/issues/256/events | https://github.com/psf/requests/issues/256 | 2,221,215 | MDU6SXNzdWUyMjIxMjE1 | 256 | GET request sends full url to server - should be path only | {
"avatar_url": "https://avatars.githubusercontent.com/u/188771?v=4",
"events_url": "https://api.github.com/users/n1m3/events{/privacy}",
"followers_url": "https://api.github.com/users/n1m3/followers",
"following_url": "https://api.github.com/users/n1m3/following{/other_user}",
"gists_url": "https://api.github.com/users/n1m3/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/n1m3",
"id": 188771,
"login": "n1m3",
"node_id": "MDQ6VXNlcjE4ODc3MQ==",
"organizations_url": "https://api.github.com/users/n1m3/orgs",
"received_events_url": "https://api.github.com/users/n1m3/received_events",
"repos_url": "https://api.github.com/users/n1m3/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/n1m3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/n1m3/subscriptions",
"type": "User",
"url": "https://api.github.com/users/n1m3",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 8 | 2011-11-13T12:32:45Z | 2021-09-09T11:00:48Z | 2011-11-15T14:04:29Z | NONE | resolved | The command `requests.get("http://www.raumzeit-podcast.de/feed/")` results in
```
GET http://www.raumzeit-podcast.de/feed/ HTTP/1.1
Host: www.raumzeit-podcast.de
Accept-Encoding: identity, deflate, compress, gzip
Accept: */*
User-Agent: python-requests/0.8.0
HTTP/1.1 301 Moved Permanently
Location: http://www.raumzeit-podcast.dehttp/www.raumzeit-podcast.de/feed/
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html
```
Requests should send `GET /feed/ HTTP/1.1`
Version: 0.8
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/256/reactions"
} | https://api.github.com/repos/psf/requests/issues/256/timeline | null | completed | null | null | false | [
"Confirmed this is an issue. Same issue arises on my rss feed as well\n\n``` python\n>>> r2 = requests.get(\"http://www.vertstudios.com/blog/feed\")\n>>> r2.url\n'http://www.vertstudios.comhttp/www.vertstudios.com/blog/feed'\n```\n",
"I also confirm. It's easy to reproduce:\n\n-) in shell A run \n\n```\npython -m... |
https://api.github.com/repos/psf/requests/issues/255 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/255/labels{/name} | https://api.github.com/repos/psf/requests/issues/255/comments | https://api.github.com/repos/psf/requests/issues/255/events | https://github.com/psf/requests/pull/255 | 2,219,857 | MDExOlB1bGxSZXF1ZXN0NDg5Mzgz | 255 | Adding me into a Urllib3 subsection (as was in urllib3-backup). | {
"avatar_url": "https://avatars.githubusercontent.com/u/6292?v=4",
"events_url": "https://api.github.com/users/shazow/events{/privacy}",
"followers_url": "https://api.github.com/users/shazow/followers",
"following_url": "https://api.github.com/users/shazow/following{/other_user}",
"gists_url": "https://api.github.com/users/shazow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shazow",
"id": 6292,
"login": "shazow",
"node_id": "MDQ6VXNlcjYyOTI=",
"organizations_url": "https://api.github.com/users/shazow/orgs",
"received_events_url": "https://api.github.com/users/shazow/received_events",
"repos_url": "https://api.github.com/users/shazow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shazow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shazow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shazow",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-13T02:16:29Z | 2021-09-08T13:05:54Z | 2011-11-13T03:52:05Z | CONTRIBUTOR | resolved | > .>
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/255/reactions"
} | https://api.github.com/repos/psf/requests/issues/255/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/255.diff",
"html_url": "https://github.com/psf/requests/pull/255",
"merged_at": "2011-11-13T03:52:05Z",
"patch_url": "https://github.com/psf/requests/pull/255.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/255"
} | true | [
"Much needed :)\n"
] |
https://api.github.com/repos/psf/requests/issues/254 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/254/labels{/name} | https://api.github.com/repos/psf/requests/issues/254/comments | https://api.github.com/repos/psf/requests/issues/254/events | https://github.com/psf/requests/issues/254 | 2,216,192 | MDU6SXNzdWUyMjE2MTky | 254 | Ambiguous configuration settings | {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-12T06:51:01Z | 2021-09-09T11:00:57Z | 2011-11-13T00:08:55Z | CONTRIBUTOR | resolved | Couple of examples can be seen [here](https://github.com/kennethreitz/requests/blob/develop/requests/sessions.py#L66-67). `timeout` and `keep_alive` are both parameters by themselves but members of the config dict. I'm not sure if this was intended, but this allows the user to define these parameters ambiguously. I think either the keys in the config dict or the arguments should be removed.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/254/reactions"
} | https://api.github.com/repos/psf/requests/issues/254/timeline | null | completed | null | null | false | [
"Don't worry, `keep_alive` won't be a parameter. Still debating `timeout` though.\n"
] |
https://api.github.com/repos/psf/requests/issues/253 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/253/labels{/name} | https://api.github.com/repos/psf/requests/issues/253/comments | https://api.github.com/repos/psf/requests/issues/253/events | https://github.com/psf/requests/issues/253 | 2,216,075 | MDU6SXNzdWUyMjE2MDc1 | 253 | Max timeout won't trigger | {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 6 | 2011-11-12T06:06:10Z | 2021-09-09T11:00:49Z | 2011-11-15T15:03:53Z | CONTRIBUTOR | resolved | Haven't looked at the code to see why yet, figured I'd post this here first.
``` python
>>> myconfig = {"timeout": 1.0}
>>> requests.get("www.google.com:81", config=myconfig)
```
The timeout never comes.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/253/reactions"
} | https://api.github.com/repos/psf/requests/issues/253/timeline | null | completed | null | null | false | [
"So I misread the doc, timeout is actually passed as an argument to requests. This seems a bit weird, since timeout is both a possible key in the config= dictionary but also a default value in requests.defaults.\n\nRegardless, the timeout still is not working. \n\n``` python\n>>> r = requests.get(\"http://google.co... |
https://api.github.com/repos/psf/requests/issues/252 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/252/labels{/name} | https://api.github.com/repos/psf/requests/issues/252/comments | https://api.github.com/repos/psf/requests/issues/252/events | https://github.com/psf/requests/pull/252 | 2,215,957 | MDExOlB1bGxSZXF1ZXN0NDg4NDUz | 252 | Fix various documentation typos | {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-11-12T05:11:02Z | 2021-09-08T13:05:53Z | 2011-11-12T05:17:21Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/252/reactions"
} | https://api.github.com/repos/psf/requests/issues/252/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/252.diff",
"html_url": "https://github.com/psf/requests/pull/252",
"merged_at": "2011-11-12T05:17:21Z",
"patch_url": "https://github.com/psf/requests/pull/252.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/252"
} | true | [
"I love these pull requests. Thanks so much :)\n",
"What was I doing at 11 11 11 11? Fixing documentation typos. I know how to party. \n",
":sparkles: :metal: :sparkles:\n"
] | |
https://api.github.com/repos/psf/requests/issues/251 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/251/labels{/name} | https://api.github.com/repos/psf/requests/issues/251/comments | https://api.github.com/repos/psf/requests/issues/251/events | https://github.com/psf/requests/pull/251 | 2,214,431 | MDExOlB1bGxSZXF1ZXN0NDg3ODU1 | 251 | Correct verbose logging documentation | {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-11-11T22:50:37Z | 2021-09-08T13:05:53Z | 2011-11-11T23:00:48Z | CONTRIBUTOR | resolved | Includes [Verbose logging example does not work](https://github.com/dasevilla/requests/commit/2d8440ea98301131edd537c4f2010b749f005e3b#commitcomment-712251), from @dasevilla and should close [issue #250](https://github.com/kennethreitz/requests/pull/250)
| {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/251/reactions"
} | https://api.github.com/repos/psf/requests/issues/251/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/251.diff",
"html_url": "https://github.com/psf/requests/pull/251",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/251.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/251"
} | true | [
"Thanks! However, I would like to discourage (by not documenting) the ability to override the 'defaults'. Global state = bad :)\n",
"Alrighty, closing the request. \n",
"Sorry :)\n"
] |
https://api.github.com/repos/psf/requests/issues/250 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/250/labels{/name} | https://api.github.com/repos/psf/requests/issues/250/comments | https://api.github.com/repos/psf/requests/issues/250/events | https://github.com/psf/requests/pull/250 | 2,204,357 | MDExOlB1bGxSZXF1ZXN0NDg0NDA5 | 250 | Verbose logging example does not work | {
"avatar_url": "https://avatars.githubusercontent.com/u/162275?v=4",
"events_url": "https://api.github.com/users/dasevilla/events{/privacy}",
"followers_url": "https://api.github.com/users/dasevilla/followers",
"following_url": "https://api.github.com/users/dasevilla/following{/other_user}",
"gists_url": "https://api.github.com/users/dasevilla/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dasevilla",
"id": 162275,
"login": "dasevilla",
"node_id": "MDQ6VXNlcjE2MjI3NQ==",
"organizations_url": "https://api.github.com/users/dasevilla/orgs",
"received_events_url": "https://api.github.com/users/dasevilla/received_events",
"repos_url": "https://api.github.com/users/dasevilla/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dasevilla/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dasevilla/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dasevilla",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 5 | 2011-11-10T23:34:27Z | 2021-09-08T23:10:59Z | 2011-11-11T22:56:17Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/250/reactions"
} | https://api.github.com/repos/psf/requests/issues/250/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/250.diff",
"html_url": "https://github.com/psf/requests/pull/250",
"merged_at": "2011-11-11T22:56:17Z",
"patch_url": "https://github.com/psf/requests/pull/250.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/250"
} | true | [
"I incorporated your example into pull request [#251](https://github.com/kennethreitz/requests/pull/251).\n",
"Sorry, the docs are a little out of date :) I would like to discourage (by not documenting) the ability to override the 'defaults'. Global state = bad :)\n",
"I understand this issue is closed but how... | |
https://api.github.com/repos/psf/requests/issues/249 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/249/labels{/name} | https://api.github.com/repos/psf/requests/issues/249/comments | https://api.github.com/repos/psf/requests/issues/249/events | https://github.com/psf/requests/pull/249 | 2,204,167 | MDExOlB1bGxSZXF1ZXN0NDg0MzQy | 249 | The 'requests-oauth-hook' project was renamed to requests-oauth | {
"avatar_url": "https://avatars.githubusercontent.com/u/162275?v=4",
"events_url": "https://api.github.com/users/dasevilla/events{/privacy}",
"followers_url": "https://api.github.com/users/dasevilla/followers",
"following_url": "https://api.github.com/users/dasevilla/following{/other_user}",
"gists_url": "https://api.github.com/users/dasevilla/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dasevilla",
"id": 162275,
"login": "dasevilla",
"node_id": "MDQ6VXNlcjE2MjI3NQ==",
"organizations_url": "https://api.github.com/users/dasevilla/orgs",
"received_events_url": "https://api.github.com/users/dasevilla/received_events",
"repos_url": "https://api.github.com/users/dasevilla/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dasevilla/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dasevilla/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dasevilla",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-10T23:14:46Z | 2021-09-08T13:05:51Z | 2011-11-12T15:19:04Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/249/reactions"
} | https://api.github.com/repos/psf/requests/issues/249/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/249.diff",
"html_url": "https://github.com/psf/requests/pull/249",
"merged_at": "2011-11-12T15:19:11Z",
"patch_url": "https://github.com/psf/requests/pull/249.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/249"
} | true | [
"thanks!\n"
] | |
https://api.github.com/repos/psf/requests/issues/248 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/248/labels{/name} | https://api.github.com/repos/psf/requests/issues/248/comments | https://api.github.com/repos/psf/requests/issues/248/events | https://github.com/psf/requests/pull/248 | 2,171,780 | MDExOlB1bGxSZXF1ZXN0NDcyNTMw | 248 | Added POST to quick start. | {
"avatar_url": "https://avatars.githubusercontent.com/u/503584?v=4",
"events_url": "https://api.github.com/users/joequery/events{/privacy}",
"followers_url": "https://api.github.com/users/joequery/followers",
"following_url": "https://api.github.com/users/joequery/following{/other_user}",
"gists_url": "https://api.github.com/users/joequery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joequery",
"id": 503584,
"login": "joequery",
"node_id": "MDQ6VXNlcjUwMzU4NA==",
"organizations_url": "https://api.github.com/users/joequery/orgs",
"received_events_url": "https://api.github.com/users/joequery/received_events",
"repos_url": "https://api.github.com/users/joequery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joequery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joequery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joequery",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 4 | 2011-11-08T07:39:43Z | 2021-09-08T13:05:52Z | 2011-11-10T06:01:50Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/248/reactions"
} | https://api.github.com/repos/psf/requests/issues/248/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/248.diff",
"html_url": "https://github.com/psf/requests/pull/248",
"merged_at": "2011-11-10T06:01:50Z",
"patch_url": "https://github.com/psf/requests/pull/248.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/248"
} | true | [
"You changed the GET example, but the line above your change still says \"Let's get GitHub's public timeline\" :)\n",
"Ahhhhhhhhhhhh! I'll fix that real quick. \n",
"I love the POST example, but I'd like to stick to the GitHub example. Doing a get to httpbin is a bit confusing to newcomers, and isn't a very rea... | |
https://api.github.com/repos/psf/requests/issues/247 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/247/labels{/name} | https://api.github.com/repos/psf/requests/issues/247/comments | https://api.github.com/repos/psf/requests/issues/247/events | https://github.com/psf/requests/issues/247 | 2,171,048 | MDU6SXNzdWUyMTcxMDQ4 | 247 | POST doesn't appear to be documented | {
"avatar_url": "https://avatars.githubusercontent.com/u/663366?v=4",
"events_url": "https://api.github.com/users/r1chardj0n3s/events{/privacy}",
"followers_url": "https://api.github.com/users/r1chardj0n3s/followers",
"following_url": "https://api.github.com/users/r1chardj0n3s/following{/other_user}",
"gists_url": "https://api.github.com/users/r1chardj0n3s/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/r1chardj0n3s",
"id": 663366,
"login": "r1chardj0n3s",
"node_id": "MDQ6VXNlcjY2MzM2Ng==",
"organizations_url": "https://api.github.com/users/r1chardj0n3s/orgs",
"received_events_url": "https://api.github.com/users/r1chardj0n3s/received_events",
"repos_url": "https://api.github.com/users/r1chardj0n3s/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/r1chardj0n3s/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/r1chardj0n3s/subscriptions",
"type": "User",
"url": "https://api.github.com/users/r1chardj0n3s",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 5 | 2011-11-08T04:50:48Z | 2021-09-09T11:00:56Z | 2011-11-13T00:09:09Z | CONTRIBUTOR | resolved | It took me some time to figure out how requests.post worked, and the only mention appears to be in the API doc, and then not in great detail. Am I missing something?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/247/reactions"
} | https://api.github.com/repos/psf/requests/issues/247/timeline | null | completed | null | null | false | [
"http://docs.python-requests.org/en/latest/api/#requests.post\n",
"It definitely needs to be added to the quickstart.\n",
"As I said, it's in the API doc, but not in the main doc, where other much more complex topics are covered but not something as basic as requests.post.\n",
"Yes, please :-)\n",
"I'll put... |
https://api.github.com/repos/psf/requests/issues/246 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/246/labels{/name} | https://api.github.com/repos/psf/requests/issues/246/comments | https://api.github.com/repos/psf/requests/issues/246/events | https://github.com/psf/requests/pull/246 | 2,169,300 | MDExOlB1bGxSZXF1ZXN0NDcxNjU1 | 246 | Added support for OPTIONS method. | {
"avatar_url": "https://avatars.githubusercontent.com/u/233741?v=4",
"events_url": "https://api.github.com/users/jbrendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrendel/followers",
"following_url": "https://api.github.com/users/jbrendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrendel",
"id": 233741,
"login": "jbrendel",
"node_id": "MDQ6VXNlcjIzMzc0MQ==",
"organizations_url": "https://api.github.com/users/jbrendel/orgs",
"received_events_url": "https://api.github.com/users/jbrendel/received_events",
"repos_url": "https://api.github.com/users/jbrendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrendel",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-07T23:42:54Z | 2021-09-08T13:05:52Z | 2011-11-10T06:16:33Z | NONE | resolved | Hello!
While doing some work with a RESTful API, I noticed that the otherwise excellent requests library does not seem to support the OPTIONS request method. The way it should be handled apparently is the same as the HEAD method. So, this change here merely copies the various definitions and references to the HEAD method and changes it to OPTIONS.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/246/reactions"
} | https://api.github.com/repos/psf/requests/issues/246/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/246.diff",
"html_url": "https://github.com/psf/requests/pull/246",
"merged_at": "2011-11-10T06:16:33Z",
"patch_url": "https://github.com/psf/requests/pull/246.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/246"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/245 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/245/labels{/name} | https://api.github.com/repos/psf/requests/issues/245/comments | https://api.github.com/repos/psf/requests/issues/245/events | https://github.com/psf/requests/issues/245 | 2,168,108 | MDU6SXNzdWUyMTY4MTA4 | 245 | malformed url when using digest with query-strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/160125?v=4",
"events_url": "https://api.github.com/users/mfeif/events{/privacy}",
"followers_url": "https://api.github.com/users/mfeif/followers",
"following_url": "https://api.github.com/users/mfeif/following{/other_user}",
"gists_url": "https://api.github.com/users/mfeif/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mfeif",
"id": 160125,
"login": "mfeif",
"node_id": "MDQ6VXNlcjE2MDEyNQ==",
"organizations_url": "https://api.github.com/users/mfeif/orgs",
"received_events_url": "https://api.github.com/users/mfeif/received_events",
"repos_url": "https://api.github.com/users/mfeif/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mfeif/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mfeif/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mfeif",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-11-07T22:08:26Z | 2021-09-09T11:00:56Z | 2011-11-13T00:10:11Z | NONE | resolved | When using digest auth and a URL containing a "?" the question mark is removed, it seems, from the url.
For example,
r = requests.get('http://foo.com/bar.json', auth=('digest', 'blah', 'bloh'))
works, but:
r = requests.get('http://foo.com/bar.json?really=yes', auth=('digest', 'blah', 'bloh'))
Fails. Inspecting r.request.headers['uri'] shows:
'http://foo.com/bar.jsonreally=yes'
Of course, this could be just an output but, not the actual url that it's trying to hit. Unfortunately, I only have access to one side of this conversation, so I can't tell you what the library is actually sending/asking for. I'll try and find another server that I can test.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/245/reactions"
} | https://api.github.com/repos/psf/requests/issues/245/timeline | null | completed | null | null | false | [
"For URL parameters, use the parameters argument in your request.\n\n``` python\n>>> url = \"http://httpbin.org/digest-auth/auth/user/passwd\"\n>>> auth = (\"digest\", \"user\", \"passwd\")\n>>> params = {\"really\":\"yes\"}\n>>> r = requests.get(url, auth=auth, params=params)\n>>> r.ok\nTrue\n>>> dir(r.request)\n[... |
https://api.github.com/repos/psf/requests/issues/244 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/244/labels{/name} | https://api.github.com/repos/psf/requests/issues/244/comments | https://api.github.com/repos/psf/requests/issues/244/events | https://github.com/psf/requests/pull/244 | 2,159,490 | MDExOlB1bGxSZXF1ZXN0NDY4NDEy | 244 | Updated your 2001, to 2011... unless you went back in time ;) | {
"avatar_url": "https://avatars.githubusercontent.com/u/141967?v=4",
"events_url": "https://api.github.com/users/neogenix/events{/privacy}",
"followers_url": "https://api.github.com/users/neogenix/followers",
"following_url": "https://api.github.com/users/neogenix/following{/other_user}",
"gists_url": "https://api.github.com/users/neogenix/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neogenix",
"id": 141967,
"login": "neogenix",
"node_id": "MDQ6VXNlcjE0MTk2Nw==",
"organizations_url": "https://api.github.com/users/neogenix/orgs",
"received_events_url": "https://api.github.com/users/neogenix/received_events",
"repos_url": "https://api.github.com/users/neogenix/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neogenix/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neogenix/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neogenix",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-11-07T03:57:55Z | 2021-09-08T13:05:51Z | 2011-11-07T03:58:34Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/244/reactions"
} | https://api.github.com/repos/psf/requests/issues/244/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/244.diff",
"html_url": "https://github.com/psf/requests/pull/244",
"merged_at": "2011-11-07T03:58:34Z",
"patch_url": "https://github.com/psf/requests/pull/244.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/244"
} | true | [
"whoops :)\n",
"I was hoping for time travel, personally ;)\n"
] | |
https://api.github.com/repos/psf/requests/issues/243 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/243/labels{/name} | https://api.github.com/repos/psf/requests/issues/243/comments | https://api.github.com/repos/psf/requests/issues/243/events | https://github.com/psf/requests/pull/243 | 2,157,862 | MDExOlB1bGxSZXF1ZXN0NDY3OTc0 | 243 | #GH-241 | {
"avatar_url": "https://avatars.githubusercontent.com/u/554079?v=4",
"events_url": "https://api.github.com/users/juanriaza/events{/privacy}",
"followers_url": "https://api.github.com/users/juanriaza/followers",
"following_url": "https://api.github.com/users/juanriaza/following{/other_user}",
"gists_url": "https://api.github.com/users/juanriaza/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/juanriaza",
"id": 554079,
"login": "juanriaza",
"node_id": "MDQ6VXNlcjU1NDA3OQ==",
"organizations_url": "https://api.github.com/users/juanriaza/orgs",
"received_events_url": "https://api.github.com/users/juanriaza/received_events",
"repos_url": "https://api.github.com/users/juanriaza/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/juanriaza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juanriaza/subscriptions",
"type": "User",
"url": "https://api.github.com/users/juanriaza",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-06T20:49:17Z | 2021-09-08T13:05:50Z | 2011-11-06T20:59:43Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/554079?v=4",
"events_url": "https://api.github.com/users/juanriaza/events{/privacy}",
"followers_url": "https://api.github.com/users/juanriaza/followers",
"following_url": "https://api.github.com/users/juanriaza/following{/other_user}",
"gists_url": "https://api.github.com/users/juanriaza/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/juanriaza",
"id": 554079,
"login": "juanriaza",
"node_id": "MDQ6VXNlcjU1NDA3OQ==",
"organizations_url": "https://api.github.com/users/juanriaza/orgs",
"received_events_url": "https://api.github.com/users/juanriaza/received_events",
"repos_url": "https://api.github.com/users/juanriaza/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/juanriaza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juanriaza/subscriptions",
"type": "User",
"url": "https://api.github.com/users/juanriaza",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/243/reactions"
} | https://api.github.com/repos/psf/requests/issues/243/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/243.diff",
"html_url": "https://github.com/psf/requests/pull/243",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/243.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/243"
} | true | [] | |
https://api.github.com/repos/psf/requests/issues/242 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/242/labels{/name} | https://api.github.com/repos/psf/requests/issues/242/comments | https://api.github.com/repos/psf/requests/issues/242/events | https://github.com/psf/requests/issues/242 | 2,157,295 | MDU6SXNzdWUyMTU3Mjk1 | 242 | Non-blocking async.map | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
},
{
"color": "0b02e1",
"default": false,
"description": null,
"id": 19127... | closed | true | null | [] | null | 2 | 2011-11-06T18:32:00Z | 2021-09-09T09:00:40Z | 2012-03-31T07:16:09Z | CONTRIBUTOR | resolved | ``` python
q = [...list-of-requests...]
async.dispatch(q, size=10)
# Immediately continues.
q.append(...request...)
# Adds a new request to the queue.
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/242/reactions"
} | https://api.github.com/repos/psf/requests/issues/242/timeline | null | completed | null | null | false | [
"map should block. I modified requests.async.send to address this and to give a non-blocking option.\n",
"This has been implemented.\n"
] |
https://api.github.com/repos/psf/requests/issues/241 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/241/labels{/name} | https://api.github.com/repos/psf/requests/issues/241/comments | https://api.github.com/repos/psf/requests/issues/241/events | https://github.com/psf/requests/issues/241 | 2,157,198 | MDU6SXNzdWUyMTU3MTk4 | 241 | Add Throttling to async.map | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-06T18:11:23Z | 2021-09-09T11:00:57Z | 2011-11-12T15:43:56Z | CONTRIBUTOR | resolved | Currently, `async.map` will send all of the request objects at the same time. It'd be nice to limit the number of current connections.
``` python
async.map(size=3)
```
`size` would default to `None`, obviously.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/241/reactions"
} | https://api.github.com/repos/psf/requests/issues/241/timeline | null | completed | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/240 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/240/labels{/name} | https://api.github.com/repos/psf/requests/issues/240/comments | https://api.github.com/repos/psf/requests/issues/240/events | https://github.com/psf/requests/issues/240 | 2,152,275 | MDU6SXNzdWUyMTUyMjc1 | 240 | Timing HTTP Responses | {
"avatar_url": "https://avatars.githubusercontent.com/u/37787?v=4",
"events_url": "https://api.github.com/users/daleharvey/events{/privacy}",
"followers_url": "https://api.github.com/users/daleharvey/followers",
"following_url": "https://api.github.com/users/daleharvey/following{/other_user}",
"gists_url": "https://api.github.com/users/daleharvey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/daleharvey",
"id": 37787,
"login": "daleharvey",
"node_id": "MDQ6VXNlcjM3Nzg3",
"organizations_url": "https://api.github.com/users/daleharvey/orgs",
"received_events_url": "https://api.github.com/users/daleharvey/received_events",
"repos_url": "https://api.github.com/users/daleharvey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/daleharvey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daleharvey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/daleharvey",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-11-05T15:05:30Z | 2021-09-09T11:00:58Z | 2011-11-05T15:28:56Z | NONE | resolved | I would like to be able to time HTTP responses, logging the url along with the time taken to a file
It seems like this should be reasonably easy with pre + post request hooks, I havent tried yet, this is mostly a feature request / asking if anyone else had already implemented this as I cant see a mailing list or anywhere to discuss these things.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/240/reactions"
} | https://api.github.com/repos/psf/requests/issues/240/timeline | null | completed | null | null | false | [
"Super simple :)\n\n``` python\nimport time\nimport requests\n\n\ntime0 = time.time()\nr = requests.get('http://github.com')\ntime1 = time.time()\n\nprint time1 - time0\n```\n",
"heh yeh, I was looking more for the ability to inject the timing, as the requests code is buried inside various libraries and most of t... |
https://api.github.com/repos/psf/requests/issues/239 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/239/labels{/name} | https://api.github.com/repos/psf/requests/issues/239/comments | https://api.github.com/repos/psf/requests/issues/239/events | https://github.com/psf/requests/issues/239 | 2,151,723 | MDU6SXNzdWUyMTUxNzIz | 239 | Too many open files | {
"avatar_url": "https://avatars.githubusercontent.com/u/37787?v=4",
"events_url": "https://api.github.com/users/daleharvey/events{/privacy}",
"followers_url": "https://api.github.com/users/daleharvey/followers",
"following_url": "https://api.github.com/users/daleharvey/following{/other_user}",
"gists_url": "https://api.github.com/users/daleharvey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/daleharvey",
"id": 37787,
"login": "daleharvey",
"node_id": "MDQ6VXNlcjM3Nzg3",
"organizations_url": "https://api.github.com/users/daleharvey/orgs",
"received_events_url": "https://api.github.com/users/daleharvey/received_events",
"repos_url": "https://api.github.com/users/daleharvey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/daleharvey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daleharvey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/daleharvey",
"user_view_type": "public"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": null,
"id": 191274,
"... | closed | true | null | [] | null | 81 | 2011-11-05T12:37:30Z | 2021-09-08T01:21:03Z | 2012-07-27T06:07:41Z | NONE | resolved | I am building a basic load generator and started running into file descriptor limits, I havent seen any documentation pertaining to how to release resources, so either I am doing it wrong and the docs need updated, or requests is leaking file descriptors somewhere (without support for keepalive I am slightly confused at why any files would be left open at all)
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/239/reactions"
} | https://api.github.com/repos/psf/requests/issues/239/timeline | null | completed | null | null | false | [
"Where you using `requests.async`?\n",
"nope, all requests were reasonably plain requests.get / requests.post, I am still seeing a few in there\n\n```\n$ lsof | grep localhost | wc -l\n110\n```\n\nall but 4/5 of them are of the format\n\n```\nPython 82117 daleharvey 123u IPv4 0xffffff800da304e0 0t0 ... |
https://api.github.com/repos/psf/requests/issues/238 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/238/labels{/name} | https://api.github.com/repos/psf/requests/issues/238/comments | https://api.github.com/repos/psf/requests/issues/238/events | https://github.com/psf/requests/pull/238 | 2,144,513 | MDExOlB1bGxSZXF1ZXN0NDY0MDUw | 238 | Fixed a broken link in the docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/31269?v=4",
"events_url": "https://api.github.com/users/brutasse/events{/privacy}",
"followers_url": "https://api.github.com/users/brutasse/followers",
"following_url": "https://api.github.com/users/brutasse/following{/other_user}",
"gists_url": "https://api.github.com/users/brutasse/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brutasse",
"id": 31269,
"login": "brutasse",
"node_id": "MDQ6VXNlcjMxMjY5",
"organizations_url": "https://api.github.com/users/brutasse/orgs",
"received_events_url": "https://api.github.com/users/brutasse/received_events",
"repos_url": "https://api.github.com/users/brutasse/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brutasse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brutasse/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brutasse",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-11-04T14:50:30Z | 2021-09-08T12:01:36Z | 2011-11-04T14:51:07Z | CONTRIBUTOR | resolved | The link to the advanced section on http://docs.python-requests.org/en/latest/user/quickstart/ was broken, so here's a quick fix!
Thanks,
Bruno
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/238/reactions"
} | https://api.github.com/repos/psf/requests/issues/238/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/238.diff",
"html_url": "https://github.com/psf/requests/pull/238",
"merged_at": "2011-11-04T14:51:07Z",
"patch_url": "https://github.com/psf/requests/pull/238.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/238"
} | true | [
"Thanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/237 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/237/labels{/name} | https://api.github.com/repos/psf/requests/issues/237/comments | https://api.github.com/repos/psf/requests/issues/237/events | https://github.com/psf/requests/issues/237 | 2,138,560 | MDU6SXNzdWUyMTM4NTYw | 237 | infinite recursion on 401 error | {
"avatar_url": "https://avatars.githubusercontent.com/u/160125?v=4",
"events_url": "https://api.github.com/users/mfeif/events{/privacy}",
"followers_url": "https://api.github.com/users/mfeif/followers",
"following_url": "https://api.github.com/users/mfeif/following{/other_user}",
"gists_url": "https://api.github.com/users/mfeif/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mfeif",
"id": 160125,
"login": "mfeif",
"node_id": "MDQ6VXNlcjE2MDEyNQ==",
"organizations_url": "https://api.github.com/users/mfeif/orgs",
"received_events_url": "https://api.github.com/users/mfeif/received_events",
"repos_url": "https://api.github.com/users/mfeif/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mfeif/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mfeif/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mfeif",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 11 | 2011-11-03T22:42:02Z | 2021-09-09T04:00:35Z | 2012-07-27T06:07:16Z | NONE | resolved | I'm using requests 0.7.4, and am having a strange problem with a GET that is digest protected.
The request takes a long time (2-3 minutes) to come back, and when it does, I get this:
hooks.py:38: UserWarning: maximum recursion depth exceeded while calling a Python object
warnings.warn(str(why))
401
HTTP Digest: Access denied.
The same request works fine in a browser using the same auth credentials.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/237/reactions"
} | https://api.github.com/repos/psf/requests/issues/237/timeline | null | completed | null | null | false | [
"Ouch — Thanks for the the bug! \n",
"In 0.7.5 \"digest\" authentication fails for me too.\nI am sending a GET request with parameters (against Apache)\n\nIf I change line 70 of auth.py from:\n\n```\npath = urlparse(r.request.url).path\n```\n\nto:\n\n```\npath = r.url\n```\n\nauthentication succeeds.\n",
"@osuc... |
https://api.github.com/repos/psf/requests/issues/236 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/236/labels{/name} | https://api.github.com/repos/psf/requests/issues/236/comments | https://api.github.com/repos/psf/requests/issues/236/events | https://github.com/psf/requests/issues/236 | 2,130,686 | MDU6SXNzdWUyMTMwNjg2 | 236 | AttributeError while trying to read `content` attr | {
"avatar_url": "https://avatars.githubusercontent.com/u/111193?v=4",
"events_url": "https://api.github.com/users/OldhamMade/events{/privacy}",
"followers_url": "https://api.github.com/users/OldhamMade/followers",
"following_url": "https://api.github.com/users/OldhamMade/following{/other_user}",
"gists_url": "https://api.github.com/users/OldhamMade/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OldhamMade",
"id": 111193,
"login": "OldhamMade",
"node_id": "MDQ6VXNlcjExMTE5Mw==",
"organizations_url": "https://api.github.com/users/OldhamMade/orgs",
"received_events_url": "https://api.github.com/users/OldhamMade/received_events",
"repos_url": "https://api.github.com/users/OldhamMade/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OldhamMade/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OldhamMade/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OldhamMade",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 3 | 2011-11-03T09:46:18Z | 2021-09-09T11:00:59Z | 2011-11-05T03:24:45Z | NONE | resolved | It seems that if there's a problem with obtaining the body of a request, `requests` throws an error while trying to read it.
Code:
``` python
import requests
def main():
r = requests.get("some-flaky-url")
if not r.content:
raise Exception('content was flaky')
return r.content
main()
```
error:
```
Traceback (most recent call last):
File "test.py", line 5, in main:
if not r.content:
File "eggs/requests-0.7.4-py2.6.egg/requests/models.py", line 499, in content
self._content = self.raw.read()
AttributeError: 'NoneType' object has no attribute 'read'
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/236/reactions"
} | https://api.github.com/repos/psf/requests/issues/236/timeline | null | completed | null | null | false | [
"It would be better to check the `ok` attribute on the response:\n\n``` python\nr = requests.get(\"some-flaky-url\")\nif not r.ok:\n raise Exception('content was flaky')\nreturn r.content\n```\n",
"Isn't it more pythonic to check what you're actually returning/working with (eg, the `content`)? One would expect... |
https://api.github.com/repos/psf/requests/issues/235 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/235/labels{/name} | https://api.github.com/repos/psf/requests/issues/235/comments | https://api.github.com/repos/psf/requests/issues/235/events | https://github.com/psf/requests/pull/235 | 2,129,755 | MDExOlB1bGxSZXF1ZXN0NDU5MTg1 | 235 | Fixes an issue with auth and redirects | {
"avatar_url": "https://avatars.githubusercontent.com/u/185043?v=4",
"events_url": "https://api.github.com/users/davidfischer/events{/privacy}",
"followers_url": "https://api.github.com/users/davidfischer/followers",
"following_url": "https://api.github.com/users/davidfischer/following{/other_user}",
"gists_url": "https://api.github.com/users/davidfischer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidfischer",
"id": 185043,
"login": "davidfischer",
"node_id": "MDQ6VXNlcjE4NTA0Mw==",
"organizations_url": "https://api.github.com/users/davidfischer/orgs",
"received_events_url": "https://api.github.com/users/davidfischer/received_events",
"repos_url": "https://api.github.com/users/davidfischer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidfischer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidfischer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidfischer",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-11-03T06:36:05Z | 2021-09-08T12:01:35Z | 2011-11-05T03:32:04Z | CONTRIBUTOR | resolved | The `auth.dispatch` method creates a modified `auth` tuple. When the tuple is passed to a new request (as a result of a redirect) then the new `auth` is incorrect and authorization will fail. This one-liner simply resets the `auth` tuple to the original tuple.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/235/reactions"
} | https://api.github.com/repos/psf/requests/issues/235/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/235.diff",
"html_url": "https://github.com/psf/requests/pull/235",
"merged_at": "2011-11-05T03:32:04Z",
"patch_url": "https://github.com/psf/requests/pull/235.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/235"
} | true | [
"After sleeping on it, I don't think this solution is the best one. I think a better solution is to save the original `auth` tuple (`_auth`?) and then pass that to any new requests.\n",
"Excellent, thanks!\n"
] |
https://api.github.com/repos/psf/requests/issues/234 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/234/labels{/name} | https://api.github.com/repos/psf/requests/issues/234/comments | https://api.github.com/repos/psf/requests/issues/234/events | https://github.com/psf/requests/pull/234 | 2,104,154 | MDExOlB1bGxSZXF1ZXN0NDUxMDEw | 234 | ch ch chcnages | {
"avatar_url": "https://avatars.githubusercontent.com/u/773186?v=4",
"events_url": "https://api.github.com/users/shanemcd/events{/privacy}",
"followers_url": "https://api.github.com/users/shanemcd/followers",
"following_url": "https://api.github.com/users/shanemcd/following{/other_user}",
"gists_url": "https://api.github.com/users/shanemcd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shanemcd",
"id": 773186,
"login": "shanemcd",
"node_id": "MDQ6VXNlcjc3MzE4Ng==",
"organizations_url": "https://api.github.com/users/shanemcd/orgs",
"received_events_url": "https://api.github.com/users/shanemcd/received_events",
"repos_url": "https://api.github.com/users/shanemcd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shanemcd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shanemcd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shanemcd",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-11-01T01:52:18Z | 2021-09-08T13:05:50Z | 2011-11-01T01:53:07Z | CONTRIBUTOR | resolved | via @kennethreitz
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/234/reactions"
} | https://api.github.com/repos/psf/requests/issues/234/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/234.diff",
"html_url": "https://github.com/psf/requests/pull/234",
"merged_at": "2011-11-01T01:53:07Z",
"patch_url": "https://github.com/psf/requests/pull/234.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/234"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/233 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/233/labels{/name} | https://api.github.com/repos/psf/requests/issues/233/comments | https://api.github.com/repos/psf/requests/issues/233/events | https://github.com/psf/requests/pull/233 | 2,104,022 | MDExOlB1bGxSZXF1ZXN0NDUwOTc0 | 233 | Update docs/_themes/kr/static/flasky.css_t | {
"avatar_url": "https://avatars.githubusercontent.com/u/773186?v=4",
"events_url": "https://api.github.com/users/shanemcd/events{/privacy}",
"followers_url": "https://api.github.com/users/shanemcd/followers",
"following_url": "https://api.github.com/users/shanemcd/following{/other_user}",
"gists_url": "https://api.github.com/users/shanemcd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shanemcd",
"id": 773186,
"login": "shanemcd",
"node_id": "MDQ6VXNlcjc3MzE4Ng==",
"organizations_url": "https://api.github.com/users/shanemcd/orgs",
"received_events_url": "https://api.github.com/users/shanemcd/received_events",
"repos_url": "https://api.github.com/users/shanemcd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shanemcd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shanemcd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shanemcd",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 2 | 2011-11-01T01:25:09Z | 2021-09-08T12:01:34Z | 2011-11-01T01:26:52Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/233/reactions"
} | https://api.github.com/repos/psf/requests/issues/233/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/233.diff",
"html_url": "https://github.com/psf/requests/pull/233",
"merged_at": "2011-11-01T01:26:52Z",
"patch_url": "https://github.com/psf/requests/pull/233.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/233"
} | true | [
"THANK YOU HERE IS CAKE :cake:\n",
"See #234 for more\n"
] | |
https://api.github.com/repos/psf/requests/issues/232 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/232/labels{/name} | https://api.github.com/repos/psf/requests/issues/232/comments | https://api.github.com/repos/psf/requests/issues/232/events | https://github.com/psf/requests/issues/232 | 2,095,132 | MDU6SXNzdWUyMDk1MTMy | 232 | Document what exceptions may be raised | {
"avatar_url": "https://avatars.githubusercontent.com/u/73564?v=4",
"events_url": "https://api.github.com/users/rboulton/events{/privacy}",
"followers_url": "https://api.github.com/users/rboulton/followers",
"following_url": "https://api.github.com/users/rboulton/following{/other_user}",
"gists_url": "https://api.github.com/users/rboulton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rboulton",
"id": 73564,
"login": "rboulton",
"node_id": "MDQ6VXNlcjczNTY0",
"organizations_url": "https://api.github.com/users/rboulton/orgs",
"received_events_url": "https://api.github.com/users/rboulton/received_events",
"repos_url": "https://api.github.com/users/rboulton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rboulton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rboulton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rboulton",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 8 | 2011-10-31T09:29:53Z | 2021-09-09T11:00:55Z | 2011-11-13T00:10:42Z | CONTRIBUTOR | resolved | I'd like to be able to write something which will catch any exceptions raised when performing a request, so I can handle them appropriately. However, I'm not sure which exceptions might get raised; looking at the code, I think urllib{,2,3} exceptions can occur, as well as ones from requests.exceptions.
Ideally, I'd like to be able to do try:... except requests.exceptions.RequestException and have that catch any exceptions due to making the HTTP request; this could probably be accomplished by monkeypatching the urllib exceptions to add RequestException as a base class, though maybe that's too ugly. Some documentation of what I need to catch, though, would be a good start.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/232/reactions"
} | https://api.github.com/repos/psf/requests/issues/232/timeline | null | completed | null | null | false | [
":+1:\n",
"@bitprophet has some further thoughts on connection issues that I may or may not agree with.\n",
"Yea, thoughts like \"man, that @kennethreitz is such a jerk!\". ;)\n\n---\n\nA weak Monday morning attempt to recapture my IRC arguments:\n\nThere are, IMO, two types of failure modes in this kind of lib... |
https://api.github.com/repos/psf/requests/issues/231 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/231/labels{/name} | https://api.github.com/repos/psf/requests/issues/231/comments | https://api.github.com/repos/psf/requests/issues/231/events | https://github.com/psf/requests/pull/231 | 2,094,640 | MDExOlB1bGxSZXF1ZXN0NDQ3NzU4 | 231 | Added support for source address selection. | {
"avatar_url": "https://avatars.githubusercontent.com/u/84084?v=4",
"events_url": "https://api.github.com/users/maximbo/events{/privacy}",
"followers_url": "https://api.github.com/users/maximbo/followers",
"following_url": "https://api.github.com/users/maximbo/following{/other_user}",
"gists_url": "https://api.github.com/users/maximbo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maximbo",
"id": 84084,
"login": "maximbo",
"node_id": "MDQ6VXNlcjg0MDg0",
"organizations_url": "https://api.github.com/users/maximbo/orgs",
"received_events_url": "https://api.github.com/users/maximbo/received_events",
"repos_url": "https://api.github.com/users/maximbo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maximbo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maximbo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maximbo",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 1 | 2011-10-31T08:07:55Z | 2021-09-08T12:01:35Z | 2011-11-05T03:30:42Z | NONE | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/231/reactions"
} | https://api.github.com/repos/psf/requests/issues/231/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/231.diff",
"html_url": "https://github.com/psf/requests/pull/231",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/231.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/231"
} | true | [
"Unfortunately, I won't be able to add this in right now. I'm currently porting requests off of urllib2. See `feature/rewrite` branch for more details.\n\nI love this functionality though. I think that it may be best as a `utils` function.\n"
] | |
https://api.github.com/repos/psf/requests/issues/230 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/230/labels{/name} | https://api.github.com/repos/psf/requests/issues/230/comments | https://api.github.com/repos/psf/requests/issues/230/events | https://github.com/psf/requests/pull/230 | 2,090,418 | MDExOlB1bGxSZXF1ZXN0NDQ2NTQx | 230 | Wrong default types for params and data | {
"avatar_url": "https://avatars.githubusercontent.com/u/252257?v=4",
"events_url": "https://api.github.com/users/maraujop/events{/privacy}",
"followers_url": "https://api.github.com/users/maraujop/followers",
"following_url": "https://api.github.com/users/maraujop/following{/other_user}",
"gists_url": "https://api.github.com/users/maraujop/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maraujop",
"id": 252257,
"login": "maraujop",
"node_id": "MDQ6VXNlcjI1MjI1Nw==",
"organizations_url": "https://api.github.com/users/maraujop/orgs",
"received_events_url": "https://api.github.com/users/maraujop/received_events",
"repos_url": "https://api.github.com/users/maraujop/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maraujop/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maraujop/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maraujop",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 4 | 2011-10-30T12:24:39Z | 2021-09-08T23:11:09Z | 2011-11-05T03:30:29Z | NONE | resolved | `params` and `data` are marked as dictionaries in the constructor prototype. However `_encode_params` returns lists or None sometimes.
There is a big inconsistency in `_encode_params` that could affect hooks. It's affecting me in request-oauth-hook. Thus I have to do these type of checkings:
https://github.com/maraujop/requests-oauth-hook/blob/dev/oauth_hook/hook.py#L184
So if params is a dictionary, I understand it should be an empty dictionary or a filled dictionary, but not a list or None. The same happens to data.
I haven't been able to run `requests_tests` sorry, they failed before I did a change to the code. This will likely affect you in other parts of the code.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kennethreitz",
"id": 119893,
"login": "kennethreitz",
"node_id": "MDQ6VXNlcjExOTg5Mw==",
"organizations_url": "https://api.github.com/users/kennethreitz/orgs",
"received_events_url": "https://api.github.com/users/kennethreitz/received_events",
"repos_url": "https://api.github.com/users/kennethreitz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kennethreitz",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/230/reactions"
} | https://api.github.com/repos/psf/requests/issues/230/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/230.diff",
"html_url": "https://github.com/psf/requests/pull/230",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/230.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/230"
} | true | [
"I forgot to say that I'm working on a better test suite for requests-oauth-hook, and some Request inconsistencies, make it very hard to write.\n",
"This will change in the next release.\n",
"This means it is fixed in version 0.7.6 ? \n\nAre you using my patch?\n",
"No, this will change in the next major rele... |
https://api.github.com/repos/psf/requests/issues/229 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/229/labels{/name} | https://api.github.com/repos/psf/requests/issues/229/comments | https://api.github.com/repos/psf/requests/issues/229/events | https://github.com/psf/requests/issues/229 | 2,073,036 | MDU6SXNzdWUyMDczMDM2 | 229 | retracted | {
"avatar_url": "https://avatars.githubusercontent.com/u/330954?v=4",
"events_url": "https://api.github.com/users/devjones/events{/privacy}",
"followers_url": "https://api.github.com/users/devjones/followers",
"following_url": "https://api.github.com/users/devjones/following{/other_user}",
"gists_url": "https://api.github.com/users/devjones/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devjones",
"id": 330954,
"login": "devjones",
"node_id": "MDQ6VXNlcjMzMDk1NA==",
"organizations_url": "https://api.github.com/users/devjones/orgs",
"received_events_url": "https://api.github.com/users/devjones/received_events",
"repos_url": "https://api.github.com/users/devjones/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devjones/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devjones/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devjones",
"user_view_type": "public"
} | [] | closed | true | null | [] | null | 0 | 2011-10-27T21:40:35Z | 2021-09-09T11:01:00Z | 2011-10-27T22:32:22Z | NONE | resolved | ...
| {
"avatar_url": "https://avatars.githubusercontent.com/u/330954?v=4",
"events_url": "https://api.github.com/users/devjones/events{/privacy}",
"followers_url": "https://api.github.com/users/devjones/followers",
"following_url": "https://api.github.com/users/devjones/following{/other_user}",
"gists_url": "https://api.github.com/users/devjones/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devjones",
"id": 330954,
"login": "devjones",
"node_id": "MDQ6VXNlcjMzMDk1NA==",
"organizations_url": "https://api.github.com/users/devjones/orgs",
"received_events_url": "https://api.github.com/users/devjones/received_events",
"repos_url": "https://api.github.com/users/devjones/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devjones/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devjones/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devjones",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/229/reactions"
} | https://api.github.com/repos/psf/requests/issues/229/timeline | null | completed | null | null | false | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.