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/2931
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2931/labels{/name}
https://api.github.com/repos/psf/requests/issues/2931/comments
https://api.github.com/repos/psf/requests/issues/2931/events
https://github.com/psf/requests/pull/2931
122,521,762
MDExOlB1bGxSZXF1ZXN0NTM4NTEyODM=
2,931
Fix regression from #2844 regarding binary bodies.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-12-16T14:57:00Z
2021-09-08T05:01:08Z
2015-12-16T15:20:26Z
MEMBER
resolved
Resolves #2930.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2931/reactions" }
https://api.github.com/repos/psf/requests/issues/2931/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2931.diff", "html_url": "https://github.com/psf/requests/pull/2931", "merged_at": "2015-12-16T15:20:26Z", "patch_url": "https://github.com/psf/requests/pull/2931.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2931" }
true
[ "@untitaker has confirmed this fix works for them.\n", ":+1: from me.\n", ":100: \n", "Version bump, please.\n", "@nfnty we've planned the next release for Monday.\n" ]
https://api.github.com/repos/psf/requests/issues/2930
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2930/labels{/name}
https://api.github.com/repos/psf/requests/issues/2930/comments
https://api.github.com/repos/psf/requests/issues/2930/events
https://github.com/psf/requests/issues/2930
122,521,389
MDU6SXNzdWUxMjI1MjEzODk=
2,930
Request with binary payload fails due to calling to_native_string
{ "avatar_url": "https://avatars.githubusercontent.com/u/837573?v=4", "events_url": "https://api.github.com/users/untitaker/events{/privacy}", "followers_url": "https://api.github.com/users/untitaker/followers", "following_url": "https://api.github.com/users/untitaker/following{/other_user}", "gists_url": "https://api.github.com/users/untitaker/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/untitaker", "id": 837573, "login": "untitaker", "node_id": "MDQ6VXNlcjgzNzU3Mw==", "organizations_url": "https://api.github.com/users/untitaker/orgs", "received_events_url": "https://api.github.com/users/untitaker/received_events", "repos_url": "https://api.github.com/users/untitaker/repos", "site_admin": false, "starred_url": "https://api.github.com/users/untitaker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/untitaker/subscriptions", "type": "User", "url": "https://api.github.com/users/untitaker", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2015-12-16T14:55:08Z
2021-09-08T20:00:57Z
2015-12-16T15:20:26Z
CONTRIBUTOR
resolved
Introduced with https://github.com/kennethreitz/requests/issues/2844 ``` import requests requests.put("http://httpbin.org/put", data=u"ööö".encode("utf-8")) ``` This works with 2.8.1, but not with 2.9.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2930/reactions" }
https://api.github.com/repos/psf/requests/issues/2930/timeline
null
completed
null
null
false
[]
https://api.github.com/repos/psf/requests/issues/2929
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2929/labels{/name}
https://api.github.com/repos/psf/requests/issues/2929/comments
https://api.github.com/repos/psf/requests/issues/2929/events
https://github.com/psf/requests/issues/2929
122,504,590
MDU6SXNzdWUxMjI1MDQ1OTA=
2,929
Uploading packages via twine fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/2492836?v=4", "events_url": "https://api.github.com/users/nrvnrvn/events{/privacy}", "followers_url": "https://api.github.com/users/nrvnrvn/followers", "following_url": "https://api.github.com/users/nrvnrvn/following{/other_user}", "gists_url": "https://api.github.com/users/nrvnrvn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nrvnrvn", "id": 2492836, "login": "nrvnrvn", "node_id": "MDQ6VXNlcjI0OTI4MzY=", "organizations_url": "https://api.github.com/users/nrvnrvn/orgs", "received_events_url": "https://api.github.com/users/nrvnrvn/received_events", "repos_url": "https://api.github.com/users/nrvnrvn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nrvnrvn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nrvnrvn/subscriptions", "type": "User", "url": "https://api.github.com/users/nrvnrvn", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-12-16T13:35:53Z
2021-09-08T20:00:56Z
2015-12-16T18:09:42Z
NONE
resolved
Using latest 2.9.0 ``` $ twine upload dist/*.whl Uploading somepkg-15.12.16-py3-none-any.whl ConnectionError: ('Connection aborted.', BadStatusLine("''",)) $ ``` rollback to 2.8.1 solves the issue.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2929/reactions" }
https://api.github.com/repos/psf/requests/issues/2929/timeline
null
completed
null
null
false
[ "@sigmavirus24 You're probably best placed to look at this, but my suspicion is that there's an unexpected interaction between the toolbelt's MultipartEncoder and the fix we put in for calculating the actual length of file-like objects that are not seeked to the beginning. That said, I can't find anything in that.\...
https://api.github.com/repos/psf/requests/issues/2928
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2928/labels{/name}
https://api.github.com/repos/psf/requests/issues/2928/comments
https://api.github.com/repos/psf/requests/issues/2928/events
https://github.com/psf/requests/pull/2928
122,306,527
MDExOlB1bGxSZXF1ZXN0NTM3MjQxMTE=
2,928
make setup.py upload happy
{ "avatar_url": "https://avatars.githubusercontent.com/u/76932?v=4", "events_url": "https://api.github.com/users/heni/events{/privacy}", "followers_url": "https://api.github.com/users/heni/followers", "following_url": "https://api.github.com/users/heni/following{/other_user}", "gists_url": "https://api.github.com/users/heni/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/heni", "id": 76932, "login": "heni", "node_id": "MDQ6VXNlcjc2OTMy", "organizations_url": "https://api.github.com/users/heni/orgs", "received_events_url": "https://api.github.com/users/heni/received_events", "repos_url": "https://api.github.com/users/heni/repos", "site_admin": false, "starred_url": "https://api.github.com/users/heni/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/heni/subscriptions", "type": "User", "url": "https://api.github.com/users/heni", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2015-12-15T16:10:53Z
2021-09-08T05:01:09Z
2015-12-15T17:22:06Z
NONE
resolved
distutils brokes when we use tuple based meta values canonic way is define classifiers as list not a tuple
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2928/reactions" }
https://api.github.com/repos/psf/requests/issues/2928/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2928.diff", "html_url": "https://github.com/psf/requests/pull/2928", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2928.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2928" }
true
[ "@heni We've been using a tuple here since [literally the start of the project](https://github.com/kennethreitz/requests/commit/0477018761c67152cdcc0b83d56f27e701e65b9e), which _used_ distutils. I do not believe this can possibly be the problem you're experiencing.\n", "I want to redistribute this package into pr...
https://api.github.com/repos/psf/requests/issues/2927
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2927/labels{/name}
https://api.github.com/repos/psf/requests/issues/2927/comments
https://api.github.com/repos/psf/requests/issues/2927/events
https://github.com/psf/requests/pull/2927
122,287,925
MDExOlB1bGxSZXF1ZXN0NTM3MTIxMTU=
2,927
Prepare 2.9.0 release.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}...
null
4
2015-12-15T14:48:11Z
2021-09-08T05:01:09Z
2015-12-15T15:26:56Z
MEMBER
resolved
This should contain the set of changes required for us to push 2.9.0 out the door.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2927/reactions" }
https://api.github.com/repos/psf/requests/issues/2927/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2927.diff", "html_url": "https://github.com/psf/requests/pull/2927", "merged_at": "2015-12-15T15:26:56Z", "patch_url": "https://github.com/psf/requests/pull/2927.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2927" }
true
[ "@sigmavirus24 Can you confirm for me that you're happy with these release notes?\n", "You also need to bump `__version__` and `__build__`. :)\n", "@sigmavirus24 I intentionally did not do that, so that we have a single commit entitled `v2.9.0`, rather than a merge commit that hits it. =D\n", "Got it. Well th...
https://api.github.com/repos/psf/requests/issues/2926
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2926/labels{/name}
https://api.github.com/repos/psf/requests/issues/2926/comments
https://api.github.com/repos/psf/requests/issues/2926/events
https://github.com/psf/requests/pull/2926
121,768,348
MDExOlB1bGxSZXF1ZXN0NTM0MjkxMzg=
2,926
Refactor default params
{ "avatar_url": "https://avatars.githubusercontent.com/u/624531?v=4", "events_url": "https://api.github.com/users/bsamek/events{/privacy}", "followers_url": "https://api.github.com/users/bsamek/followers", "following_url": "https://api.github.com/users/bsamek/following{/other_user}", "gists_url": "https://api.github.com/users/bsamek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bsamek", "id": 624531, "login": "bsamek", "node_id": "MDQ6VXNlcjYyNDUzMQ==", "organizations_url": "https://api.github.com/users/bsamek/orgs", "received_events_url": "https://api.github.com/users/bsamek/received_events", "repos_url": "https://api.github.com/users/bsamek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bsamek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bsamek/subscriptions", "type": "User", "url": "https://api.github.com/users/bsamek", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-12-11T18:48:38Z
2021-09-08T05:01:09Z
2015-12-11T22:13:53Z
CONTRIBUTOR
resolved
Specified the default argument for params that have a default in the docstring so that the default is easier to see from the code. Modified the docstring in api.py to match the docstring in sessions.py.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2926/reactions" }
https://api.github.com/repos/psf/requests/issues/2926/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2926.diff", "html_url": "https://github.com/psf/requests/pull/2926", "merged_at": "2015-12-11T22:13:53Z", "patch_url": "https://github.com/psf/requests/pull/2926.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2926" }
true
[ "I also noticed that there may be a problem in test_requests.py. Lines 524-5 reference the httpbin_ca_bundle fixture, but there is no fixture by that name. If I am reading this correctly, this means that the test is passing in None instead of a cert path. Does this make sense?\n", "Hey @bsamek! Thanks for the PR....
https://api.github.com/repos/psf/requests/issues/2925
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2925/labels{/name}
https://api.github.com/repos/psf/requests/issues/2925/comments
https://api.github.com/repos/psf/requests/issues/2925/events
https://github.com/psf/requests/issues/2925
121,766,203
MDU6SXNzdWUxMjE3NjYyMDM=
2,925
Deadlock caused by local import in different thread.
{ "avatar_url": "https://avatars.githubusercontent.com/u/568697?v=4", "events_url": "https://api.github.com/users/guojh/events{/privacy}", "followers_url": "https://api.github.com/users/guojh/followers", "following_url": "https://api.github.com/users/guojh/following{/other_user}", "gists_url": "https://api.github.com/users/guojh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/guojh", "id": 568697, "login": "guojh", "node_id": "MDQ6VXNlcjU2ODY5Nw==", "organizations_url": "https://api.github.com/users/guojh/orgs", "received_events_url": "https://api.github.com/users/guojh/received_events", "repos_url": "https://api.github.com/users/guojh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/guojh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/guojh/subscriptions", "type": "User", "url": "https://api.github.com/users/guojh", "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": "e102d8", "default": false, "description": null, "id": 117745, "...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 29, "created_at": "2024-05-19T18:29:04Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/18519037?v=4", "events_url": "https://api.github.com/users/sethmlarson/events{/privacy}", "followers_url": "https://api.github.com/users/sethmlarson/followers", "following_url": "https://api.github.com/users/sethmlarson/following{/other_user}", "gists_url": "https://api.github.com/users/sethmlarson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sethmlarson", "id": 18519037, "login": "sethmlarson", "node_id": "MDQ6VXNlcjE4NTE5MDM3", "organizations_url": "https://api.github.com/users/sethmlarson/orgs", "received_events_url": "https://api.github.com/users/sethmlarson/received_events", "repos_url": "https://api.github.com/users/sethmlarson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sethmlarson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sethmlarson/subscriptions", "type": "User", "url": "https://api.github.com/users/sethmlarson", "user_view_type": "public" }, "description": "", "due_on": null, "html_url": "https://github.com/psf/requests/milestone/34", "id": 11073254, "labels_url": "https://api.github.com/repos/psf/requests/milestones/34/labels", "node_id": "MI_kwDOABTKOs4AqPbm", "number": 34, "open_issues": 0, "state": "open", "title": "Bankruptcy", "updated_at": "2024-05-20T14:37:16Z", "url": "https://api.github.com/repos/psf/requests/milestones/34" }
16
2015-12-11T18:35:38Z
2024-05-20T14:35:55Z
2024-05-20T14:35:55Z
NONE
null
requests version 2.8.1, installed from pip. Code to reproduce: ``` bash #!/bin/bash cat > test_module.py <<EOF import threading import requests def make_request(): print('before requests.get') requests.get('https://github.com/kennethreitz/requests') # <-- program will get stuck here print('after requests.get') thread = threading.Thread(target=make_request) thread.start() thread.join() EOF python -c 'import test_module' ``` traceback from stuck point (I modified requests code to print stack): ``` File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 783, in __bootstrap self.__bootstrap_inner() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "test_module.py", line 7, in make_request requests.get('https://github.com/kennethreitz/requests') File "/private/tmp/requests/v/lib/python2.7/site-packages/requests/api.py", line 69, in get return request('get', url, params=params, **kwargs) File "/private/tmp/requests/v/lib/python2.7/site-packages/requests/api.py", line 50, in request response = session.request(method=method, url=url, **kwargs) File "/private/tmp/requests/v/lib/python2.7/site-packages/requests/sessions.py", line 454, in request prep = self.prepare_request(req) File "/private/tmp/requests/v/lib/python2.7/site-packages/requests/sessions.py", line 375, in prepare_request auth = get_netrc_auth(request.url) File "/private/tmp/requests/v/lib/python2.7/site-packages/requests/utils.py", line 74, in get_netrc_auth traceback.print_stack(); from netrc import netrc, NetrcParseError ``` This should be caused by deadlocking on import lock (imp.acquire_lock, imp.release_lock, imp.lock_held). Possible duplication of: https://github.com/kennethreitz/requests/issues/2649
{ "avatar_url": "https://avatars.githubusercontent.com/u/18519037?v=4", "events_url": "https://api.github.com/users/sethmlarson/events{/privacy}", "followers_url": "https://api.github.com/users/sethmlarson/followers", "following_url": "https://api.github.com/users/sethmlarson/following{/other_user}", "gists_url": "https://api.github.com/users/sethmlarson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sethmlarson", "id": 18519037, "login": "sethmlarson", "node_id": "MDQ6VXNlcjE4NTE5MDM3", "organizations_url": "https://api.github.com/users/sethmlarson/orgs", "received_events_url": "https://api.github.com/users/sethmlarson/received_events", "repos_url": "https://api.github.com/users/sethmlarson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sethmlarson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sethmlarson/subscriptions", "type": "User", "url": "https://api.github.com/users/sethmlarson", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 1, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/psf/requests/issues/2925/reactions" }
https://api.github.com/repos/psf/requests/issues/2925/timeline
null
completed
null
null
false
[ "Why are you acquiring the import lock?\n", "## You've provided none of the information requested in our contributing documentation.\n\nSent from my Android device with K-9 Mail. Please excuse my brevity.\n", "I edited original post, and added some information.\n", "> Why are you acquiring the import lock?\n\...
https://api.github.com/repos/psf/requests/issues/2924
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2924/labels{/name}
https://api.github.com/repos/psf/requests/issues/2924/comments
https://api.github.com/repos/psf/requests/issues/2924/events
https://github.com/psf/requests/issues/2924
121,574,861
MDU6SXNzdWUxMjE1NzQ4NjE=
2,924
Connections not recycled when stream=True and body not consumed
{ "avatar_url": "https://avatars.githubusercontent.com/u/1315417?v=4", "events_url": "https://api.github.com/users/mirosval/events{/privacy}", "followers_url": "https://api.github.com/users/mirosval/followers", "following_url": "https://api.github.com/users/mirosval/following{/other_user}", "gists_url": "https://api.github.com/users/mirosval/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mirosval", "id": 1315417, "login": "mirosval", "node_id": "MDQ6VXNlcjEzMTU0MTc=", "organizations_url": "https://api.github.com/users/mirosval/orgs", "received_events_url": "https://api.github.com/users/mirosval/received_events", "repos_url": "https://api.github.com/users/mirosval/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mirosval/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mirosval/subscriptions", "type": "User", "url": "https://api.github.com/users/mirosval", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-12-10T20:53:14Z
2021-09-08T20:00:57Z
2015-12-10T21:10:21Z
NONE
resolved
Calling `response.close()` does not seem to release the connection back to the pool. I'm only using the headers or even just `status_code`, so the content doesn't get downloaded, I call `response.close()` but then the next request opens up a new connection. Is there a reason for this? It seems that the documentation is insufficient at the very least, if this is intended behavior.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2924/reactions" }
https://api.github.com/repos/psf/requests/issues/2924/timeline
null
completed
null
null
false
[ "If you don't consume all the data from the underlying connection, the connection actually _cannot_ be re-used. This is because requests has no way of signalling to the operating system that it doesn't care about the data already received except by closing the socket and throwing the connection away.\n\nDocumenting...
https://api.github.com/repos/psf/requests/issues/2923
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2923/labels{/name}
https://api.github.com/repos/psf/requests/issues/2923/comments
https://api.github.com/repos/psf/requests/issues/2923/events
https://github.com/psf/requests/pull/2923
121,284,960
MDExOlB1bGxSZXF1ZXN0NTMxNDIzODU=
2,923
Add hint to :param verify.
{ "avatar_url": "https://avatars.githubusercontent.com/u/624531?v=4", "events_url": "https://api.github.com/users/bsamek/events{/privacy}", "followers_url": "https://api.github.com/users/bsamek/followers", "following_url": "https://api.github.com/users/bsamek/following{/other_user}", "gists_url": "https://api.github.com/users/bsamek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bsamek", "id": 624531, "login": "bsamek", "node_id": "MDQ6VXNlcjYyNDUzMQ==", "organizations_url": "https://api.github.com/users/bsamek/orgs", "received_events_url": "https://api.github.com/users/bsamek/received_events", "repos_url": "https://api.github.com/users/bsamek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bsamek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bsamek/subscriptions", "type": "User", "url": "https://api.github.com/users/bsamek", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-12-09T16:27:44Z
2021-09-08T05:01:10Z
2015-12-09T16:33:09Z
CONTRIBUTOR
resolved
It is not clear that :param verify defaults to True. The way the verify portion of the docstring is written it looks like it defaults to False, and you have to pass in True if you'd like the SSL cert to be verified, but the opposite is the case.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2923/reactions" }
https://api.github.com/repos/psf/requests/issues/2923/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2923.diff", "html_url": "https://github.com/psf/requests/pull/2923", "merged_at": "2015-12-09T16:33:09Z", "patch_url": "https://github.com/psf/requests/pull/2923.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2923" }
true
[ "Thanks @bsamek! :sparkles: :cake: :sparkles:\n" ]
https://api.github.com/repos/psf/requests/issues/2922
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2922/labels{/name}
https://api.github.com/repos/psf/requests/issues/2922/comments
https://api.github.com/repos/psf/requests/issues/2922/events
https://github.com/psf/requests/issues/2922
121,229,016
MDU6SXNzdWUxMjEyMjkwMTY=
2,922
Feature: please add a "status" field to response object which confirms to PEP 0333
{ "avatar_url": "https://avatars.githubusercontent.com/u/2693414?v=4", "events_url": "https://api.github.com/users/et304383/events{/privacy}", "followers_url": "https://api.github.com/users/et304383/followers", "following_url": "https://api.github.com/users/et304383/following{/other_user}", "gists_url": "https://api.github.com/users/et304383/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/et304383", "id": 2693414, "login": "et304383", "node_id": "MDQ6VXNlcjI2OTM0MTQ=", "organizations_url": "https://api.github.com/users/et304383/orgs", "received_events_url": "https://api.github.com/users/et304383/received_events", "repos_url": "https://api.github.com/users/et304383/repos", "site_admin": false, "starred_url": "https://api.github.com/users/et304383/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/et304383/subscriptions", "type": "User", "url": "https://api.github.com/users/et304383", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-12-09T12:44:12Z
2021-09-08T20:00:58Z
2015-12-09T12:47:23Z
NONE
resolved
According to this: https://www.python.org/dev/peps/pep-0333/#the-start-response-callable The response object must contain a status field with string values such as "200 OK" or "403 Forbidden" and so forth. If one is developing a Python WSGI compliant API then any framework used (such as falcon) is going to require a status field is set correctly. I am deploying a python app behind WSGI (falcon) and I use the requests module to perform requests on behalf of the API consumer (it's a special use case to sign requests going to Amazon Elasticsearch using signature 4 that I did not want to try to write in JavaScript) and as a result I have to take the response object from requests and take values contained within to construct a WSGI compliant response. Currently I have to concatenate the status_code and reason fields from the requests response object to in order to construct a PEP 0333 complaint response status. A field added to the requests response object would save this extra step. This is a "nice to have", not a serious priority.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2922/reactions" }
https://api.github.com/repos/psf/requests/issues/2922/timeline
null
completed
null
null
false
[ "Thanks for this request @eric-tucker!\n\nUnfortunately, Requests is in feature-freeze for the foreseeable future, which means that we're generally not implementing new features unless they represent a really compelling loss of function. Given that all the information you require is present, and that a helper funct...
https://api.github.com/repos/psf/requests/issues/2921
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2921/labels{/name}
https://api.github.com/repos/psf/requests/issues/2921/comments
https://api.github.com/repos/psf/requests/issues/2921/events
https://github.com/psf/requests/issues/2921
121,055,364
MDU6SXNzdWUxMjEwNTUzNjQ=
2,921
Non-descript error: Gevent + Connection Pooling + SSL
{ "avatar_url": "https://avatars.githubusercontent.com/u/505616?v=4", "events_url": "https://api.github.com/users/jgoldberg/events{/privacy}", "followers_url": "https://api.github.com/users/jgoldberg/followers", "following_url": "https://api.github.com/users/jgoldberg/following{/other_user}", "gists_url": "https://api.github.com/users/jgoldberg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgoldberg", "id": 505616, "login": "jgoldberg", "node_id": "MDQ6VXNlcjUwNTYxNg==", "organizations_url": "https://api.github.com/users/jgoldberg/orgs", "received_events_url": "https://api.github.com/users/jgoldberg/received_events", "repos_url": "https://api.github.com/users/jgoldberg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgoldberg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgoldberg/subscriptions", "type": "User", "url": "https://api.github.com/users/jgoldberg", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-12-08T17:19:07Z
2021-09-08T18:00:56Z
2016-04-16T00:05:16Z
NONE
resolved
We're getting this error randomly from our production environment. I can't seem to reproduce locally yet. We use requests w/ Gevent, and I'm wondering if it's some kind of race condition where the socket isn't ready to use, but gets handed out by the connection pool. Still investigating, but figured I'd post this anyways. It would be nice to get a better error from pyopenssl. We're using Requests 2.7.0, installed using pip. ``` File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 508, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 370, in send timeout=timeout File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py", line 533, in urlopen conn = self._get_conn(timeout=pool_timeout) File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py", line 239, in _get_conn conn.close() File "/usr/lib/python2.7/httplib.py", line 780, in close self.sock.close() # close it manually... there may be other refs File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 213, in close return self.connection.shutdown() Error: [] ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/505616?v=4", "events_url": "https://api.github.com/users/jgoldberg/events{/privacy}", "followers_url": "https://api.github.com/users/jgoldberg/followers", "following_url": "https://api.github.com/users/jgoldberg/following{/other_user}", "gists_url": "https://api.github.com/users/jgoldberg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgoldberg", "id": 505616, "login": "jgoldberg", "node_id": "MDQ6VXNlcjUwNTYxNg==", "organizations_url": "https://api.github.com/users/jgoldberg/orgs", "received_events_url": "https://api.github.com/users/jgoldberg/received_events", "repos_url": "https://api.github.com/users/jgoldberg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgoldberg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgoldberg/subscriptions", "type": "User", "url": "https://api.github.com/users/jgoldberg", "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/2921/reactions" }
https://api.github.com/repos/psf/requests/issues/2921/timeline
null
completed
null
null
false
[ "Hi there! Please provide additional information as requested in our [Contributing.md file](https://github.com/kennethreitz/requests/blob/master/CONTRIBUTING.md): specifically, **what version of Requests** you're using and **how you installed it**.\n", "You've updated your original post to say requests 2.8.1 from...
https://api.github.com/repos/psf/requests/issues/2920
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2920/labels{/name}
https://api.github.com/repos/psf/requests/issues/2920/comments
https://api.github.com/repos/psf/requests/issues/2920/events
https://github.com/psf/requests/issues/2920
120,875,099
MDU6SXNzdWUxMjA4NzUwOTk=
2,920
POST to S3 Bucket Returning 403
{ "avatar_url": "https://avatars.githubusercontent.com/u/7862740?v=4", "events_url": "https://api.github.com/users/JKulakofsky/events{/privacy}", "followers_url": "https://api.github.com/users/JKulakofsky/followers", "following_url": "https://api.github.com/users/JKulakofsky/following{/other_user}", "gists_url": "https://api.github.com/users/JKulakofsky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JKulakofsky", "id": 7862740, "login": "JKulakofsky", "node_id": "MDQ6VXNlcjc4NjI3NDA=", "organizations_url": "https://api.github.com/users/JKulakofsky/orgs", "received_events_url": "https://api.github.com/users/JKulakofsky/received_events", "repos_url": "https://api.github.com/users/JKulakofsky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JKulakofsky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JKulakofsky/subscriptions", "type": "User", "url": "https://api.github.com/users/JKulakofsky", "user_view_type": "public" }
[]
closed
true
null
[]
null
17
2015-12-07T21:45:21Z
2021-09-08T20:00:58Z
2015-12-07T23:40:47Z
NONE
resolved
I am writing a program that will POST a file to a website that is making me go through a few steps to get the file properly uploaded. In the first step, I perform a simple POST which alerts the site that a file will be uploaded and returns a URL to an S3 bucket, along with some more response content. The next step is to POST the file to the URL returned in step one, and this is where things break. An abbreviated version of my code is as follows: ``` url = 'https://myurl.s3.amazonaws.com/' payload = {all of the content returned from step one, minus the URL} file = {'file': open('C:\...\file_name.imscc', 'rb')} r = requests.post(url, data=payload, files=file) ``` At this point the code waits for about 15-20 seconds and then gives back a 403 error. My initial thought was that the file was too large (about 18.58MB) so I tried to use the Multipart Encoder from the Requests Toolbelt. When I ran this code: ``` m = MultipartEncoder(fileds={the same values as above, 'file': (files[0], open('C:\Users\jonathan.kulakofsky\Documents\Code\Downloads\\' + files[0], 'rb'))}) ``` I got a Traceback Error that ended with `'Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')`. As far as I can tell, I am passing the proper authentication key back to Amazon with the rest of the fields in the payload. Does anyone have any ideas why I'm getting these errors?
{ "avatar_url": "https://avatars.githubusercontent.com/u/7862740?v=4", "events_url": "https://api.github.com/users/JKulakofsky/events{/privacy}", "followers_url": "https://api.github.com/users/JKulakofsky/followers", "following_url": "https://api.github.com/users/JKulakofsky/following{/other_user}", "gists_url": "https://api.github.com/users/JKulakofsky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JKulakofsky", "id": 7862740, "login": "JKulakofsky", "node_id": "MDQ6VXNlcjc4NjI3NDA=", "organizations_url": "https://api.github.com/users/JKulakofsky/orgs", "received_events_url": "https://api.github.com/users/JKulakofsky/received_events", "repos_url": "https://api.github.com/users/JKulakofsky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JKulakofsky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JKulakofsky/subscriptions", "type": "User", "url": "https://api.github.com/users/JKulakofsky", "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/2920/reactions" }
https://api.github.com/repos/psf/requests/issues/2920/timeline
null
completed
null
null
false
[ "I _suspect_ that Amazon is returning a 4XX status code and then getting mad when we keep sending the data.\n\nDo you need to multipart encode this data, or do you just want to post only the bytes of the file?\n", "I only need to post the file. I only tried the multipart encoder because the requests documentatio...
https://api.github.com/repos/psf/requests/issues/2919
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2919/labels{/name}
https://api.github.com/repos/psf/requests/issues/2919/comments
https://api.github.com/repos/psf/requests/issues/2919/events
https://github.com/psf/requests/pull/2919
120,694,413
MDExOlB1bGxSZXF1ZXN0NTI4MDQwNDA=
2,919
[DRAFT] WIP in finding a solution to data encoding check
{ "avatar_url": "https://avatars.githubusercontent.com/u/954858?v=4", "events_url": "https://api.github.com/users/ArcTanSusan/events{/privacy}", "followers_url": "https://api.github.com/users/ArcTanSusan/followers", "following_url": "https://api.github.com/users/ArcTanSusan/following{/other_user}", "gists_url": "https://api.github.com/users/ArcTanSusan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArcTanSusan", "id": 954858, "login": "ArcTanSusan", "node_id": "MDQ6VXNlcjk1NDg1OA==", "organizations_url": "https://api.github.com/users/ArcTanSusan/orgs", "received_events_url": "https://api.github.com/users/ArcTanSusan/received_events", "repos_url": "https://api.github.com/users/ArcTanSusan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArcTanSusan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArcTanSusan/subscriptions", "type": "User", "url": "https://api.github.com/users/ArcTanSusan", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-12-07T04:10:39Z
2021-09-08T04:01:09Z
2016-04-06T19:13:48Z
CONTRIBUTOR
resolved
Use existing method `to_native_string()` as a check. This is a first attempt to resolve https://github.com/kennethreitz/requests/issues/2638, so marking this PR as [DRAFT]. I'd appreciate feedback on this.
{ "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/2919/reactions" }
https://api.github.com/repos/psf/requests/issues/2919/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2919.diff", "html_url": "https://github.com/psf/requests/pull/2919", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2919.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2919" }
true
[ "Yeah, so how we approach this is basically dependent on whether we think it's acceptable for `to_native_string()` to go in `encode_params`. I personally think that's the best place for it, because it allows us to avoid duplicating the large amount of knowledge `encode_params` has about how this variable is structu...
https://api.github.com/repos/psf/requests/issues/2918
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2918/labels{/name}
https://api.github.com/repos/psf/requests/issues/2918/comments
https://api.github.com/repos/psf/requests/issues/2918/events
https://github.com/psf/requests/issues/2918
120,598,566
MDU6SXNzdWUxMjA1OTg1NjY=
2,918
Wrong content type on request.head() only
{ "avatar_url": "https://avatars.githubusercontent.com/u/6280042?v=4", "events_url": "https://api.github.com/users/bestofothers/events{/privacy}", "followers_url": "https://api.github.com/users/bestofothers/followers", "following_url": "https://api.github.com/users/bestofothers/following{/other_user}", "gists_url": "https://api.github.com/users/bestofothers/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bestofothers", "id": 6280042, "login": "bestofothers", "node_id": "MDQ6VXNlcjYyODAwNDI=", "organizations_url": "https://api.github.com/users/bestofothers/orgs", "received_events_url": "https://api.github.com/users/bestofothers/received_events", "repos_url": "https://api.github.com/users/bestofothers/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bestofothers/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bestofothers/subscriptions", "type": "User", "url": "https://api.github.com/users/bestofothers", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-12-06T00:42:32Z
2021-09-08T20:00:59Z
2015-12-06T02:16:01Z
NONE
resolved
Using request.head() I want to get the content-type of a page before proceeding. Unfortunately for me, the request header content-type returns text/html. But if after completing the requests using request.get() the content type is application/octet-stream. I have suspected the web server but using urllib2 with a head request it return application/octet-stream Here is my code and the exact url to reproduce the same error: ``` py >>> import requests >>> u = "http://holo-pack.com.tw/download.phpx?soft=ea70" >>> r = requests.head(u) >>> r.headers['content-type'] 'text/html' ``` With request.get() the header is "application/octet-stream" so with urllib2 as seen here: pect https://filippo.io/send-a-head-request-in-python/
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2918/reactions" }
https://api.github.com/repos/psf/requests/issues/2918/timeline
null
completed
null
null
false
[ "Please review the [CONTRIBUTING](https://github.com/kennethreitz/requests/blob/master/CONTRIBUTING.md#good-bug-reports) file that GitHub prompted you to review prior to filing this bug.\n\nYou've not told us what version of requests you're using or how you've installed it.\n", "So in spite of not having the info...
https://api.github.com/repos/psf/requests/issues/2917
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2917/labels{/name}
https://api.github.com/repos/psf/requests/issues/2917/comments
https://api.github.com/repos/psf/requests/issues/2917/events
https://github.com/psf/requests/pull/2917
120,569,330
MDExOlB1bGxSZXF1ZXN0NTI3NTgwMjM=
2,917
requests/auth: Handle an empty 'qop' attribute in an Authenticate challenge
{ "avatar_url": "https://avatars.githubusercontent.com/u/2288718?v=4", "events_url": "https://api.github.com/users/matt-jordan/events{/privacy}", "followers_url": "https://api.github.com/users/matt-jordan/followers", "following_url": "https://api.github.com/users/matt-jordan/following{/other_user}", "gists_url": "https://api.github.com/users/matt-jordan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/matt-jordan", "id": 2288718, "login": "matt-jordan", "node_id": "MDQ6VXNlcjIyODg3MTg=", "organizations_url": "https://api.github.com/users/matt-jordan/orgs", "received_events_url": "https://api.github.com/users/matt-jordan/received_events", "repos_url": "https://api.github.com/users/matt-jordan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/matt-jordan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/matt-jordan/subscriptions", "type": "User", "url": "https://api.github.com/users/matt-jordan", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-12-05T16:21:42Z
2021-09-08T05:01:10Z
2015-12-06T04:48:52Z
CONTRIBUTOR
resolved
Some malfunctioning HTTP servers may return a qop directive with no token, as opposed to correctly omitting the qop directive completely. For example: ``` header: WWW-Authenticate: Digest realm="foobar_api_auth", qop="", nonce="a12059eaaad0b86ece8f62f04cbafed6", algorithm="MD5", stale="false" ``` Prior to this patch, requests would respond with a 'None' Authorization header. While the server is certainly incorrect, this patch updates requests to be more tolerant to this kind of shenaniganry. If we receive an empty string for the value of the qop attribute, or some tokens that are not recognized (that is, not 'auth' or 'auth-int'), we instead treat that as if the qop attribute was simply not provided. Closes #2916
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2917/reactions" }
https://api.github.com/repos/psf/requests/issues/2917/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2917.diff", "html_url": "https://github.com/psf/requests/pull/2917", "merged_at": "2015-12-06T04:48:52Z", "patch_url": "https://github.com/psf/requests/pull/2917.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2917" }
true
[ "Thanks for this!\n\nI think this change is more aggressive than we need actually. Is there any reason you didn't take the simpler path and just change the conditional to look for falsy values of `qop`?\n", "Just got a bit trigger happy on trying to handle unrecognized values in the `qop` attribute. A much simple...
https://api.github.com/repos/psf/requests/issues/2916
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2916/labels{/name}
https://api.github.com/repos/psf/requests/issues/2916/comments
https://api.github.com/repos/psf/requests/issues/2916/events
https://github.com/psf/requests/issues/2916
120,522,857
MDU6SXNzdWUxMjA1MjI4NTc=
2,916
HTTPDigestAuth: Empty qop header in server challenge results in Authorization: None
{ "avatar_url": "https://avatars.githubusercontent.com/u/2288718?v=4", "events_url": "https://api.github.com/users/matt-jordan/events{/privacy}", "followers_url": "https://api.github.com/users/matt-jordan/followers", "following_url": "https://api.github.com/users/matt-jordan/following{/other_user}", "gists_url": "https://api.github.com/users/matt-jordan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/matt-jordan", "id": 2288718, "login": "matt-jordan", "node_id": "MDQ6VXNlcjIyODg3MTg=", "organizations_url": "https://api.github.com/users/matt-jordan/orgs", "received_events_url": "https://api.github.com/users/matt-jordan/received_events", "repos_url": "https://api.github.com/users/matt-jordan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/matt-jordan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/matt-jordan/subscriptions", "type": "User", "url": "https://api.github.com/users/matt-jordan", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2015-12-05T02:22:21Z
2021-09-08T20:00:59Z
2015-12-06T04:48:52Z
CONTRIBUTOR
resolved
This is a bit of a weird one, and I'm fairly certain the server is misbehaving slightly, but since I have less control over that: When issuing a request with the following: ``` response = requests.post(url, auth=HTTPDigestAuth('admin', 'foobar')) ``` The server returns back a challenge with the following `WWW-Authenticate` header: ``` reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Server: nginx header: Date: Sat, 05 Dec 2015 02:08:43 GMT header: Content-Type: text/html; charset=utf-8 header: Content-Length: 188 header: Connection: keep-alive header: WWW-Authenticate: Digest realm="foobar_api_auth", qop="", nonce="a12059eaaad0b86ece8f62f04cbafed6", algorithm="MD5", stale="false" ``` Note the `qop` header with an empty value. That doesn't appear to be valid per RFC 2617: > ``` > qop-value = "auth" | "auth-int" | token > ``` That being said, RFC 2617 does specify that unrecognised values MUST be ignored. Instead, it looks like requests drops the entire authorization header: ``` if qop is None: respdig = KD(HA1, "%s:%s" % (nonce, HA2)) elif qop == 'auth' or 'auth' in qop.split(','): noncebit = "%s:%s:%s:%s:%s" % ( nonce, ncvalue, cnonce, 'auth', HA2 ) respdig = KD(HA1, noncebit) else: # XXX handle auth-int. return None ``` This results in the following being sent back to the challenge: ``` send: 'POST /json HTTP/1.1\r\nHost: foo.com\r\nContent-Length: 94\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nUser-Agent: python-requests/2.8.1\r\nConnection: keep-alive\r\nContent-Type: application/json\r\nAuthorization: None\r\n\r\n{"data": "more}' ``` I'd be more than happy to work on a PR for this issue, but would like to confirm that a PR that updates the handling of `qop` to be tolerant to unrecognized tokens/characters would be acceptable. Arguably, the server should be omitting the `qop` header completely, but RFC compliance in requests would probably make it more tolerant to misbehaving servers like this one. Thanks!
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2916/reactions" }
https://api.github.com/repos/psf/requests/issues/2916/timeline
null
completed
null
null
false
[ "Yeah, so the server is wrong here. However, I think we can get to a place where we roughly DTRT here, by assuming that if `qop` is any falsy value then we should enter the first block. That'll cover this case as well.\n\nI'd accept a PR that makes this change.\n", "Awesome! I'll have something up this weekend.\n...
https://api.github.com/repos/psf/requests/issues/2915
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2915/labels{/name}
https://api.github.com/repos/psf/requests/issues/2915/comments
https://api.github.com/repos/psf/requests/issues/2915/events
https://github.com/psf/requests/pull/2915
120,354,789
MDExOlB1bGxSZXF1ZXN0NTI2NDEyOTQ=
2,915
Switch to alabaster sphinx theme in the docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/954858?v=4", "events_url": "https://api.github.com/users/ArcTanSusan/events{/privacy}", "followers_url": "https://api.github.com/users/ArcTanSusan/followers", "following_url": "https://api.github.com/users/ArcTanSusan/following{/other_user}", "gists_url": "https://api.github.com/users/ArcTanSusan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArcTanSusan", "id": 954858, "login": "ArcTanSusan", "node_id": "MDQ6VXNlcjk1NDg1OA==", "organizations_url": "https://api.github.com/users/ArcTanSusan/orgs", "received_events_url": "https://api.github.com/users/ArcTanSusan/received_events", "repos_url": "https://api.github.com/users/ArcTanSusan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArcTanSusan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArcTanSusan/subscriptions", "type": "User", "url": "https://api.github.com/users/ArcTanSusan", "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
20
2015-12-04T08:22:53Z
2021-09-08T05:01:04Z
2016-01-15T23:35:03Z
CONTRIBUTOR
resolved
Feedback is welcome! :grinning: ## Before with @kennethreitz's sphinx theme ![before_kr_sphinx_theme](https://cloud.githubusercontent.com/assets/954858/11584924/f6321290-9a1c-11e5-890c-11a20cf3ff8d.png) ## After with alabaster sphinx theme ![alabaster_theme_for_requests](https://cloud.githubusercontent.com/assets/954858/11672701/a4a17548-9dc7-11e5-8038-d2ca698b8aa9.png)
{ "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/2915/reactions" }
https://api.github.com/repos/psf/requests/issues/2915/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2915.diff", "html_url": "https://github.com/psf/requests/pull/2915", "merged_at": "2016-01-15T23:35:03Z", "patch_url": "https://github.com/psf/requests/pull/2915.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2915" }
true
[ "\\o/ You are a :star: @onceuponatimeforever!\n\nFor posterity, this resolves #2779. Based on the quick screenshot provided above it looks like the only thing that gets lost here is that the Gumroad button isn't rendering out correctly.\n\n@kennethreitz, you'll need to review this because the look of the site is an...
https://api.github.com/repos/psf/requests/issues/2914
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2914/labels{/name}
https://api.github.com/repos/psf/requests/issues/2914/comments
https://api.github.com/repos/psf/requests/issues/2914/events
https://github.com/psf/requests/issues/2914
119,928,744
MDU6SXNzdWUxMTk5Mjg3NDQ=
2,914
Upgrade urllib3 to overcome Error: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]
{ "avatar_url": "https://avatars.githubusercontent.com/u/182938?v=4", "events_url": "https://api.github.com/users/nkhalasi/events{/privacy}", "followers_url": "https://api.github.com/users/nkhalasi/followers", "following_url": "https://api.github.com/users/nkhalasi/following{/other_user}", "gists_url": "https://api.github.com/users/nkhalasi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nkhalasi", "id": 182938, "login": "nkhalasi", "node_id": "MDQ6VXNlcjE4MjkzOA==", "organizations_url": "https://api.github.com/users/nkhalasi/orgs", "received_events_url": "https://api.github.com/users/nkhalasi/received_events", "repos_url": "https://api.github.com/users/nkhalasi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nkhalasi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nkhalasi/subscriptions", "type": "User", "url": "https://api.github.com/users/nkhalasi", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-12-02T12:13:48Z
2021-09-08T20:00:57Z
2015-12-02T12:16:59Z
NONE
resolved
We upgrade our production systems to requests==2.8.1 today and ran into <pre> File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen body=body, headers=headers) File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 353, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python2.7/httplib.py", line 979, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 975, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 835, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 811, in send self.sock.sendall(data) File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 220, in sendall sent = self._send_until_done(data[total_sent:total_sent+SSL_WRITE_BLOCKSIZE]) File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 206, in _send_until_done return self.connection.send(data) File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1271, in send self._raise_ssl_error(self._ssl, result) File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1187, in _raise_ssl_error _raise_current_error() File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue raise exception_type(errors) Error: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]</pre> Digging into the error lead us to https://www.bountysource.com/issues/27417596-ssl3_write_pending-error-from-urllib3-contrib-pyopenssl-sendall and then to https://github.com/shazow/urllib3/pull/719 The fix is on the master branch of urllib3 and hence wondering if there is a possibility of upgrading urllib3 to latest version.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2914/reactions" }
https://api.github.com/repos/psf/requests/issues/2914/timeline
null
completed
null
null
false
[ "Per our [release policy](http://docs.python-requests.org/en/latest/community/release-process/), we upgrade urllib3 on major releases, and only to active releases of urllib3. There has been no release of urllib3 since the last release of requests, and until such a release happens we cannot bring in urllib3. Note th...
https://api.github.com/repos/psf/requests/issues/2913
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2913/labels{/name}
https://api.github.com/repos/psf/requests/issues/2913/comments
https://api.github.com/repos/psf/requests/issues/2913/events
https://github.com/psf/requests/issues/2913
119,841,152
MDU6SXNzdWUxMTk4NDExNTI=
2,913
If socket is none requests started creating a new connection
{ "avatar_url": "https://avatars.githubusercontent.com/u/13664257?v=4", "events_url": "https://api.github.com/users/vkosuri/events{/privacy}", "followers_url": "https://api.github.com/users/vkosuri/followers", "following_url": "https://api.github.com/users/vkosuri/following{/other_user}", "gists_url": "https://api.github.com/users/vkosuri/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vkosuri", "id": 13664257, "login": "vkosuri", "node_id": "MDQ6VXNlcjEzNjY0MjU3", "organizations_url": "https://api.github.com/users/vkosuri/orgs", "received_events_url": "https://api.github.com/users/vkosuri/received_events", "repos_url": "https://api.github.com/users/vkosuri/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vkosuri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vkosuri/subscriptions", "type": "User", "url": "https://api.github.com/users/vkosuri", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-12-02T00:37:21Z
2016-04-20T13:24:46Z
2015-12-02T08:08:58Z
NONE
null
Hi, I am constantly seeing Resetting dropped connection for every URL, Could you please let me know Why i am getting and how do i avoid such error message? Here is python snippet ``` python def __init__(self, base_url, username, password): self.session = requests.Session() self.session.auth = (username, password) adapter = requests.adapters.HTTPAdapter(pool_connections=1, pool_maxsize=100, pool_block=True, max_retries=0) self.session.mount('http://', adapter) self.base_url = base_url start_url = base_url + 'index.html' _req = self.session.get(start_url) self.cookie = _req.cookies print self.cookie def get_entry(self, url): print self.cookie _req = self.session.get(url, cookies=self.cookie) print _req.headers return _req def post_entry(self, url, body): header = {"Content-type":"application/json"} print self.cookie _req = self.session.post(url=url, data=body, cookies=self.cookie, headers=header) print _req.headers print _req.text return _req ``` Thanks Malli
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2913/reactions" }
https://api.github.com/repos/psf/requests/issues/2913/timeline
null
completed
null
null
false
[ "I further debugged and I came to the socket information has, If socket is none, requests started creating a new connection\n\n``` Python\ndef is_connection_dropped(conn): # Platform-specific\n \"\"\"\n Returns True if the connection is dropped and should be closed.\n :param conn:\n :class:`httplib...
https://api.github.com/repos/psf/requests/issues/2912
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2912/labels{/name}
https://api.github.com/repos/psf/requests/issues/2912/comments
https://api.github.com/repos/psf/requests/issues/2912/events
https://github.com/psf/requests/issues/2912
119,840,302
MDU6SXNzdWUxMTk4NDAzMDI=
2,912
Question mark eaten from request URL if no params specified
{ "avatar_url": "https://avatars.githubusercontent.com/u/80741?v=4", "events_url": "https://api.github.com/users/mloskot/events{/privacy}", "followers_url": "https://api.github.com/users/mloskot/followers", "following_url": "https://api.github.com/users/mloskot/following{/other_user}", "gists_url": "https://api.github.com/users/mloskot/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mloskot", "id": 80741, "login": "mloskot", "node_id": "MDQ6VXNlcjgwNzQx", "organizations_url": "https://api.github.com/users/mloskot/orgs", "received_events_url": "https://api.github.com/users/mloskot/received_events", "repos_url": "https://api.github.com/users/mloskot/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mloskot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mloskot/subscriptions", "type": "User", "url": "https://api.github.com/users/mloskot", "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url...
{ "closed_at": null, "closed_issues": 29, "created_at": "2013-11-17T11:29:34Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }, "description": null, "due_on": null, "html_url": "https://github.com/psf/requests/milestone/20", "id": 487518, "labels_url": "https://api.github.com/repos/psf/requests/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lNDg3NTE4", "number": 20, "open_issues": 12, "state": "open", "title": "3.0.0", "updated_at": "2024-05-19T18:43:00Z", "url": "https://api.github.com/repos/psf/requests/milestones/20" }
22
2015-12-02T00:30:13Z
2017-10-21T12:30:07Z
2017-05-11T22:36:57Z
NONE
null
Here is an URL with question mark included, but without any parameters: ``` url='http://server.com/api/item.json?' ``` That URL (w/ question mark) controls server response in such way that it allows to request certain metadata about an item, instead of representation of an item iteself: ``` import urllib3 http = urllib3.PoolManager() r = http.request('GET', url) print (r.data) { "ItemMetadata" : { ... }} ``` The above works well. Requests, however, eat-or-skip the question mark if the `params` argument is missing/`None`/`{}`, so my request is responded with the resource representation, instead of the metadata: ``` from requests import get r = get(url, stream=True) print(r.text) { "Item" : { ... }} ``` That seem to indicate a bug in URL parsing.
{ "avatar_url": "https://avatars.githubusercontent.com/u/80741?v=4", "events_url": "https://api.github.com/users/mloskot/events{/privacy}", "followers_url": "https://api.github.com/users/mloskot/followers", "following_url": "https://api.github.com/users/mloskot/following{/other_user}", "gists_url": "https://api.github.com/users/mloskot/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mloskot", "id": 80741, "login": "mloskot", "node_id": "MDQ6VXNlcjgwNzQx", "organizations_url": "https://api.github.com/users/mloskot/orgs", "received_events_url": "https://api.github.com/users/mloskot/received_events", "repos_url": "https://api.github.com/users/mloskot/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mloskot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mloskot/subscriptions", "type": "User", "url": "https://api.github.com/users/mloskot", "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/2912/reactions" }
https://api.github.com/repos/psf/requests/issues/2912/timeline
null
completed
null
null
false
[ "This is not a bug in URL parsing: quite the opposite.\n\nRequests does its best to normalise URLs where it is safe to do so. This is necessary to ensure that various stages of URL building work appropriately, and that we don't accidentally end up with invalid headers (e.g. multiple question marks or none at all wh...
https://api.github.com/repos/psf/requests/issues/2911
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2911/labels{/name}
https://api.github.com/repos/psf/requests/issues/2911/comments
https://api.github.com/repos/psf/requests/issues/2911/events
https://github.com/psf/requests/issues/2911
119,794,371
MDU6SXNzdWUxMTk3OTQzNzE=
2,911
Can't use session proxy in its request for HTTPS protocol
{ "avatar_url": "https://avatars.githubusercontent.com/u/3279314?v=4", "events_url": "https://api.github.com/users/FabriceSh44/events{/privacy}", "followers_url": "https://api.github.com/users/FabriceSh44/followers", "following_url": "https://api.github.com/users/FabriceSh44/following{/other_user}", "gists_url": "https://api.github.com/users/FabriceSh44/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/FabriceSh44", "id": 3279314, "login": "FabriceSh44", "node_id": "MDQ6VXNlcjMyNzkzMTQ=", "organizations_url": "https://api.github.com/users/FabriceSh44/orgs", "received_events_url": "https://api.github.com/users/FabriceSh44/received_events", "repos_url": "https://api.github.com/users/FabriceSh44/repos", "site_admin": false, "starred_url": "https://api.github.com/users/FabriceSh44/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FabriceSh44/subscriptions", "type": "User", "url": "https://api.github.com/users/FabriceSh44", "user_view_type": "public" }
[]
closed
true
null
[]
null
39
2015-12-01T19:55:01Z
2021-09-08T20:01:01Z
2015-12-02T21:38:31Z
NONE
resolved
I've been struggling with my company proxy to make an https request. import requests from requests.auth import HTTPProxyAuth proxy_string = 'http://user:password@url_proxt:port_proxy' s = requests.Session() s.proxies = {"http": proxy_string , "https": proxy_string} s.auth = HTTPProxyAuth(user,password) r = s.get('http://www.google.com') # OK print(r.text) r = s.get('https://www.google.com',proxies={"http": proxy_string , "https": proxy_string}) #OK print(r.text) r = s.get('https://www.google.com') # KO print(r.text) When KO, I have the following exception : HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required',))) I looked online but didn't find someone having this specific issue with HTTPS. Thank you for your time Description of issue here : http://stackoverflow.com/questions/34025964/python-requests-api-using-proxy-for-https-request-get-407-proxy-authentication-r
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2911/reactions" }
https://api.github.com/repos/psf/requests/issues/2911/timeline
null
completed
null
null
false
[ "Have you tried the same request without setting `s.auth`?\n", "Just did. Same result : KO\n", "Hmm. I wonder if this is connection pooling related. @Bl4ckc4t, are you comfortable with wireshark?\n", "I would like to avoid that. Being in a corporate environment and not knowing Wireshark that well, I'm afraid ...
https://api.github.com/repos/psf/requests/issues/2910
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2910/labels{/name}
https://api.github.com/repos/psf/requests/issues/2910/comments
https://api.github.com/repos/psf/requests/issues/2910/events
https://github.com/psf/requests/issues/2910
119,755,535
MDU6SXNzdWUxMTk3NTU1MzU=
2,910
Expired SSL certificates don't raise an error
{ "avatar_url": "https://avatars.githubusercontent.com/u/62745?v=4", "events_url": "https://api.github.com/users/spookylukey/events{/privacy}", "followers_url": "https://api.github.com/users/spookylukey/followers", "following_url": "https://api.github.com/users/spookylukey/following{/other_user}", "gists_url": "https://api.github.com/users/spookylukey/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spookylukey", "id": 62745, "login": "spookylukey", "node_id": "MDQ6VXNlcjYyNzQ1", "organizations_url": "https://api.github.com/users/spookylukey/orgs", "received_events_url": "https://api.github.com/users/spookylukey/received_events", "repos_url": "https://api.github.com/users/spookylukey/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spookylukey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spookylukey/subscriptions", "type": "User", "url": "https://api.github.com/users/spookylukey", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2015-12-01T16:32:34Z
2021-09-08T20:01:02Z
2015-12-01T19:26:59Z
NONE
resolved
``` >>> requests.get('https://expired.badssl.com/', verify=True) <Response [200]> ``` I'm expecting an SSL exception of some kind here, like it does for https://wrong.host.badssl.com/
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2910/reactions" }
https://api.github.com/repos/psf/requests/issues/2910/timeline
null
completed
null
null
false
[ "Please have a read of our [contributing file](https://github.com/kennethreitz/requests/blob/master/CONTRIBUTING.md), which GitHub already asked you to do. Please then provide the information requested within: particularly, tell us **what version of Requests you're using** and **how you installed it**. Please also ...
https://api.github.com/repos/psf/requests/issues/2909
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2909/labels{/name}
https://api.github.com/repos/psf/requests/issues/2909/comments
https://api.github.com/repos/psf/requests/issues/2909/events
https://github.com/psf/requests/pull/2909
119,697,263
MDExOlB1bGxSZXF1ZXN0NTIyNDYxMzM=
2,909
Fix typos
{ "avatar_url": "https://avatars.githubusercontent.com/u/141546?v=4", "events_url": "https://api.github.com/users/jwilk/events{/privacy}", "followers_url": "https://api.github.com/users/jwilk/followers", "following_url": "https://api.github.com/users/jwilk/following{/other_user}", "gists_url": "https://api.github.com/users/jwilk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jwilk", "id": 141546, "login": "jwilk", "node_id": "MDQ6VXNlcjE0MTU0Ng==", "organizations_url": "https://api.github.com/users/jwilk/orgs", "received_events_url": "https://api.github.com/users/jwilk/received_events", "repos_url": "https://api.github.com/users/jwilk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jwilk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jwilk/subscriptions", "type": "User", "url": "https://api.github.com/users/jwilk", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-12-01T11:26:59Z
2021-09-08T04:01:15Z
2015-12-01T11:28:06Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2909/reactions" }
https://api.github.com/repos/psf/requests/issues/2909/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2909.diff", "html_url": "https://github.com/psf/requests/pull/2909", "merged_at": "2015-12-01T11:28:06Z", "patch_url": "https://github.com/psf/requests/pull/2909.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2909" }
true
[ "Thanks @jwilk! :sparkles: :cake: :sparkles:\n" ]
https://api.github.com/repos/psf/requests/issues/2908
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2908/labels{/name}
https://api.github.com/repos/psf/requests/issues/2908/comments
https://api.github.com/repos/psf/requests/issues/2908/events
https://github.com/psf/requests/issues/2908
119,489,960
MDU6SXNzdWUxMTk0ODk5NjA=
2,908
set_default_verify_paths not implemented for SSLContext class
{ "avatar_url": "https://avatars.githubusercontent.com/u/1087183?v=4", "events_url": "https://api.github.com/users/rjschwei/events{/privacy}", "followers_url": "https://api.github.com/users/rjschwei/followers", "following_url": "https://api.github.com/users/rjschwei/following{/other_user}", "gists_url": "https://api.github.com/users/rjschwei/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rjschwei", "id": 1087183, "login": "rjschwei", "node_id": "MDQ6VXNlcjEwODcxODM=", "organizations_url": "https://api.github.com/users/rjschwei/orgs", "received_events_url": "https://api.github.com/users/rjschwei/received_events", "repos_url": "https://api.github.com/users/rjschwei/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rjschwei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rjschwei/subscriptions", "type": "User", "url": "https://api.github.com/users/rjschwei", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2015-11-30T13:18:38Z
2021-09-08T20:01:04Z
2015-11-30T13:34:56Z
NONE
resolved
It is possible to end up in a situation where set_default_verify_paths() is called on the SSLContext but the SSLContext instance is an instance of the implementation of SSLContext implemented in requests/packages/urllib3/util/ssl_.py This implementation does not provide the set_default_verify_paths() method. Thus resulting in a traceback for the user as follows: response = requests.get(url) File "/usr/lib/python2.7/site-packages/requests/api.py", line 69, in get return request('get', url, params=params, *_kwargs) File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request response = session.request(method=method, url=url, *_kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 468, in request resp = self.send(prep, *_send_kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send r = adapter.send(request, *_kwargs) File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 367, in send timeout=timeout File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen body=body, headers=headers) File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request self._validate_conn(conn) File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 782, in _validate_conn conn.connect() File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 250, in connect ssl_version=resolved_ssl_version) File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py", line 282, in ssl_wrap_socket context.set_default_verify_paths() AttributeError: 'SSLContext' object has no attribute 'set_default_verify_paths'
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2908/reactions" }
https://api.github.com/repos/psf/requests/issues/2908/timeline
null
completed
null
null
false
[ "@rjschwei Where did you install requests from? urllib3 (and by extension requests) have _never_ called `set_default_verify_paths` in any version we shipped, at least according to a quick search of our git history. The only place we've ever called it is inside the PyOpenSSL contrib module, which of course could not...
https://api.github.com/repos/psf/requests/issues/2907
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2907/labels{/name}
https://api.github.com/repos/psf/requests/issues/2907/comments
https://api.github.com/repos/psf/requests/issues/2907/events
https://github.com/psf/requests/issues/2907
119,447,209
MDU6SXNzdWUxMTk0NDcyMDk=
2,907
Support arguments whose values are None
{ "avatar_url": "https://avatars.githubusercontent.com/u/10276811?v=4", "events_url": "https://api.github.com/users/rohithpr/events{/privacy}", "followers_url": "https://api.github.com/users/rohithpr/followers", "following_url": "https://api.github.com/users/rohithpr/following{/other_user}", "gists_url": "https://api.github.com/users/rohithpr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rohithpr", "id": 10276811, "login": "rohithpr", "node_id": "MDQ6VXNlcjEwMjc2ODEx", "organizations_url": "https://api.github.com/users/rohithpr/orgs", "received_events_url": "https://api.github.com/users/rohithpr/received_events", "repos_url": "https://api.github.com/users/rohithpr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rohithpr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohithpr/subscriptions", "type": "User", "url": "https://api.github.com/users/rohithpr", "user_view_type": "public" }
[]
closed
true
null
[]
null
10
2015-11-30T09:06:32Z
2021-09-08T20:01:03Z
2015-11-30T14:15:41Z
NONE
resolved
The docs say: `Note that any dictionary key whose value is None will not be added to the URL’s query string.` Is there a chance that this could be controlled by the user to include None values as well? Perhaps with the help of a flag.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2907/reactions" }
https://api.github.com/repos/psf/requests/issues/2907/timeline
null
completed
null
null
false
[ "@rohithpr What would a `None` value be turned into?\n", "@Lukasa - `null` perhaps?\n\n```\n>>> json.dumps({'val':None})\n'{\"val\": null}'\n```\n", "@rohithpr The only place we turn dictionaries into JSON is the `json=` keyword argument, and that is not put into the URL's query string. Query strings in URLs ar...
https://api.github.com/repos/psf/requests/issues/2906
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2906/labels{/name}
https://api.github.com/repos/psf/requests/issues/2906/comments
https://api.github.com/repos/psf/requests/issues/2906/events
https://github.com/psf/requests/issues/2906
119,266,350
MDU6SXNzdWUxMTkyNjYzNTA=
2,906
requests.packages.urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:646)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2891235?v=4", "events_url": "https://api.github.com/users/caizixian/events{/privacy}", "followers_url": "https://api.github.com/users/caizixian/followers", "following_url": "https://api.github.com/users/caizixian/following{/other_user}", "gists_url": "https://api.github.com/users/caizixian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/caizixian", "id": 2891235, "login": "caizixian", "node_id": "MDQ6VXNlcjI4OTEyMzU=", "organizations_url": "https://api.github.com/users/caizixian/orgs", "received_events_url": "https://api.github.com/users/caizixian/received_events", "repos_url": "https://api.github.com/users/caizixian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/caizixian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/caizixian/subscriptions", "type": "User", "url": "https://api.github.com/users/caizixian", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-11-28T02:45:30Z
2021-09-08T12:00:53Z
2015-11-28T08:05:55Z
NONE
resolved
Mac OS X 10.11.1 Python 3.5.0 from https://www.python.org/downloads/ requests (2.8.1) ``` python >>> import ssl >>> ssl.OPENSSL_VERSION 'OpenSSL 0.9.8zg 14 July 2015' ``` URL https://api.telegram.org/
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2906/reactions" }
https://api.github.com/repos/psf/requests/issues/2906/timeline
null
completed
null
null
false
[ "That version of OpenSSL is absolutely _ancient_. I suspect it's the cause of your problem.\n\nI have OS X 10.11.2 Beta, Python 3.5.0 linked against a newer version of OpenSSL (1.0.2d), and the same version of requests, and I can reach that URL fine. I highly encourage you to use a newer version of OpenSSL.\n\nYou ...
https://api.github.com/repos/psf/requests/issues/2905
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2905/labels{/name}
https://api.github.com/repos/psf/requests/issues/2905/comments
https://api.github.com/repos/psf/requests/issues/2905/events
https://github.com/psf/requests/issues/2905
119,206,445
MDU6SXNzdWUxMTkyMDY0NDU=
2,905
response.request.headers does not contain the Hosts Header
{ "avatar_url": "https://avatars.githubusercontent.com/u/16048186?v=4", "events_url": "https://api.github.com/users/GreenBattery/events{/privacy}", "followers_url": "https://api.github.com/users/GreenBattery/followers", "following_url": "https://api.github.com/users/GreenBattery/following{/other_user}", "gists_url": "https://api.github.com/users/GreenBattery/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/GreenBattery", "id": 16048186, "login": "GreenBattery", "node_id": "MDQ6VXNlcjE2MDQ4MTg2", "organizations_url": "https://api.github.com/users/GreenBattery/orgs", "received_events_url": "https://api.github.com/users/GreenBattery/received_events", "repos_url": "https://api.github.com/users/GreenBattery/repos", "site_admin": false, "starred_url": "https://api.github.com/users/GreenBattery/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GreenBattery/subscriptions", "type": "User", "url": "https://api.github.com/users/GreenBattery", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-27T14:42:16Z
2021-09-08T20:01:05Z
2015-11-27T14:57:17Z
NONE
resolved
if you iterate over the headers of the response objects request, you do not get the complete set. The Host Header is missing. ``` python sending_headers = {"Accept-Encoding": "identity"} method = "GET" url = "http://192.168.205.65/poster.php" resp = requests.request(method, url, headers = sending_headers) rh = resp.request.headers #original request might be lost in redirects? for header in rh: print("%s: %s" % (header, rh[header])) ``` Observe the output: ``` Accept-Encoding: identity Accept: */* User-Agent: python-requests/2.8.1 Connection: keep-alive ``` However, on the wire, you will see: ``` GET /poster.php HTTP/1.1 Host: 192.168.205.65 Accept-Encoding: identity User-Agent: python-requests/2.8.1 Connection: keep-alive Accept: */* ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2905/reactions" }
https://api.github.com/repos/psf/requests/issues/2905/timeline
null
completed
null
null
false
[ "This is because, ordinarily, requests does not set the `Host` header at all: `httplib` does. We generally don't get in the way of that because httplib wants to set it.\n\nIn general, requests does not (and indeed cannot) claim that the headers variables (on both requests and responses) represent the full set of he...
https://api.github.com/repos/psf/requests/issues/2904
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2904/labels{/name}
https://api.github.com/repos/psf/requests/issues/2904/comments
https://api.github.com/repos/psf/requests/issues/2904/events
https://github.com/psf/requests/issues/2904
119,110,699
MDU6SXNzdWUxMTkxMTA2OTk=
2,904
Feature Request: Format reponse as HTTP Response Message Format
{ "avatar_url": "https://avatars.githubusercontent.com/u/2363105?v=4", "events_url": "https://api.github.com/users/CrazyPython/events{/privacy}", "followers_url": "https://api.github.com/users/CrazyPython/followers", "following_url": "https://api.github.com/users/CrazyPython/following{/other_user}", "gists_url": "https://api.github.com/users/CrazyPython/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CrazyPython", "id": 2363105, "login": "CrazyPython", "node_id": "MDQ6VXNlcjIzNjMxMDU=", "organizations_url": "https://api.github.com/users/CrazyPython/orgs", "received_events_url": "https://api.github.com/users/CrazyPython/received_events", "repos_url": "https://api.github.com/users/CrazyPython/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CrazyPython/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CrazyPython/subscriptions", "type": "User", "url": "https://api.github.com/users/CrazyPython", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-26T23:36:56Z
2021-09-08T20:01:05Z
2015-11-27T04:51:37Z
NONE
resolved
http://www.tcpipguide.com/free/t_HTTPResponseMessageFormat.htm A helper method to format a response as shown in the URL above would be useful.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2904/reactions" }
https://api.github.com/repos/psf/requests/issues/2904/timeline
null
completed
null
null
false
[ "Requests is currently in a feature freeze. As such we aren't going to be implementing this. That said, if you wanted to implement this yourself, you would probably get 90% of the way there with [dump_response](https://toolbelt.readthedocs.org/en/latest/dumputils.html#requests_toolbelt.utils.dump.dump_response) fro...
https://api.github.com/repos/psf/requests/issues/2903
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2903/labels{/name}
https://api.github.com/repos/psf/requests/issues/2903/comments
https://api.github.com/repos/psf/requests/issues/2903/events
https://github.com/psf/requests/pull/2903
119,106,123
MDExOlB1bGxSZXF1ZXN0NTE5NDgxMTI=
2,903
Support SSL_CERT_FILE and SSL_CERT_DIR env vars
{ "avatar_url": "https://avatars.githubusercontent.com/u/4051912?v=4", "events_url": "https://api.github.com/users/thoger/events{/privacy}", "followers_url": "https://api.github.com/users/thoger/followers", "following_url": "https://api.github.com/users/thoger/following{/other_user}", "gists_url": "https://api.github.com/users/thoger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/thoger", "id": 4051912, "login": "thoger", "node_id": "MDQ6VXNlcjQwNTE5MTI=", "organizations_url": "https://api.github.com/users/thoger/orgs", "received_events_url": "https://api.github.com/users/thoger/received_events", "repos_url": "https://api.github.com/users/thoger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/thoger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thoger/subscriptions", "type": "User", "url": "https://api.github.com/users/thoger", "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
[]
{ "closed_at": null, "closed_issues": 29, "created_at": "2013-11-17T11:29:34Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }, "description": null, "due_on": null, "html_url": "https://github.com/psf/requests/milestone/20", "id": 487518, "labels_url": "https://api.github.com/repos/psf/requests/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lNDg3NTE4", "number": 20, "open_issues": 12, "state": "open", "title": "3.0.0", "updated_at": "2024-05-19T18:43:00Z", "url": "https://api.github.com/repos/psf/requests/milestones/20" }
21
2015-11-26T22:15:14Z
2021-09-04T00:06:35Z
2017-02-10T17:44:57Z
NONE
resolved
A proposed fix for issue #2899.
{ "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": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/psf/requests/issues/2903/reactions" }
https://api.github.com/repos/psf/requests/issues/2903/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2903.diff", "html_url": "https://github.com/psf/requests/pull/2903", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2903.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2903" }
true
[ "At a certain point this will get clearer if we use a for loop, but for now I think we're still ok. Thanks @thoger!\n", "Hey, this would be really helpful for me. Can you merge this, please?\n", "@standaloneSA This has been tagged for the 3.0.0 release. =)\n", "All the +1s. You rock @Lukasa thanks! \n", "@L...
https://api.github.com/repos/psf/requests/issues/2902
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2902/labels{/name}
https://api.github.com/repos/psf/requests/issues/2902/comments
https://api.github.com/repos/psf/requests/issues/2902/events
https://github.com/psf/requests/pull/2902
119,055,909
MDExOlB1bGxSZXF1ZXN0NTE5MTkxMTU=
2,902
Include a link to my GitHub profile.
{ "avatar_url": "https://avatars.githubusercontent.com/u/10311?v=4", "events_url": "https://api.github.com/users/jparise/events{/privacy}", "followers_url": "https://api.github.com/users/jparise/followers", "following_url": "https://api.github.com/users/jparise/following{/other_user}", "gists_url": "https://api.github.com/users/jparise/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jparise", "id": 10311, "login": "jparise", "node_id": "MDQ6VXNlcjEwMzEx", "organizations_url": "https://api.github.com/users/jparise/orgs", "received_events_url": "https://api.github.com/users/jparise/received_events", "repos_url": "https://api.github.com/users/jparise/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jparise/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jparise/subscriptions", "type": "User", "url": "https://api.github.com/users/jparise", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2015-11-26T14:35:23Z
2021-09-08T05:01:11Z
2015-11-26T14:57:10Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2902/reactions" }
https://api.github.com/repos/psf/requests/issues/2902/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2902.diff", "html_url": "https://github.com/psf/requests/pull/2902", "merged_at": "2015-11-26T14:57:10Z", "patch_url": "https://github.com/psf/requests/pull/2902.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2902" }
true
[]
https://api.github.com/repos/psf/requests/issues/2901
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2901/labels{/name}
https://api.github.com/repos/psf/requests/issues/2901/comments
https://api.github.com/repos/psf/requests/issues/2901/events
https://github.com/psf/requests/issues/2901
119,043,831
MDU6SXNzdWUxMTkwNDM4MzE=
2,901
Does iter_content sometimes emit empty chunks
{ "avatar_url": "https://avatars.githubusercontent.com/u/189580?v=4", "events_url": "https://api.github.com/users/LinusU/events{/privacy}", "followers_url": "https://api.github.com/users/LinusU/followers", "following_url": "https://api.github.com/users/LinusU/following{/other_user}", "gists_url": "https://api.github.com/users/LinusU/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LinusU", "id": 189580, "login": "LinusU", "node_id": "MDQ6VXNlcjE4OTU4MA==", "organizations_url": "https://api.github.com/users/LinusU/orgs", "received_events_url": "https://api.github.com/users/LinusU/received_events", "repos_url": "https://api.github.com/users/LinusU/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LinusU/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LinusU/subscriptions", "type": "User", "url": "https://api.github.com/users/LinusU", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-11-26T13:24:21Z
2021-09-08T20:01:06Z
2015-11-26T13:34:48Z
NONE
resolved
I've seen a lot of code on stackoverflow that guards the loop-body with an `if chunk:` when using `iter_content`. Is this really necessary, I don't see it anywhere in the documentation. If it is, could we fix it? Or if not, document it. ``` python for chunk in r.iter_content(): if chunk: # <- why this? output.write(chunk) ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2901/reactions" }
https://api.github.com/repos/psf/requests/issues/2901/timeline
null
completed
null
null
false
[ "`iter_content` should not emit empty chunks. Historically it _could_, however with the current logic that should not be possible. If anyone encounters this problem I'd consider it a bug.\n", "Perfect, that's what I'd hoped for! Thanks\n" ]
https://api.github.com/repos/psf/requests/issues/2900
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2900/labels{/name}
https://api.github.com/repos/psf/requests/issues/2900/comments
https://api.github.com/repos/psf/requests/issues/2900/events
https://github.com/psf/requests/issues/2900
119,042,802
MDU6SXNzdWUxMTkwNDI4MDI=
2,900
Feature requests: iter_chunks([max_size])
{ "avatar_url": "https://avatars.githubusercontent.com/u/189580?v=4", "events_url": "https://api.github.com/users/LinusU/events{/privacy}", "followers_url": "https://api.github.com/users/LinusU/followers", "following_url": "https://api.github.com/users/LinusU/following{/other_user}", "gists_url": "https://api.github.com/users/LinusU/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LinusU", "id": 189580, "login": "LinusU", "node_id": "MDQ6VXNlcjE4OTU4MA==", "organizations_url": "https://api.github.com/users/LinusU/orgs", "received_events_url": "https://api.github.com/users/LinusU/received_events", "repos_url": "https://api.github.com/users/LinusU/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LinusU/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LinusU/subscriptions", "type": "User", "url": "https://api.github.com/users/LinusU", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2015-11-26T13:18:16Z
2021-09-08T20:01:06Z
2015-11-26T13:20:34Z
NONE
resolved
I would love to have a function that would iterate over the chunks that are received, as they are received on the socket. It would work like [`socket.recv()`](https://docs.python.org/2/library/socket.html#socket.socket.recv) works in the python standard library. This would be very good for an easy way to consume the stream as efficient as possible. It would be awesome if we could update `__iter__` to use this function as well instead of using `iter_content` with a fixed length of 128. This has been discussed to some extent in #844 but that issue got closed because of inactivity. I opened this to be a more focused issue. If we feel that this is a good approach I could hopefully help implement it as well.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2900/reactions" }
https://api.github.com/repos/psf/requests/issues/2900/timeline
null
completed
null
null
false
[ "This already works. Use `iter_content(None)`, as [discussed in the documentation](http://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests).\n", "That's awesome \\o/\n\nIs there any reason why `__iter__` on `Response` doesn't use it?\n\nWould it be possible to add it to the documentation s...
https://api.github.com/repos/psf/requests/issues/2899
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2899/labels{/name}
https://api.github.com/repos/psf/requests/issues/2899/comments
https://api.github.com/repos/psf/requests/issues/2899/events
https://github.com/psf/requests/issues/2899
119,003,692
MDU6SXNzdWUxMTkwMDM2OTI=
2,899
requests: Support SSL_CERT_FILE environment variable
{ "avatar_url": "https://avatars.githubusercontent.com/u/4051912?v=4", "events_url": "https://api.github.com/users/thoger/events{/privacy}", "followers_url": "https://api.github.com/users/thoger/followers", "following_url": "https://api.github.com/users/thoger/following{/other_user}", "gists_url": "https://api.github.com/users/thoger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/thoger", "id": 4051912, "login": "thoger", "node_id": "MDQ6VXNlcjQwNTE5MTI=", "organizations_url": "https://api.github.com/users/thoger/orgs", "received_events_url": "https://api.github.com/users/thoger/received_events", "repos_url": "https://api.github.com/users/thoger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/thoger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thoger/subscriptions", "type": "User", "url": "https://api.github.com/users/thoger", "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": "0b02e1", "default": false, "description": null...
closed
true
null
[]
null
22
2015-11-26T09:25:04Z
2021-09-08T09:00:44Z
2017-05-29T20:08:52Z
NONE
resolved
Requests allows setting path to a CA certificate bundle that should be used instead of the default system one using the following environment variables: `REQUESTS_CA_BUNDLE` and `CURL_CA_BUNDLE`. https://github.com/kennethreitz/requests/blob/v2.8.1/requests/sessions.py#L621 Please make it also check `SSL_CERT_FILE` environment variable in the same way. This variable is recognized by OpenSSL and is documented in PEP 476 as a way to make Python standard library https clients use non-default CA bundle file: https://www.python.org/dev/peps/pep-0476/#trust-database It sounds reasonable to have a single environment variable that can be used for all Python scripts regardless of whether they are using `requests` or standard library `httplib` / `urllib*`. In terms of the fix, a simple `or os.environ.get('SSL_CERT_FILE')` should do the trick.
{ "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": 6, "-1": 0, "confused": 0, "eyes": 0, "heart": 4, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 10, "url": "https://api.github.com/repos/psf/requests/issues/2899/reactions" }
https://api.github.com/repos/psf/requests/issues/2899/timeline
null
completed
null
null
false
[ "This seems reasonable enough to me. I'd be happy to accept a patch that does this. We should also accept `SSL_CERT_DIR`.\n", "This seems harmless enough.\n", "Is this still an issue ? If so I would like to give it a shot.\n", "@Keops92 The work has been done, sadly: see #2903.\n", "Thanks ! \n", "What ab...
https://api.github.com/repos/psf/requests/issues/2898
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2898/labels{/name}
https://api.github.com/repos/psf/requests/issues/2898/comments
https://api.github.com/repos/psf/requests/issues/2898/events
https://github.com/psf/requests/pull/2898
118,736,560
MDExOlB1bGxSZXF1ZXN0NTE3NDAwMDA=
2,898
Update adapters.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/90185?v=4", "events_url": "https://api.github.com/users/lndbrg/events{/privacy}", "followers_url": "https://api.github.com/users/lndbrg/followers", "following_url": "https://api.github.com/users/lndbrg/following{/other_user}", "gists_url": "https://api.github.com/users/lndbrg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lndbrg", "id": 90185, "login": "lndbrg", "node_id": "MDQ6VXNlcjkwMTg1", "organizations_url": "https://api.github.com/users/lndbrg/orgs", "received_events_url": "https://api.github.com/users/lndbrg/received_events", "repos_url": "https://api.github.com/users/lndbrg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lndbrg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lndbrg/subscriptions", "type": "User", "url": "https://api.github.com/users/lndbrg", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-25T01:02:47Z
2021-09-08T05:01:11Z
2015-11-25T02:44:51Z
CONTRIBUTOR
resolved
Remove duplicate word.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2898/reactions" }
https://api.github.com/repos/psf/requests/issues/2898/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2898.diff", "html_url": "https://github.com/psf/requests/pull/2898", "merged_at": "2015-11-25T02:44:51Z", "patch_url": "https://github.com/psf/requests/pull/2898.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2898" }
true
[ "Thanks @lndbrg!\n" ]
https://api.github.com/repos/psf/requests/issues/2897
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2897/labels{/name}
https://api.github.com/repos/psf/requests/issues/2897/comments
https://api.github.com/repos/psf/requests/issues/2897/events
https://github.com/psf/requests/pull/2897
118,724,897
MDExOlB1bGxSZXF1ZXN0NTE3MzIwMzk=
2,897
Test socket server
{ "avatar_url": "https://avatars.githubusercontent.com/u/715372?v=4", "events_url": "https://api.github.com/users/BraulioVM/events{/privacy}", "followers_url": "https://api.github.com/users/BraulioVM/followers", "following_url": "https://api.github.com/users/BraulioVM/following{/other_user}", "gists_url": "https://api.github.com/users/BraulioVM/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BraulioVM", "id": 715372, "login": "BraulioVM", "node_id": "MDQ6VXNlcjcxNTM3Mg==", "organizations_url": "https://api.github.com/users/BraulioVM/orgs", "received_events_url": "https://api.github.com/users/BraulioVM/received_events", "repos_url": "https://api.github.com/users/BraulioVM/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BraulioVM/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BraulioVM/subscriptions", "type": "User", "url": "https://api.github.com/users/BraulioVM", "user_view_type": "public" }
[]
closed
true
null
[]
null
44
2015-11-24T23:20:45Z
2021-09-08T04:01:07Z
2016-04-11T20:29:02Z
CONTRIBUTOR
resolved
Fixes #2866. ### What is this? This is an implementation of a basic socket server that is able to run concurrently with the main thread. This might be useful for testing our 'Transfer-Encoding: chunked' functionality as pytest-httpbin isn't able to handle this kind of encoding. ### How does it work? You provide the Server constructor with a handler that will be called once the socket server is listening. This handler will be able to accept clients and send and receive any info it wants to. The main thread will be able to query the server by creating a normal socket. ### Syntax proposed I think that using a Context-Manager is a great way of making it easy to use the Server. ``` python with Server(handler) as host, port: sock = socket.socket() sock.connect((host, port)) ... ``` ### Doubts - urllib3 tries to use a IPv6 socket and falls back to IPv4 when it can't. Should I try doing the same thing? - I made a new directory for dummyserver, but don't know whether that was the right thing to do. - I am not sure whether I'm testing my code properly. Code is being tested in very different ways in `test_requests.py` ### Roadmap - Handle exceptions in Server. - Add features such as `basic_response_handler` in urllib3's implementation. - Implement more tests - Implement 'Transfer-Encoding: chunked' tests using the dummy server. Is this a good idea? Or should I stop doing this right now?
{ "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/2897/reactions" }
https://api.github.com/repos/psf/requests/issues/2897/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2897.diff", "html_url": "https://github.com/psf/requests/pull/2897", "merged_at": "2016-04-11T20:29:02Z", "patch_url": "https://github.com/psf/requests/pull/2897.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2897" }
true
[ "Can we perhaps not call it dummyserver? Maybe something more accurate, e.g., testserver?\n", "Calling it a testserver feels like a good idea. As to the approach, this is definitely going in the right general direction, at least as far as I'm concerned. Obviously you need to replace the test that's currently ther...
https://api.github.com/repos/psf/requests/issues/2896
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2896/labels{/name}
https://api.github.com/repos/psf/requests/issues/2896/comments
https://api.github.com/repos/psf/requests/issues/2896/events
https://github.com/psf/requests/pull/2896
118,459,467
MDExOlB1bGxSZXF1ZXN0NTE1NzE2NTQ=
2,896
Set 'Transfer-Encoding: chunked' if data is a file with length 0
{ "avatar_url": "https://avatars.githubusercontent.com/u/715372?v=4", "events_url": "https://api.github.com/users/BraulioVM/events{/privacy}", "followers_url": "https://api.github.com/users/BraulioVM/followers", "following_url": "https://api.github.com/users/BraulioVM/following{/other_user}", "gists_url": "https://api.github.com/users/BraulioVM/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BraulioVM", "id": 715372, "login": "BraulioVM", "node_id": "MDQ6VXNlcjcxNTM3Mg==", "organizations_url": "https://api.github.com/users/BraulioVM/orgs", "received_events_url": "https://api.github.com/users/BraulioVM/received_events", "repos_url": "https://api.github.com/users/BraulioVM/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BraulioVM/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BraulioVM/subscriptions", "type": "User", "url": "https://api.github.com/users/BraulioVM", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2015-11-23T19:55:37Z
2021-09-08T05:01:11Z
2015-12-02T14:35:41Z
CONTRIBUTOR
resolved
Fixes #2215 This is the first time I contribute to the project so I am not sure at all I put that code where it belongs. I know I have to add tests for this, but wanted to show you this beforehand. Did I do this right? Thank you
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2896/reactions" }
https://api.github.com/repos/psf/requests/issues/2896/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2896.diff", "html_url": "https://github.com/psf/requests/pull/2896", "merged_at": "2015-12-02T14:35:41Z", "patch_url": "https://github.com/psf/requests/pull/2896.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2896" }
true
[ "@BraulioVM This is a good first pass! I have a draft of this fix sitting around on my laptop, so when I get home I'll show you how I approached it and let you take the ideas you like best. \n", "@Lukasa Thanks!\n\nI have just seen #2866, which won't allow me to implement the tests I want, so I might as well thin...
https://api.github.com/repos/psf/requests/issues/2895
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2895/labels{/name}
https://api.github.com/repos/psf/requests/issues/2895/comments
https://api.github.com/repos/psf/requests/issues/2895/events
https://github.com/psf/requests/pull/2895
118,021,604
MDExOlB1bGxSZXF1ZXN0NTEzNDU4Nzc=
2,895
Add basic CONTRIBUTING.md file
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-11-20T11:30:20Z
2021-09-08T05:01:12Z
2015-11-20T14:14:59Z
MEMBER
resolved
It's beginning to get frustrating to have to keep dealing with questions on this issue tracker. Let's see if we can dissuade them.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2895/reactions" }
https://api.github.com/repos/psf/requests/issues/2895/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2895.diff", "html_url": "https://github.com/psf/requests/pull/2895", "merged_at": "2015-11-20T14:14:59Z", "patch_url": "https://github.com/psf/requests/pull/2895.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2895" }
true
[ "That looks great!\n", "One addition to what makes a good bug report for us.\n", "Updated. =)\n", "I'm not confident people will read this before filing a bug, but we can at least point them to it when closing a bug now.\n", "More importantly, because GitHub prompts people to look at it first we can be sure...
https://api.github.com/repos/psf/requests/issues/2894
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2894/labels{/name}
https://api.github.com/repos/psf/requests/issues/2894/comments
https://api.github.com/repos/psf/requests/issues/2894/events
https://github.com/psf/requests/issues/2894
118,018,074
MDU6SXNzdWUxMTgwMTgwNzQ=
2,894
How can I detect encoding after I streamed only few pieces of response?
{ "avatar_url": "https://avatars.githubusercontent.com/u/621269?v=4", "events_url": "https://api.github.com/users/adibalcan/events{/privacy}", "followers_url": "https://api.github.com/users/adibalcan/followers", "following_url": "https://api.github.com/users/adibalcan/following{/other_user}", "gists_url": "https://api.github.com/users/adibalcan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/adibalcan", "id": 621269, "login": "adibalcan", "node_id": "MDQ6VXNlcjYyMTI2OQ==", "organizations_url": "https://api.github.com/users/adibalcan/orgs", "received_events_url": "https://api.github.com/users/adibalcan/received_events", "repos_url": "https://api.github.com/users/adibalcan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/adibalcan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adibalcan/subscriptions", "type": "User", "url": "https://api.github.com/users/adibalcan", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-11-20T11:12:27Z
2021-09-08T20:01:06Z
2015-11-20T11:38:46Z
NONE
resolved
``` size = 0 start = time.time() for chunk in r.iter_content(1024): if time.time() - start > max_time: r.reason = 'timeout riched' raise ValueError(r.reason) size += len(chunk) if size > max_size: r.reason = 'response too large' raise ValueError(r.reason) ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2894/reactions" }
https://api.github.com/repos/psf/requests/issues/2894/timeline
null
completed
null
null
false
[ "When you say \"encoding\", what kind of encoding do you mean?\n", "After stream ends (finish, or I interrupt), I want to use r.content (decoded response). Who can I do this?\n", "If you use `iter_content` manually, it does not save into `r.content`. You should simply save off the data directly yourself.\n", ...
https://api.github.com/repos/psf/requests/issues/2893
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2893/labels{/name}
https://api.github.com/repos/psf/requests/issues/2893/comments
https://api.github.com/repos/psf/requests/issues/2893/events
https://github.com/psf/requests/issues/2893
118,008,797
MDU6SXNzdWUxMTgwMDg3OTc=
2,893
Ability to use requests as a web server
{ "avatar_url": "https://avatars.githubusercontent.com/u/105927?v=4", "events_url": "https://api.github.com/users/valerianrossigneux/events{/privacy}", "followers_url": "https://api.github.com/users/valerianrossigneux/followers", "following_url": "https://api.github.com/users/valerianrossigneux/following{/other_user}", "gists_url": "https://api.github.com/users/valerianrossigneux/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/valerianrossigneux", "id": 105927, "login": "valerianrossigneux", "node_id": "MDQ6VXNlcjEwNTkyNw==", "organizations_url": "https://api.github.com/users/valerianrossigneux/orgs", "received_events_url": "https://api.github.com/users/valerianrossigneux/received_events", "repos_url": "https://api.github.com/users/valerianrossigneux/repos", "site_admin": false, "starred_url": "https://api.github.com/users/valerianrossigneux/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/valerianrossigneux/subscriptions", "type": "User", "url": "https://api.github.com/users/valerianrossigneux", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-11-20T10:15:36Z
2021-09-08T20:01:07Z
2015-11-20T10:35:42Z
NONE
resolved
Hi, I was wondering if a wrapper was existing around requests so that it could be used as a web server ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2893/reactions" }
https://api.github.com/repos/psf/requests/issues/2893/timeline
null
completed
null
null
false
[ "@cyberval When you say \"used as a web server\", what does that mean exactly? What would requests do?\n", "Sorry it's not very clear. I want to access requests through a web server rather than the CLI, something like:\nhttp://mydomain/requests?get=http://foo.com&authuser=a&authpass=b\n\nBecause of thrid party to...
https://api.github.com/repos/psf/requests/issues/2892
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2892/labels{/name}
https://api.github.com/repos/psf/requests/issues/2892/comments
https://api.github.com/repos/psf/requests/issues/2892/events
https://github.com/psf/requests/issues/2892
117,994,464
MDU6SXNzdWUxMTc5OTQ0NjQ=
2,892
capath support in requests
{ "avatar_url": "https://avatars.githubusercontent.com/u/7211278?v=4", "events_url": "https://api.github.com/users/mariayh1/events{/privacy}", "followers_url": "https://api.github.com/users/mariayh1/followers", "following_url": "https://api.github.com/users/mariayh1/following{/other_user}", "gists_url": "https://api.github.com/users/mariayh1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mariayh1", "id": 7211278, "login": "mariayh1", "node_id": "MDQ6VXNlcjcyMTEyNzg=", "organizations_url": "https://api.github.com/users/mariayh1/orgs", "received_events_url": "https://api.github.com/users/mariayh1/received_events", "repos_url": "https://api.github.com/users/mariayh1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mariayh1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mariayh1/subscriptions", "type": "User", "url": "https://api.github.com/users/mariayh1", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-20T08:47:06Z
2021-09-08T20:01:07Z
2015-11-20T08:48:37Z
NONE
resolved
We are currently using pycurl, but we would like to migrate to requests in order to independent of NSS. However, we could see that we can only provide a ca_bundle instead of a capath. In urllib2.urlopen you can provide cafile and capath options, however that is not the case in the requests module. Also we tried to use urllib2, but this only supports GET and POST requests, we are also interested in HEAD, PUT and DELETE. That is why we would like to use requests. Could you let me know if there are plans to support capath in the requests module? Thanks a lot, Maria
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2892/reactions" }
https://api.github.com/repos/psf/requests/issues/2892/timeline
null
completed
null
null
false
[ "Support for directories of CAs is in the current master, and will be released as part of the 2.9.0 release. See also #2858 and #2659.\n" ]
https://api.github.com/repos/psf/requests/issues/2891
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2891/labels{/name}
https://api.github.com/repos/psf/requests/issues/2891/comments
https://api.github.com/repos/psf/requests/issues/2891/events
https://github.com/psf/requests/pull/2891
117,885,102
MDExOlB1bGxSZXF1ZXN0NTEyNjYzMzI=
2,891
Specify minimum pyOpenSSL version
{ "avatar_url": "https://avatars.githubusercontent.com/u/790805?v=4", "events_url": "https://api.github.com/users/lorenzph/events{/privacy}", "followers_url": "https://api.github.com/users/lorenzph/followers", "following_url": "https://api.github.com/users/lorenzph/following{/other_user}", "gists_url": "https://api.github.com/users/lorenzph/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lorenzph", "id": 790805, "login": "lorenzph", "node_id": "MDQ6VXNlcjc5MDgwNQ==", "organizations_url": "https://api.github.com/users/lorenzph/orgs", "received_events_url": "https://api.github.com/users/lorenzph/received_events", "repos_url": "https://api.github.com/users/lorenzph/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lorenzph/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lorenzph/subscriptions", "type": "User", "url": "https://api.github.com/users/lorenzph", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-11-19T19:09:27Z
2021-09-08T05:01:13Z
2015-11-19T19:11:34Z
CONTRIBUTOR
resolved
urllib3 requires "set_tlsext_host_name" which was only added in pyOpenSSL 0.13. As some distributions (e.g. Ubuntu 12.04) still ship an older version enforce the correct minimum version during installation. I will submit a similar pull requests to the urllib3 project.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2891/reactions" }
https://api.github.com/repos/psf/requests/issues/2891/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2891.diff", "html_url": "https://github.com/psf/requests/pull/2891", "merged_at": "2015-11-19T19:11:34Z", "patch_url": "https://github.com/psf/requests/pull/2891.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2891" }
true
[ "It's mind-boggling to me that anyone is shipping a PyOpenSSL that old. Amusingly, the reason we need set_tlsext_host_name is to enable SNI, which is literally the point of using PyOpenSSL with requests, so any earlier version of PyOpenSSL wouldn't do what we need it to do anyway. What a world we live in. Thanks fo...
https://api.github.com/repos/psf/requests/issues/2890
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2890/labels{/name}
https://api.github.com/repos/psf/requests/issues/2890/comments
https://api.github.com/repos/psf/requests/issues/2890/events
https://github.com/psf/requests/issues/2890
117,683,020
MDU6SXNzdWUxMTc2ODMwMjA=
2,890
Deleted cookies should be included in response.cookies
{ "avatar_url": "https://avatars.githubusercontent.com/u/1221480?v=4", "events_url": "https://api.github.com/users/Bekt/events{/privacy}", "followers_url": "https://api.github.com/users/Bekt/followers", "following_url": "https://api.github.com/users/Bekt/following{/other_user}", "gists_url": "https://api.github.com/users/Bekt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Bekt", "id": 1221480, "login": "Bekt", "node_id": "MDQ6VXNlcjEyMjE0ODA=", "organizations_url": "https://api.github.com/users/Bekt/orgs", "received_events_url": "https://api.github.com/users/Bekt/received_events", "repos_url": "https://api.github.com/users/Bekt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Bekt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bekt/subscriptions", "type": "User", "url": "https://api.github.com/users/Bekt", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2015-11-18T21:16:22Z
2021-09-08T21:00:41Z
2015-11-19T19:04:46Z
NONE
resolved
``` py s = requests.Session() r = s.get('https://httpbin.org/cookies/set?k2=v2&k1=v1', allow_redirects=False) r.headers['set-cookie'] # 'k2=v2; Path=/, k1=v1; Path=/' r.cookies.keys() # ['k1', 'k2'] r = s.get('https://httpbin.org/cookies/delete?k1', allow_redirects=False) r.headers['set-cookie'] # 'k1=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/' r.cookies.keys() # [] ``` This is pretty frustrating when one is trying to build a custom response object off of a `requests.Response`. Expected behavior is `r.cookies` should include a CookieJar when a cookie is deleted (empty value) in the response.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1221480?v=4", "events_url": "https://api.github.com/users/Bekt/events{/privacy}", "followers_url": "https://api.github.com/users/Bekt/followers", "following_url": "https://api.github.com/users/Bekt/following{/other_user}", "gists_url": "https://api.github.com/users/Bekt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Bekt", "id": 1221480, "login": "Bekt", "node_id": "MDQ6VXNlcjEyMjE0ODA=", "organizations_url": "https://api.github.com/users/Bekt/orgs", "received_events_url": "https://api.github.com/users/Bekt/received_events", "repos_url": "https://api.github.com/users/Bekt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Bekt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bekt/subscriptions", "type": "User", "url": "https://api.github.com/users/Bekt", "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/2890/reactions" }
https://api.github.com/repos/psf/requests/issues/2890/timeline
null
completed
null
null
false
[ "Sorry, it's not clear to me: _why_ should deleted cookies be included in `r.cookies`?\n", "Well, why _shouldn't_ they be?\n\nSay, you have an endpoint that logs out a user. A log-out usually clears out browser cookies by specifying an empty key-value `set-cookie` header (like in the example above). If I'm using ...
https://api.github.com/repos/psf/requests/issues/2889
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2889/labels{/name}
https://api.github.com/repos/psf/requests/issues/2889/comments
https://api.github.com/repos/psf/requests/issues/2889/events
https://github.com/psf/requests/issues/2889
117,662,679
MDU6SXNzdWUxMTc2NjI2Nzk=
2,889
Cannot Upload a large package on Windows 7 32 bit OS, with requests
{ "avatar_url": "https://avatars.githubusercontent.com/u/15913535?v=4", "events_url": "https://api.github.com/users/srujanayreddy/events{/privacy}", "followers_url": "https://api.github.com/users/srujanayreddy/followers", "following_url": "https://api.github.com/users/srujanayreddy/following{/other_user}", "gists_url": "https://api.github.com/users/srujanayreddy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/srujanayreddy", "id": 15913535, "login": "srujanayreddy", "node_id": "MDQ6VXNlcjE1OTEzNTM1", "organizations_url": "https://api.github.com/users/srujanayreddy/orgs", "received_events_url": "https://api.github.com/users/srujanayreddy/received_events", "repos_url": "https://api.github.com/users/srujanayreddy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/srujanayreddy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/srujanayreddy/subscriptions", "type": "User", "url": "https://api.github.com/users/srujanayreddy", "user_view_type": "public" }
[]
closed
true
null
[]
null
9
2015-11-18T19:30:43Z
2021-09-08T21:00:41Z
2015-11-18T19:33:56Z
NONE
resolved
Cannot Upload from a Windows 7 32 bit OS. It works fine on Windows 7 64 bit OS with 32/64 bit Python. I am using Python 3.4.3 with latest requests API.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2889/reactions" }
https://api.github.com/repos/psf/requests/issues/2889/timeline
null
completed
null
null
false
[ "This is likely a duplicate of https://github.com/kennethreitz/requests/issues/2510 (in the sense that you're reading the exception improperly) and you've given us no detail on what you're code does or what the _full_ traceback is.\n\nPlease post questions to [StackOverflow](https://stackoverflow.com/questions/tagg...
https://api.github.com/repos/psf/requests/issues/2888
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2888/labels{/name}
https://api.github.com/repos/psf/requests/issues/2888/comments
https://api.github.com/repos/psf/requests/issues/2888/events
https://github.com/psf/requests/issues/2888
117,593,602
MDU6SXNzdWUxMTc1OTM2MDI=
2,888
I try 10000 concurrent tcp requests
{ "avatar_url": "https://avatars.githubusercontent.com/u/546738?v=4", "events_url": "https://api.github.com/users/berkantaydin/events{/privacy}", "followers_url": "https://api.github.com/users/berkantaydin/followers", "following_url": "https://api.github.com/users/berkantaydin/following{/other_user}", "gists_url": "https://api.github.com/users/berkantaydin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/berkantaydin", "id": 546738, "login": "berkantaydin", "node_id": "MDQ6VXNlcjU0NjczOA==", "organizations_url": "https://api.github.com/users/berkantaydin/orgs", "received_events_url": "https://api.github.com/users/berkantaydin/received_events", "repos_url": "https://api.github.com/users/berkantaydin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/berkantaydin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/berkantaydin/subscriptions", "type": "User", "url": "https://api.github.com/users/berkantaydin", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-18T14:06:11Z
2021-09-08T21:00:41Z
2015-11-18T14:08:20Z
NONE
resolved
I try 10000 concurrent tcp requests but i have max exceed error. How to solve this ? About TCP Poolsize ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2888/reactions" }
https://api.github.com/repos/psf/requests/issues/2888/timeline
null
completed
null
null
false
[ "Questions and support requests belong on [StackOverflow](https://stackoverflow.com/questions/tagged/python-requests).\n" ]
https://api.github.com/repos/psf/requests/issues/2887
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2887/labels{/name}
https://api.github.com/repos/psf/requests/issues/2887/comments
https://api.github.com/repos/psf/requests/issues/2887/events
https://github.com/psf/requests/issues/2887
117,473,777
MDU6SXNzdWUxMTc0NzM3Nzc=
2,887
On requests 2.8.0+ chunked requests can cause an unhandled urllib3.exceptions.NewConnectionError
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2015-11-17T23:15:58Z
2021-09-08T18:00:58Z
2015-11-18T09:10:33Z
CONTRIBUTOR
resolved
When we perform a chunked request, we cause a call to `HTTPConnection._new_conn` through `HTTPConnection.connect` which can raise an instance of `urllib3.exceptions.NewConnectionError`. Code to reproduce ``` py import requests requests.post('https://is.invalid', data=(str(i) for i in range(2))) ``` cc @stevelle
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2887/reactions" }
https://api.github.com/repos/psf/requests/issues/2887/timeline
null
completed
null
null
false
[ "Yup, this looks wrong. Lemme get a patch up and running.\n", "Hmm. Interestingly, I can't reproduce this on the current master.\n", "Yup, so this appears to be fixed in master but I can't work out why. I'll close until someone else can verify that I'm losing my mind.\n", "Huh, so this raises the proper excep...
https://api.github.com/repos/psf/requests/issues/2886
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2886/labels{/name}
https://api.github.com/repos/psf/requests/issues/2886/comments
https://api.github.com/repos/psf/requests/issues/2886/events
https://github.com/psf/requests/issues/2886
117,375,358
MDU6SXNzdWUxMTczNzUzNTg=
2,886
Failure while formatting an error for incorrect SSL CA file
{ "avatar_url": "https://avatars.githubusercontent.com/u/45051?v=4", "events_url": "https://api.github.com/users/traut/events{/privacy}", "followers_url": "https://api.github.com/users/traut/followers", "following_url": "https://api.github.com/users/traut/following{/other_user}", "gists_url": "https://api.github.com/users/traut/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/traut", "id": 45051, "login": "traut", "node_id": "MDQ6VXNlcjQ1MDUx", "organizations_url": "https://api.github.com/users/traut/orgs", "received_events_url": "https://api.github.com/users/traut/received_events", "repos_url": "https://api.github.com/users/traut/repos", "site_admin": false, "starred_url": "https://api.github.com/users/traut/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/traut/subscriptions", "type": "User", "url": "https://api.github.com/users/traut", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-11-17T15:13:14Z
2021-09-08T21:00:42Z
2015-11-17T15:24:28Z
NONE
resolved
Requests fail while trying to format exception related to non-existent CA file. Code to reproduce: ``` import requests requests.get('https://google.com', verify='/some/some') ``` results in: ``` File "/Users/traut/.p/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen body=body, headers=headers) File "/Users/traut/.p/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 348, in _make_request self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) File "/Users/traut/.p/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 318, in _raise_timeout if 'timed out' in str(err) or 'did not complete (read)' in str(err): # Python 2.6 TypeError: __str__ returned non-string (type Error) ``` Versions: Python 2.7.10 Requests 2.8.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2886/reactions" }
https://api.github.com/repos/psf/requests/issues/2886/timeline
null
completed
null
null
false
[ "This is definitely a duplicate but I don't have the time to find the exact bug right now. The fix is already merged in urllib3 iirc but @Lukasa can correct me.\n", "Yup, this is a duplicate of shazow/urllib3#556.\n", "cool. thanks for looking into it\n" ]
https://api.github.com/repos/psf/requests/issues/2885
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2885/labels{/name}
https://api.github.com/repos/psf/requests/issues/2885/comments
https://api.github.com/repos/psf/requests/issues/2885/events
https://github.com/psf/requests/issues/2885
117,320,647
MDU6SXNzdWUxMTczMjA2NDc=
2,885
sending post request data nested object
{ "avatar_url": "https://avatars.githubusercontent.com/u/9910819?v=4", "events_url": "https://api.github.com/users/wiryonolau/events{/privacy}", "followers_url": "https://api.github.com/users/wiryonolau/followers", "following_url": "https://api.github.com/users/wiryonolau/following{/other_user}", "gists_url": "https://api.github.com/users/wiryonolau/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wiryonolau", "id": 9910819, "login": "wiryonolau", "node_id": "MDQ6VXNlcjk5MTA4MTk=", "organizations_url": "https://api.github.com/users/wiryonolau/orgs", "received_events_url": "https://api.github.com/users/wiryonolau/received_events", "repos_url": "https://api.github.com/users/wiryonolau/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wiryonolau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wiryonolau/subscriptions", "type": "User", "url": "https://api.github.com/users/wiryonolau", "user_view_type": "public" }
[]
closed
true
null
[]
null
11
2015-11-17T10:00:37Z
2019-04-18T12:26:01Z
2015-11-17T10:13:49Z
NONE
resolved
Unable to send post data from nested object, some of the data is truncated ``` python payload = { "config": { "data" : "test" } } r = request.post('http://httpbin.org/post', data=payload) print(r.text) { "args": {}, "data": "", "files": {}, "form": { "config": "data" }, "headers": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Content-Length": "11", "Content-Type": "application/x-www-form-urlencoded", "Host": "httpbin.org", "User-Agent": "python-requests/2.8.1" }, "json": null, "origin": "xxx.xxx.xxx.xxx", "url": "http://httpbin.org/post" } ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2885/reactions" }
https://api.github.com/repos/psf/requests/issues/2885/timeline
null
completed
null
null
false
[ "What are you expecting the result to be here?\n", "the post data that send become config : data instead of the full object\n", "I'm sorry, I wasn't clear enough.\n\nWhen you use the `data` keyword, we encode the data using HTTP form-encoding. This is not capable of representing nested data structures, only fla...
https://api.github.com/repos/psf/requests/issues/2884
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2884/labels{/name}
https://api.github.com/repos/psf/requests/issues/2884/comments
https://api.github.com/repos/psf/requests/issues/2884/events
https://github.com/psf/requests/issues/2884
117,081,445
MDU6SXNzdWUxMTcwODE0NDU=
2,884
SSLError: [Errno 185090050] _ssl.c:336: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
{ "avatar_url": "https://avatars.githubusercontent.com/u/15173749?v=4", "events_url": "https://api.github.com/users/AraHaan/events{/privacy}", "followers_url": "https://api.github.com/users/AraHaan/followers", "following_url": "https://api.github.com/users/AraHaan/following{/other_user}", "gists_url": "https://api.github.com/users/AraHaan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AraHaan", "id": 15173749, "login": "AraHaan", "node_id": "MDQ6VXNlcjE1MTczNzQ5", "organizations_url": "https://api.github.com/users/AraHaan/orgs", "received_events_url": "https://api.github.com/users/AraHaan/received_events", "repos_url": "https://api.github.com/users/AraHaan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AraHaan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AraHaan/subscriptions", "type": "User", "url": "https://api.github.com/users/AraHaan", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-11-16T09:21:47Z
2021-09-08T20:01:03Z
2015-11-19T15:46:14Z
NONE
resolved
I am seeing this when compiling with requests in Python 2.7.10 with py2exe. Everything goes just fine till I test the exe it generates. My setup.py I used to create it is this. ``` Python from distutils.core import setup import py2exe setup(console=['Decorater.py']) ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2884/reactions" }
https://api.github.com/repos/psf/requests/issues/2884/timeline
null
completed
null
null
false
[ "This is almost certainly a py2exe problem. It seems like py2exe is not handling the ssl module correctly. \n", "I think that missing 3 dependencies could cause this as well although it still happens even when I just solved the \"Insecure Platform Warning\".\n", "looking closer it seems to be similar to the one...
https://api.github.com/repos/psf/requests/issues/2883
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2883/labels{/name}
https://api.github.com/repos/psf/requests/issues/2883/comments
https://api.github.com/repos/psf/requests/issues/2883/events
https://github.com/psf/requests/issues/2883
116,984,180
MDU6SXNzdWUxMTY5ODQxODA=
2,883
Posting files with unicode file names
{ "avatar_url": "https://avatars.githubusercontent.com/u/6841988?v=4", "events_url": "https://api.github.com/users/DeepSpace2/events{/privacy}", "followers_url": "https://api.github.com/users/DeepSpace2/followers", "following_url": "https://api.github.com/users/DeepSpace2/following{/other_user}", "gists_url": "https://api.github.com/users/DeepSpace2/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DeepSpace2", "id": 6841988, "login": "DeepSpace2", "node_id": "MDQ6VXNlcjY4NDE5ODg=", "organizations_url": "https://api.github.com/users/DeepSpace2/orgs", "received_events_url": "https://api.github.com/users/DeepSpace2/received_events", "repos_url": "https://api.github.com/users/DeepSpace2/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DeepSpace2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DeepSpace2/subscriptions", "type": "User", "url": "https://api.github.com/users/DeepSpace2", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-11-15T09:59:43Z
2021-09-08T21:00:42Z
2015-11-15T10:29:24Z
NONE
resolved
Hi all. I'm having issues with posting files with UTF-8 file names. I've thoroughly read these 2 issues: https://github.com/kennethreitz/requests/issues/2505 https://github.com/mitsuhiko/flask/issues/1384 Please also refer to my question on SO: http://stackoverflow.com/questions/33717690/python-requests-post-with-unicode-filenames Unlike the first issue I linked to, my filename doesn't end with '\n'. I noticed that the file ends up in request.form and not in request.files (just like described in the issues I linked to), must be because of the '_' in 'Content-Disposition: form-data; name="file0"; filename_=utf-8''%D7%90.txt' just after 'filename'.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2883/reactions" }
https://api.github.com/repos/psf/requests/issues/2883/timeline
null
completed
null
null
false
[ "Sorry, you've said you're \"having trouble\", but haven't actually specified what's happening that you aren't expecting. Could you elaborate?\n", "I'm sorry it was not clear but the problem is that the server doesn't\nreceive the file (request.files is empty).\nOn Nov 15, 2015 12:23, \"Cory Benfield\" notificati...
https://api.github.com/repos/psf/requests/issues/2882
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2882/labels{/name}
https://api.github.com/repos/psf/requests/issues/2882/comments
https://api.github.com/repos/psf/requests/issues/2882/events
https://github.com/psf/requests/pull/2882
116,908,035
MDExOlB1bGxSZXF1ZXN0NTA3MTg2MDY=
2,882
Please add a Session.close()
{ "avatar_url": "https://avatars.githubusercontent.com/u/14113854?v=4", "events_url": "https://api.github.com/users/fzzo/events{/privacy}", "followers_url": "https://api.github.com/users/fzzo/followers", "following_url": "https://api.github.com/users/fzzo/following{/other_user}", "gists_url": "https://api.github.com/users/fzzo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fzzo", "id": 14113854, "login": "fzzo", "node_id": "MDQ6VXNlcjE0MTEzODU0", "organizations_url": "https://api.github.com/users/fzzo/orgs", "received_events_url": "https://api.github.com/users/fzzo/received_events", "repos_url": "https://api.github.com/users/fzzo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fzzo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fzzo/subscriptions", "type": "User", "url": "https://api.github.com/users/fzzo", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-14T07:28:04Z
2021-09-08T05:01:13Z
2015-11-14T07:31:51Z
NONE
resolved
Is there a reason why the .close() has yet to be implemented, the equivalent of the .close() from the original requests library? To ensure the session is closed, without leaving any open/dead/hanging/zombie sockets, would a Session.close() be the way to avoid having socket nightmares on a multi-threaded crawler utilizing requesocks.Session()? Trying to do: ``` sesh = requesocks.Session() # do stuff sesh.close() ``` From requests: ``` def close(self): """Closes all adapters and as such the session""" for v in self.adapters.values(): v.close() ``` Thanks!
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2882/reactions" }
https://api.github.com/repos/psf/requests/issues/2882/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2882.diff", "html_url": "https://github.com/psf/requests/pull/2882", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2882.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2882" }
true
[ "Uh...this is the repository for the original requests library. We _do_ have a close method. \n" ]
https://api.github.com/repos/psf/requests/issues/2881
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2881/labels{/name}
https://api.github.com/repos/psf/requests/issues/2881/comments
https://api.github.com/repos/psf/requests/issues/2881/events
https://github.com/psf/requests/issues/2881
116,875,853
MDU6SXNzdWUxMTY4NzU4NTM=
2,881
No Session.close() ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/14113854?v=4", "events_url": "https://api.github.com/users/fzzo/events{/privacy}", "followers_url": "https://api.github.com/users/fzzo/followers", "following_url": "https://api.github.com/users/fzzo/following{/other_user}", "gists_url": "https://api.github.com/users/fzzo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fzzo", "id": 14113854, "login": "fzzo", "node_id": "MDQ6VXNlcjE0MTEzODU0", "organizations_url": "https://api.github.com/users/fzzo/orgs", "received_events_url": "https://api.github.com/users/fzzo/received_events", "repos_url": "https://api.github.com/users/fzzo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fzzo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fzzo/subscriptions", "type": "User", "url": "https://api.github.com/users/fzzo", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2015-11-13T23:36:49Z
2021-09-08T21:00:43Z
2015-11-14T07:21:01Z
NONE
resolved
Oops! Intended to post this on requesocks, closing
{ "avatar_url": "https://avatars.githubusercontent.com/u/14113854?v=4", "events_url": "https://api.github.com/users/fzzo/events{/privacy}", "followers_url": "https://api.github.com/users/fzzo/followers", "following_url": "https://api.github.com/users/fzzo/following{/other_user}", "gists_url": "https://api.github.com/users/fzzo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fzzo", "id": 14113854, "login": "fzzo", "node_id": "MDQ6VXNlcjE0MTEzODU0", "organizations_url": "https://api.github.com/users/fzzo/orgs", "received_events_url": "https://api.github.com/users/fzzo/received_events", "repos_url": "https://api.github.com/users/fzzo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fzzo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fzzo/subscriptions", "type": "User", "url": "https://api.github.com/users/fzzo", "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/2881/reactions" }
https://api.github.com/repos/psf/requests/issues/2881/timeline
null
completed
null
null
false
[]
https://api.github.com/repos/psf/requests/issues/2880
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2880/labels{/name}
https://api.github.com/repos/psf/requests/issues/2880/comments
https://api.github.com/repos/psf/requests/issues/2880/events
https://github.com/psf/requests/pull/2880
116,642,479
MDExOlB1bGxSZXF1ZXN0NTA1NjkyODA=
2,880
cache Response.text
{ "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
1
2015-11-12T21:19:12Z
2021-09-08T05:01:13Z
2015-11-12T23:05:17Z
NONE
resolved
`Response.text` is a pure function, seems pointless doing the same conversions in repeated calls. Cached ``` In [4]: %timeit any(word in resp.text for word in words) The slowest run took 6.20 times longer than the fastest. This could mean that an intermediate result is being cached 100000 loops, best of 3: 17.4 µs per loop ``` Not cached ``` In [5]: %timeit any(word in resp.text_old for word in words) 10000 loops, best of 3: 64.4 µs per loop ``` `len(words) == 3` in these examples, in a real world use case it could be much longer.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2880/reactions" }
https://api.github.com/repos/psf/requests/issues/2880/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2880.diff", "html_url": "https://github.com/psf/requests/pull/2880", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2880.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2880" }
true
[ "Thanks for this! However, `Response.text` is _not_ a pure function, and cannot be safely cached. This is actually explicitly called out [in the docs](http://docs.python-requests.org/en/latest/user/quickstart/#response-content):\n\n> If you change the encoding, Requests will use the new value of `r.encoding` whenev...
https://api.github.com/repos/psf/requests/issues/2879
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2879/labels{/name}
https://api.github.com/repos/psf/requests/issues/2879/comments
https://api.github.com/repos/psf/requests/issues/2879/events
https://github.com/psf/requests/issues/2879
116,582,947
MDU6SXNzdWUxMTY1ODI5NDc=
2,879
SSL error when using Requests 2.8.1 and SHA-1
{ "avatar_url": "https://avatars.githubusercontent.com/u/13770313?v=4", "events_url": "https://api.github.com/users/datarup/events{/privacy}", "followers_url": "https://api.github.com/users/datarup/followers", "following_url": "https://api.github.com/users/datarup/following{/other_user}", "gists_url": "https://api.github.com/users/datarup/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datarup", "id": 13770313, "login": "datarup", "node_id": "MDQ6VXNlcjEzNzcwMzEz", "organizations_url": "https://api.github.com/users/datarup/orgs", "received_events_url": "https://api.github.com/users/datarup/received_events", "repos_url": "https://api.github.com/users/datarup/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datarup/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datarup/subscriptions", "type": "User", "url": "https://api.github.com/users/datarup", "user_view_type": "public" }
[]
closed
true
null
[]
null
15
2015-11-12T16:16:26Z
2021-09-08T21:00:43Z
2015-11-13T16:02:56Z
NONE
resolved
I'm trying to connect to a site which uses TLS 1.2 using reqests package in Python 3.5. In Chrome I get the warning that the certificate chain for the website contains atleast one certificate that was signed by using SHA-1. I get the following error: ``` Traceback (most recent call last): File "<ipython-input-51-e43bc1030cea>", line 1, in <module> f = s.get(url) File "C:\Anaconda3\lib\site-packages\requests\sessions.py", line 480, in get return self.request('GET', url, **kwargs) File "C:\Anaconda3\lib\site-packages\requests\sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "C:\Anaconda3\lib\site-packages\requests\sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "C:\Anaconda3\lib\site-packages\requests\adapters.py", line 433, in send raise SSLError(e, request=request) SSLError: EOF occurred in violation of protocol (_ssl.c:646) ``` Requests version is 2.8.1 and Python version is Python 3.5.0 :: Anaconda 2.4.0 (64-bit) Is there a fix to this issue or has come across something similar? I have tried connecting to the site by forcing the TLS version after this [blog](https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/) form one of the contributors to Requests package, but I still get the sam error. Upgrading certs on the site is not an option now.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2879/reactions" }
https://api.github.com/repos/psf/requests/issues/2879/timeline
null
completed
null
null
false
[ "EOF in violation of protocol suggests that the remote peer has rejected the connection for some reason and, rather than terminate it cleanly, has decided to tear the connection down. Do you have PyOpenSSL installed?\n", "But I'm able to hit the same server from a browser or PostMan. There's no authentication for...
https://api.github.com/repos/psf/requests/issues/2878
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2878/labels{/name}
https://api.github.com/repos/psf/requests/issues/2878/comments
https://api.github.com/repos/psf/requests/issues/2878/events
https://github.com/psf/requests/pull/2878
116,552,991
MDExOlB1bGxSZXF1ZXN0NTA1MTMwNjc=
2,878
Remove redundant json import.
{ "avatar_url": "https://avatars.githubusercontent.com/u/9250239?v=4", "events_url": "https://api.github.com/users/kiddten/events{/privacy}", "followers_url": "https://api.github.com/users/kiddten/followers", "following_url": "https://api.github.com/users/kiddten/following{/other_user}", "gists_url": "https://api.github.com/users/kiddten/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kiddten", "id": 9250239, "login": "kiddten", "node_id": "MDQ6VXNlcjkyNTAyMzk=", "organizations_url": "https://api.github.com/users/kiddten/orgs", "received_events_url": "https://api.github.com/users/kiddten/received_events", "repos_url": "https://api.github.com/users/kiddten/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kiddten/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kiddten/subscriptions", "type": "User", "url": "https://api.github.com/users/kiddten", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-12T13:55:57Z
2021-09-08T05:01:14Z
2015-11-12T13:56:55Z
CONTRIBUTOR
resolved
related to https://github.com/kennethreitz/requests/issues/2877
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2878/reactions" }
https://api.github.com/repos/psf/requests/issues/2878/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2878.diff", "html_url": "https://github.com/psf/requests/pull/2878", "merged_at": "2015-11-12T13:56:55Z", "patch_url": "https://github.com/psf/requests/pull/2878.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2878" }
true
[ "\\o/ Thanks so much! :sparkles: :cake: :sparkles:\n" ]
https://api.github.com/repos/psf/requests/issues/2877
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2877/labels{/name}
https://api.github.com/repos/psf/requests/issues/2877/comments
https://api.github.com/repos/psf/requests/issues/2877/events
https://github.com/psf/requests/issues/2877
116,547,548
MDU6SXNzdWUxMTY1NDc1NDg=
2,877
Redundant import in docs?
{ "avatar_url": "https://avatars.githubusercontent.com/u/9250239?v=4", "events_url": "https://api.github.com/users/kiddten/events{/privacy}", "followers_url": "https://api.github.com/users/kiddten/followers", "following_url": "https://api.github.com/users/kiddten/following{/other_user}", "gists_url": "https://api.github.com/users/kiddten/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kiddten", "id": 9250239, "login": "kiddten", "node_id": "MDQ6VXNlcjkyNTAyMzk=", "organizations_url": "https://api.github.com/users/kiddten/orgs", "received_events_url": "https://api.github.com/users/kiddten/received_events", "repos_url": "https://api.github.com/users/kiddten/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kiddten/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kiddten/subscriptions", "type": "User", "url": "https://api.github.com/users/kiddten", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-11-12T13:21:00Z
2021-09-08T21:00:43Z
2015-11-12T14:11:11Z
CONTRIBUTOR
resolved
I am talking about this doc. https://github.com/kennethreitz/requests/blob/master/docs/user/quickstart.rst Here: ``` python >>> import json >>> url = 'https://api.github.com/some/endpoint' >>> payload = {'some': 'data'} >>> r = requests.post(url, json=payload) ``` json parameter is optional. Is there any reason to import json module? Thank you.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2877/reactions" }
https://api.github.com/repos/psf/requests/issues/2877/timeline
null
completed
null
null
false
[ "@kiddick You're entirely right: that import of the `json` module is from an old version of the documentation. Would you like to open a pull request to remove it?\n", "@Lukasa Thanks for reply. Yep I'll open pull request!\n", "Thanks for fixing this @kiddick \n" ]
https://api.github.com/repos/psf/requests/issues/2876
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2876/labels{/name}
https://api.github.com/repos/psf/requests/issues/2876/comments
https://api.github.com/repos/psf/requests/issues/2876/events
https://github.com/psf/requests/issues/2876
116,447,926
MDU6SXNzdWUxMTY0NDc5MjY=
2,876
Exception messages
{ "avatar_url": "https://avatars.githubusercontent.com/u/1687238?v=4", "events_url": "https://api.github.com/users/KenKundert/events{/privacy}", "followers_url": "https://api.github.com/users/KenKundert/followers", "following_url": "https://api.github.com/users/KenKundert/following{/other_user}", "gists_url": "https://api.github.com/users/KenKundert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/KenKundert", "id": 1687238, "login": "KenKundert", "node_id": "MDQ6VXNlcjE2ODcyMzg=", "organizations_url": "https://api.github.com/users/KenKundert/orgs", "received_events_url": "https://api.github.com/users/KenKundert/received_events", "repos_url": "https://api.github.com/users/KenKundert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/KenKundert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KenKundert/subscriptions", "type": "User", "url": "https://api.github.com/users/KenKundert", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 44501249, "name": "Needs BDFL Input", "node_id": "MDU6TGFiZWw0NDUwMTI0OQ==", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input" }, { "color": "f7c6c7", "default": false, "descrip...
closed
true
null
[]
null
15
2015-11-11T23:55:59Z
2021-09-08T07:00:41Z
2017-07-30T00:22:54Z
NONE
resolved
As a user I would like it to be easy to generate simple helpful messages upon an exception. A common way this is done in is to simply cast the exception to a string. However, with requests, the result is often something you don't want to show an end user. For example: ``` python try: downloaded = requests.get(url) except (requests.Timeout) as err: print(str(err)) ``` Results in the following message to the user: ``` HTTPSConnectionPool(host='cal.example.com', port=443): Max retries exceeded with url: /ken/ken.ics/00832974-ffb3-42ea-ba3e-84ba3c0a30f6.ics (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd4644ef400>, 'Connection to cal.example.com timed out. (connect timeout=0.1)')) ``` There is useful information in this message, but it is not easily user accessible and is rather intimidating for end users. The information is probably available in the exception itself, but it is not clear how to get it. Also, it seems like accessing it would likely be different for each type of exception, which greatly increases the complexity of catching and reporting exceptions. What I would expect is something like:: ``` Connection to cal.example.com timed out. ``` It would be very helpful if there were an easy way to generate user friendly error messages from requests exceptions. If there is such a way, I have not been able to find it. Thus, I suggest it be added to the otherwise excellent introduction to requests. If there is not such a way, I would like to to suggest that it be added.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/psf/requests/issues/2876/reactions" }
https://api.github.com/repos/psf/requests/issues/2876/timeline
null
completed
null
null
false
[ "So a little introspection shows this:\n\n``` py\n>>> import requests\n>>> try:\n... r = requests.get('https://httpbin.org/delay/5', timeout=2)\n... except requests.Timeout as terr:\n... pass\n...\n>>> terr\nReadTimeout(ReadTimeoutError(\"HTTPSConnectionPool(host='httpbin.org', port=443): Read timed out. (read ...
https://api.github.com/repos/psf/requests/issues/2875
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2875/labels{/name}
https://api.github.com/repos/psf/requests/issues/2875/comments
https://api.github.com/repos/psf/requests/issues/2875/events
https://github.com/psf/requests/issues/2875
116,433,178
MDU6SXNzdWUxMTY0MzMxNzg=
2,875
Failed to establish a new connection: [Errno 11001] getaddrinfo failed
{ "avatar_url": "https://avatars.githubusercontent.com/u/6819843?v=4", "events_url": "https://api.github.com/users/patjones80/events{/privacy}", "followers_url": "https://api.github.com/users/patjones80/followers", "following_url": "https://api.github.com/users/patjones80/following{/other_user}", "gists_url": "https://api.github.com/users/patjones80/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/patjones80", "id": 6819843, "login": "patjones80", "node_id": "MDQ6VXNlcjY4MTk4NDM=", "organizations_url": "https://api.github.com/users/patjones80/orgs", "received_events_url": "https://api.github.com/users/patjones80/received_events", "repos_url": "https://api.github.com/users/patjones80/repos", "site_admin": false, "starred_url": "https://api.github.com/users/patjones80/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/patjones80/subscriptions", "type": "User", "url": "https://api.github.com/users/patjones80", "user_view_type": "public" }
[]
closed
true
null
[]
null
16
2015-11-11T22:16:44Z
2017-12-06T02:03:04Z
2015-11-12T14:11:49Z
NONE
null
Hello all. I'm using requests 2.8.1 as part of a Flask 0.10.1 installation with Python 3.4 on Windows 8.1, and getting the following traceback upon attempting to run my code: ``` File "c:\Python34\atweather\lib\site-packages\requests-2.8.1-py3.4.egg\requests\api.py", line 69, in get return request('get', url, params=params, **kwargs) File "c:\Python34\atweather\lib\site-packages\requests-2.8.1-py3.4.egg\requests\api.py", line 50, in request response = session.request(method=method, url=url, **kwargs) File "c:\Python34\atweather\lib\site-packages\requests-2.8.1-py3.4.egg\requests\sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "c:\Python34\atweather\lib\site-packages\requests-2.8.1-py3.4.egg\requests\sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "c:\Python34\atweather\lib\site-packages\requests-2.8.1-py3.4.egg\requests\adapters.py", line 423, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='proxy.server', port=3128): Max retries exceeded with url: http://forecast.weather.gov/MapClick.php?lon=-84.2476&lat=34.5627&unit=0&lg=english&FcstType=text&TextType=1 (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x036F3830>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))) ``` It's not an issue with the url that I'm passing in, as the url works fine when I enter it directly into a browser tab - and moreover the same issue crops up with any url, for instance http://google.com. My website is very simple and I'm just attempting to run it locally to do some development on it. I'm fairly new to using Flask and web programming in general, so if this seems more like something that I'm doing wrong with my Flask environment, directory structure, etc. then I apologize. Nothing has really changed about my project since the last time I did local development on it except for the versions of various packages that Flask uses. Also...I chopped off everything in the traceback prior to when it started throwing "requests" stuff at me, but if you think any of what I excluded could be helpful then let me know. Thank you.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2875/reactions" }
https://api.github.com/repos/psf/requests/issues/2875/timeline
null
completed
null
null
false
[ "Hey @patjones80,\n\nCan you try doing\n\n``` py\n>>> import socket\n>>> s = socket.socket()\n>>> s.connect(('www.google.com', 80))\n```\n\nTo see what happens?\n", "Oh, I just noticed this snippet from your issue:\n\n```\nHTTPConnectionPool(host='proxy.server', port=3128)\n```\n\nDo you have proxies properly con...
https://api.github.com/repos/psf/requests/issues/2874
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2874/labels{/name}
https://api.github.com/repos/psf/requests/issues/2874/comments
https://api.github.com/repos/psf/requests/issues/2874/events
https://github.com/psf/requests/issues/2874
116,346,023
MDU6SXNzdWUxMTYzNDYwMjM=
2,874
urlib3.HTTPResponse.stream would confuse gzip content originally not encoded utf8
{ "avatar_url": "https://avatars.githubusercontent.com/u/741544?v=4", "events_url": "https://api.github.com/users/yupbank/events{/privacy}", "followers_url": "https://api.github.com/users/yupbank/followers", "following_url": "https://api.github.com/users/yupbank/following{/other_user}", "gists_url": "https://api.github.com/users/yupbank/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yupbank", "id": 741544, "login": "yupbank", "node_id": "MDQ6VXNlcjc0MTU0NA==", "organizations_url": "https://api.github.com/users/yupbank/orgs", "received_events_url": "https://api.github.com/users/yupbank/received_events", "repos_url": "https://api.github.com/users/yupbank/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yupbank/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yupbank/subscriptions", "type": "User", "url": "https://api.github.com/users/yupbank", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2015-11-11T14:34:13Z
2021-09-08T21:00:44Z
2015-11-11T14:49:18Z
NONE
resolved
Hi, i was using requests for get gziped web page which originally encoded in gbk. as requests would try their best decoding gziped pages but as originally not by utf-8 would make the result weried and hard to debug :(
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2874/reactions" }
https://api.github.com/repos/psf/requests/issues/2874/timeline
null
completed
null
null
false
[ "@yupbank Sorry, I didn't fully understand this message. Can you post some code that demonstrates the problem?\n", "basically \ni figured the correct way:\n\n```\nzlib.decompress(requests.get('http://zhongyanghuachengzs.fang.com/', stream=True).raw.read(), \n zlib.MAX_WBITS|32).decode('gbk'))\n```\n\nas ...
https://api.github.com/repos/psf/requests/issues/2873
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2873/labels{/name}
https://api.github.com/repos/psf/requests/issues/2873/comments
https://api.github.com/repos/psf/requests/issues/2873/events
https://github.com/psf/requests/pull/2873
116,256,838
MDExOlB1bGxSZXF1ZXN0NTAzNDM5Njg=
2,873
Fix super_len for partially read files
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url...
null
1
2015-11-11T03:22:53Z
2021-09-08T05:01:14Z
2015-11-11T07:52:47Z
CONTRIBUTOR
resolved
See #2872
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2873/reactions" }
https://api.github.com/repos/psf/requests/issues/2873/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2873.diff", "html_url": "https://github.com/psf/requests/pull/2873", "merged_at": "2015-11-11T07:52:47Z", "patch_url": "https://github.com/psf/requests/pull/2873.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2873" }
true
[ "LGTM. :sparkles: :cake: :sparkles:\n" ]
https://api.github.com/repos/psf/requests/issues/2872
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2872/labels{/name}
https://api.github.com/repos/psf/requests/issues/2872/comments
https://api.github.com/repos/psf/requests/issues/2872/events
https://github.com/psf/requests/issues/2872
116,211,092
MDU6SXNzdWUxMTYyMTEwOTI=
2,872
Post request hangs in certain cases when body is a StringIO
{ "avatar_url": "https://avatars.githubusercontent.com/u/4674965?v=4", "events_url": "https://api.github.com/users/braincore/events{/privacy}", "followers_url": "https://api.github.com/users/braincore/followers", "following_url": "https://api.github.com/users/braincore/following{/other_user}", "gists_url": "https://api.github.com/users/braincore/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/braincore", "id": 4674965, "login": "braincore", "node_id": "MDQ6VXNlcjQ2NzQ5NjU=", "organizations_url": "https://api.github.com/users/braincore/orgs", "received_events_url": "https://api.github.com/users/braincore/received_events", "repos_url": "https://api.github.com/users/braincore/repos", "site_admin": false, "starred_url": "https://api.github.com/users/braincore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/braincore/subscriptions", "type": "User", "url": "https://api.github.com/users/braincore", "user_view_type": "public" }
[]
closed
true
null
[]
null
9
2015-11-10T21:56:24Z
2021-09-08T21:00:44Z
2015-11-11T07:52:49Z
NONE
resolved
This is related to a report for the [Dropbox Python SDK](https://github.com/dropbox/dropbox-sdk-python/issues/27). The following hangs: ``` from StringIO import StringIO s = StringIO() s.write('hello') # This is seeked to the end requests.post('http://www.google.com', data=s) # Hangs: A success would be a 405 error ``` After a cursory look, it looks like the request isn't fully formed so the server doesn't attempt to send a response which leaves the client hanging. If we call `s.seek(0)`, this works. A bit more counterintuitively, this also works: ``` requests.post('http://www.google.com', data=StringIO()) ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2872/reactions" }
https://api.github.com/repos/psf/requests/issues/2872/timeline
null
completed
null
null
false
[ "Thanks for this report. This comes because we calculate the length of the StringIO, but don't account for where it is seeked to. \n\nAs I see it we have two options: we can either always `seek(0)` before sending a body, or we can use `tell()` to adjust the content length. \n\nOn balance, I think the first is proba...
https://api.github.com/repos/psf/requests/issues/2871
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2871/labels{/name}
https://api.github.com/repos/psf/requests/issues/2871/comments
https://api.github.com/repos/psf/requests/issues/2871/events
https://github.com/psf/requests/issues/2871
116,122,060
MDU6SXNzdWUxMTYxMjIwNjA=
2,871
GitHub release page lists the "latest release" as v2.5.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/501702?v=4", "events_url": "https://api.github.com/users/edmorley/events{/privacy}", "followers_url": "https://api.github.com/users/edmorley/followers", "following_url": "https://api.github.com/users/edmorley/following{/other_user}", "gists_url": "https://api.github.com/users/edmorley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/edmorley", "id": 501702, "login": "edmorley", "node_id": "MDQ6VXNlcjUwMTcwMg==", "organizations_url": "https://api.github.com/users/edmorley/orgs", "received_events_url": "https://api.github.com/users/edmorley/received_events", "repos_url": "https://api.github.com/users/edmorley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/edmorley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edmorley/subscriptions", "type": "User", "url": "https://api.github.com/users/edmorley", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2015-11-10T14:54:43Z
2021-09-08T21:00:45Z
2015-11-10T15:53:30Z
CONTRIBUTOR
resolved
On https://github.com/kennethreitz/requests/releases , the "latest release" label is next to v2.5.1, whereas the newest release is v2.8.1, which is hidden under the "Show 8 newer tags" link. If newer release entries are missing because it's a hassle to transpose the release notes into each, perhaps just linking to the relevant entry on http://docs.python-requests.org/en/latest/community/updates/ would be sufficient? (Though it seems the permalinks on that page are just generic, eg `#id1` and not `#v2-8-1` etc). Or even leaving the notes section blank would be fine.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2871/reactions" }
https://api.github.com/repos/psf/requests/issues/2871/timeline
null
completed
null
null
false
[ "Yeah, it's mostly annoying to transpose the notes. I'll do it now anyway. =)\n", "@Lukasa let's just remove them. This is a hassle and we've had .... 4 bugs about this? It's worthless and it doesn't provide real value.\n", "Removing them works for me; at least GitHub then defaults to just showing the tags, whi...
https://api.github.com/repos/psf/requests/issues/2870
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2870/labels{/name}
https://api.github.com/repos/psf/requests/issues/2870/comments
https://api.github.com/repos/psf/requests/issues/2870/events
https://github.com/psf/requests/issues/2870
116,100,502
MDU6SXNzdWUxMTYxMDA1MDI=
2,870
Unbundling logic still breaks downstream.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
null
29
2015-11-10T12:49:34Z
2021-09-08T07:00:37Z
2017-07-30T14:02:09Z
MEMBER
resolved
Originally reported by @fasaxc. Interested parties: @sigmavirus24 @dcramer @eriol @ralphbean @warsaw We added support for a new form of unbundling logic in #2567. Unfortunately, this seems not to work properly. Specifically, the presence of requests in a system makes it impossible to catch urllib3 exceptions correctly: see [this Stack Overflow question](https://stackoverflow.com/questions/33516164/why-cant-i-catch-this-python-exception) for more. This problem seems to specifically affect the urllib3 sub-packages, not urllib3 itself. One proposed change is to add every urllib3 sub-package that gets imported to the list of modules requests explicitly imports in this stub file. This is pretty gross, but might work. Does anyone have other suggestions?
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2870/reactions" }
https://api.github.com/repos/psf/requests/issues/2870/timeline
null
completed
null
null
false
[ "The issue I'm seeing is that, after importing first `urllib3.exceptions` then `requests.package.urllib3.exceptions`\n\n```\nsys.modules[\"urllib3\"].exceptions is not sys.modules[\"urllib3.exceptions\"]\nsys.modules[\"urllib3\"].exceptions is sys.modules[\"requests.packages.urllib3.exceptions\"]\n```\n\nImporting ...
https://api.github.com/repos/psf/requests/issues/2869
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2869/labels{/name}
https://api.github.com/repos/psf/requests/issues/2869/comments
https://api.github.com/repos/psf/requests/issues/2869/events
https://github.com/psf/requests/pull/2869
116,090,030
MDExOlB1bGxSZXF1ZXN0NTAyNDM3MDA=
2,869
unnest deep loop
{ "avatar_url": "https://avatars.githubusercontent.com/u/1508133?v=4", "events_url": "https://api.github.com/users/miroli/events{/privacy}", "followers_url": "https://api.github.com/users/miroli/followers", "following_url": "https://api.github.com/users/miroli/following{/other_user}", "gists_url": "https://api.github.com/users/miroli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/miroli", "id": 1508133, "login": "miroli", "node_id": "MDQ6VXNlcjE1MDgxMzM=", "organizations_url": "https://api.github.com/users/miroli/orgs", "received_events_url": "https://api.github.com/users/miroli/received_events", "repos_url": "https://api.github.com/users/miroli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/miroli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miroli/subscriptions", "type": "User", "url": "https://api.github.com/users/miroli", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-11-10T11:40:58Z
2021-09-08T05:01:14Z
2015-11-10T13:21:01Z
CONTRIBUTOR
resolved
Flat is better than nested. Instead of nesting `if` statements, check for the opposite early in the loop and `continue` if the opposite is the case.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2869/reactions" }
https://api.github.com/repos/psf/requests/issues/2869/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2869.diff", "html_url": "https://github.com/psf/requests/pull/2869", "merged_at": "2015-11-10T13:21:01Z", "patch_url": "https://github.com/psf/requests/pull/2869.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2869" }
true
[ "Good idea @vienno!\n\nIf we're going to un-nest this, let's un-nest it the whole way. Want to break out the next nested couplet as well and use the same logic?\n", "How about now @Lukasa ? I rewrote the third `if` statement as well, for consistency.\n", "Thanks, much better! I have one small note, inline on th...
https://api.github.com/repos/psf/requests/issues/2868
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2868/labels{/name}
https://api.github.com/repos/psf/requests/issues/2868/comments
https://api.github.com/repos/psf/requests/issues/2868/events
https://github.com/psf/requests/issues/2868
115,786,189
MDU6SXNzdWUxMTU3ODYxODk=
2,868
Can't modify cookies from auth plugin
{ "avatar_url": "https://avatars.githubusercontent.com/u/416057?v=4", "events_url": "https://api.github.com/users/jamielennox/events{/privacy}", "followers_url": "https://api.github.com/users/jamielennox/followers", "following_url": "https://api.github.com/users/jamielennox/following{/other_user}", "gists_url": "https://api.github.com/users/jamielennox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jamielennox", "id": 416057, "login": "jamielennox", "node_id": "MDQ6VXNlcjQxNjA1Nw==", "organizations_url": "https://api.github.com/users/jamielennox/orgs", "received_events_url": "https://api.github.com/users/jamielennox/received_events", "repos_url": "https://api.github.com/users/jamielennox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jamielennox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamielennox/subscriptions", "type": "User", "url": "https://api.github.com/users/jamielennox", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-11-09T03:50:40Z
2021-09-08T15:00:53Z
2016-09-06T00:09:19Z
NONE
resolved
HI, I'm writing an auth plugin in which I want to manipulate the cookies set by a response. Specifically in this case I need to use cookies for the auth exchange but i don't want them added to the session. When the response hooks and similar are finished the response is returned, the history examined and cookies merged into the cookie jar using the _original_response.msg httpmessage that urllib3 sets. This means there is no public way for me to manipulate the headers to prevent these cookies being added to the session. From a quick examination my guess to address this would be to regenerate the httpmessage header list from the response.headers. My solution for now is going to be not include the intermediate requests in the history so that the cookies don't get picked up. I'm also going to look into a cookie policy that simply denies everything.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2868/reactions" }
https://api.github.com/repos/psf/requests/issues/2868/timeline
null
completed
null
null
false
[ "I'm sorry, it's not clear what exactly the bug is here. What function would you like that you don't have?\n", "If I know @jamielennox, they're working on SAML auth plugin. Part of (some of) the SAML authentication flow(s) includes cookies being sent that aren't meant to be persisted on the session.\n\nI think wh...
https://api.github.com/repos/psf/requests/issues/2867
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2867/labels{/name}
https://api.github.com/repos/psf/requests/issues/2867/comments
https://api.github.com/repos/psf/requests/issues/2867/events
https://github.com/psf/requests/issues/2867
115,776,920
MDU6SXNzdWUxMTU3NzY5MjA=
2,867
How to deal with using requests and urllib3 together
{ "avatar_url": "https://avatars.githubusercontent.com/u/12321?v=4", "events_url": "https://api.github.com/users/sjmh/events{/privacy}", "followers_url": "https://api.github.com/users/sjmh/followers", "following_url": "https://api.github.com/users/sjmh/following{/other_user}", "gists_url": "https://api.github.com/users/sjmh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sjmh", "id": 12321, "login": "sjmh", "node_id": "MDQ6VXNlcjEyMzIx", "organizations_url": "https://api.github.com/users/sjmh/orgs", "received_events_url": "https://api.github.com/users/sjmh/received_events", "repos_url": "https://api.github.com/users/sjmh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sjmh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sjmh/subscriptions", "type": "User", "url": "https://api.github.com/users/sjmh", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2015-11-09T01:37:31Z
2021-09-08T21:00:46Z
2015-11-09T03:09:21Z
NONE
resolved
Ran into an interesting issue in the past week while testing things out with SaltStack. ( SaltStack is a remote execution engine / cfg mgmt tool ). SaltStack uses requests internally. However, one of the 'modules' you can use is python-etcd. python-etcd uses urllib3. But, because of request's wrapping of urllib3 exceptions, some of the python-etcd code bombs because it tries to catch urllib3 exceptions via fully-qualified names. An example of this happening can be easily demo'd with: ``` #!/usr/bin/python #import requests import etcd c = etcd.Client('127.0.0.1', 4001) c.read("/blah", wait=True, timeout=2) ``` Without Requests, you get etcd.EtcdConnectionFailed. With it, you get urllib3.exceptions.ReadTimeoutError. python-etcd tries to catch urllib3 exceptions, but because of request's wrapping, it fails to catch them. Is there a way to work around this properly ( besides going to the python-etcd author and asking him to change everything to use requests instead of urllib3 )?
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2867/reactions" }
https://api.github.com/repos/psf/requests/issues/2867/timeline
null
completed
null
null
false
[ "How are you installing requests and urllib3?\n", "Via RPM ( both from RHEL's official repos for RHEL6 )\n\n```\n[root@alpha site-packages]# rpm -qa | grep urllib3\npython-urllib3-1.10.2-1.el6.noarch\n[root@alpha site-packages]# rpm -qa | grep requests\npython-requests-2.6.0-3.el6.noarch\n```\n", "So this is a ...
https://api.github.com/repos/psf/requests/issues/2866
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2866/labels{/name}
https://api.github.com/repos/psf/requests/issues/2866/comments
https://api.github.com/repos/psf/requests/issues/2866/events
https://github.com/psf/requests/issues/2866
115,669,814
MDU6SXNzdWUxMTU2Njk4MTQ=
2,866
Better testing for chunked uploads.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
null
15
2015-11-07T14:29:59Z
2021-09-08T18:00:59Z
2016-04-11T20:29:02Z
MEMBER
resolved
We have a whole code branch that does chunked uploads that is not and has never been tested. That's a problem, because sometimes it breaks and we don't notice (#2861). I'd like to add more testing for chunked uploads. However, we can't use httpbin to do this testing. This is because the WSGI spec staunchly refuses to let applications see chunked transfer encoding at the app layer. For this reason, to test chunked transfer encoding requires a new style of testing, one that doesn't involve running a WSGI server but instead running something that can see the bytes _as they hit the wire_. Basically, something like the socket level tests of urllib3.
{ "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/2866/reactions" }
https://api.github.com/repos/psf/requests/issues/2866/timeline
null
completed
null
null
false
[ "One possibility would be adapting urllib3's solution to our case. This new server we'd make doesn't need to support the whole HTTP protocol, because we just need it for the chunked transfer encoding thing, right? \n", "I think we wouldn't actually use a proper server at all, just a pair of sockets.\n", "Right,...
https://api.github.com/repos/psf/requests/issues/2865
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2865/labels{/name}
https://api.github.com/repos/psf/requests/issues/2865/comments
https://api.github.com/repos/psf/requests/issues/2865/events
https://github.com/psf/requests/issues/2865
115,634,401
MDU6SXNzdWUxMTU2MzQ0MDE=
2,865
Can't pass boolean parameter in body of POST request when using multipart encoding
{ "avatar_url": "https://avatars.githubusercontent.com/u/604138?v=4", "events_url": "https://api.github.com/users/Aerlinger/events{/privacy}", "followers_url": "https://api.github.com/users/Aerlinger/followers", "following_url": "https://api.github.com/users/Aerlinger/following{/other_user}", "gists_url": "https://api.github.com/users/Aerlinger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Aerlinger", "id": 604138, "login": "Aerlinger", "node_id": "MDQ6VXNlcjYwNDEzOA==", "organizations_url": "https://api.github.com/users/Aerlinger/orgs", "received_events_url": "https://api.github.com/users/Aerlinger/received_events", "repos_url": "https://api.github.com/users/Aerlinger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Aerlinger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aerlinger/subscriptions", "type": "User", "url": "https://api.github.com/users/Aerlinger", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-11-07T05:05:10Z
2021-09-08T21:00:46Z
2015-11-07T07:25:27Z
NONE
resolved
Here's a short example of what I'm experiencing: ``` python params = { "someBoolean": True } response = requests.post(endpoint, data=params, files={'input_file', open(fileobj, 'rb')}) ``` The issue is that requests encodes the `someBoolean` parameter as the string value `"True"` rather than the boolean literal `true` value.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2865/reactions" }
https://api.github.com/repos/psf/requests/issues/2865/timeline
null
completed
null
null
false
[ "The `data` argument does not encode as JSON: it encodes as form-encoded data. This has no `true` literal. If you want to encode json, you'll want to use the `json` argument, but you cannot combine that argument with the `files` argument. Instead, try this:\n\n``` python\nimport json\nresponse = requests.post(endpo...
https://api.github.com/repos/psf/requests/issues/2864
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2864/labels{/name}
https://api.github.com/repos/psf/requests/issues/2864/comments
https://api.github.com/repos/psf/requests/issues/2864/events
https://github.com/psf/requests/pull/2864
115,587,756
MDExOlB1bGxSZXF1ZXN0NTAwMDM5MDY=
2,864
Assure session is closed on exception.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1945440?v=4", "events_url": "https://api.github.com/users/aartur/events{/privacy}", "followers_url": "https://api.github.com/users/aartur/followers", "following_url": "https://api.github.com/users/aartur/following{/other_user}", "gists_url": "https://api.github.com/users/aartur/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aartur", "id": 1945440, "login": "aartur", "node_id": "MDQ6VXNlcjE5NDU0NDA=", "organizations_url": "https://api.github.com/users/aartur/orgs", "received_events_url": "https://api.github.com/users/aartur/received_events", "repos_url": "https://api.github.com/users/aartur/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aartur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aartur/subscriptions", "type": "User", "url": "https://api.github.com/users/aartur", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-11-06T20:59:03Z
2021-09-08T05:01:15Z
2015-11-06T21:02:31Z
CONTRIBUTOR
resolved
As I noticed in #2862 session is not closed on exception when using high-level API (not sessions). Here's a fix for it.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2864/reactions" }
https://api.github.com/repos/psf/requests/issues/2864/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2864.diff", "html_url": "https://github.com/psf/requests/pull/2864", "merged_at": "2015-11-06T21:02:30Z", "patch_url": "https://github.com/psf/requests/pull/2864.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2864" }
true
[ "Looks good to me! Want to add yourself to AUTHORS?\n", "s/AUTHORS/CONTRIBUTORS/\n", "It's too small, next time ;).\n", "Ok! :sparkles: :cake: :sparkles:\n", "Thanks @aartur \n" ]
https://api.github.com/repos/psf/requests/issues/2863
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2863/labels{/name}
https://api.github.com/repos/psf/requests/issues/2863/comments
https://api.github.com/repos/psf/requests/issues/2863/events
https://github.com/psf/requests/issues/2863
115,547,977
MDU6SXNzdWUxMTU1NDc5Nzc=
2,863
Multiple requests on a single Session with different client certs behave incorrectly
{ "avatar_url": "https://avatars.githubusercontent.com/u/772?v=4", "events_url": "https://api.github.com/users/alex/events{/privacy}", "followers_url": "https://api.github.com/users/alex/followers", "following_url": "https://api.github.com/users/alex/following{/other_user}", "gists_url": "https://api.github.com/users/alex/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alex", "id": 772, "login": "alex", "node_id": "MDQ6VXNlcjc3Mg==", "organizations_url": "https://api.github.com/users/alex/orgs", "received_events_url": "https://api.github.com/users/alex/received_events", "repos_url": "https://api.github.com/users/alex/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alex/subscriptions", "type": "User", "url": "https://api.github.com/users/alex", "user_view_type": "public" }
[]
closed
true
null
[]
null
18
2015-11-06T17:10:13Z
2021-09-08T08:00:34Z
2017-07-25T22:34:55Z
MEMBER
resolved
Consider the following code: ``` py import requests s = requests.session() s.get("https://host", cert="path/to/cert1.pem") s.get("https://host", cert="path/to/cert2.pem") ``` `requests` will silently reuse the same connection for both connections, which is incorrect.
{ "avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4", "events_url": "https://api.github.com/users/nateprewitt/events{/privacy}", "followers_url": "https://api.github.com/users/nateprewitt/followers", "following_url": "https://api.github.com/users/nateprewitt/following{/other_user}", "gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nateprewitt", "id": 5271761, "login": "nateprewitt", "node_id": "MDQ6VXNlcjUyNzE3NjE=", "organizations_url": "https://api.github.com/users/nateprewitt/orgs", "received_events_url": "https://api.github.com/users/nateprewitt/received_events", "repos_url": "https://api.github.com/users/nateprewitt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions", "type": "User", "url": "https://api.github.com/users/nateprewitt", "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/2863/reactions" }
https://api.github.com/repos/psf/requests/issues/2863/timeline
null
completed
null
null
false
[ "Yeah, this is not good. We have a similar problem if a user switches the 'verify' flag as well, so we need to fix that.\n", "So, @shazow, I think really we need to adjust the connection pooling logic in urllib3 a bit. Keying connections off the URL isn't really enough: for HTTPS connections we need to key them o...
https://api.github.com/repos/psf/requests/issues/2862
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2862/labels{/name}
https://api.github.com/repos/psf/requests/issues/2862/comments
https://api.github.com/repos/psf/requests/issues/2862/events
https://github.com/psf/requests/issues/2862
115,507,408
MDU6SXNzdWUxMTU1MDc0MDg=
2,862
Big memory leaks on PyPy (simplest usage)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1945440?v=4", "events_url": "https://api.github.com/users/aartur/events{/privacy}", "followers_url": "https://api.github.com/users/aartur/followers", "following_url": "https://api.github.com/users/aartur/following{/other_user}", "gists_url": "https://api.github.com/users/aartur/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aartur", "id": 1945440, "login": "aartur", "node_id": "MDQ6VXNlcjE5NDU0NDA=", "organizations_url": "https://api.github.com/users/aartur/orgs", "received_events_url": "https://api.github.com/users/aartur/received_events", "repos_url": "https://api.github.com/users/aartur/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aartur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aartur/subscriptions", "type": "User", "url": "https://api.github.com/users/aartur", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2015-11-06T13:44:32Z
2021-09-08T21:00:47Z
2015-11-06T15:51:06Z
CONTRIBUTOR
resolved
The simplest usage of `requests` causes big memory leaks on PyPy (2.6.1, 4.0.0) and newest requests (2.8.1). The following script: ``` import requests import time import sys def main(): while True: r = requests.get('https://www.bing.com/') time.sleep(0.1) sys.stderr.write('.') sys.stderr.flush() if __name__ == '__main__': main() ``` causes an increase of memory usage of about 1MB/second. What does not help: creating and closing a `Session` for each request. What seems to help: using a global `Session`. I have seen issues about it like https://github.com/kennethreitz/requests/issues/1685 but I'm not sure it was fixed and if it's regression. Can connection pooling and keep-alive be disabled as a workaround? It seems like keep-alive is hardcoded now. I don't see a leak on CPython, which probably means the bug must be caused by relying on reference counting sideeffects and incorrect cleanup code. BTW, this line: https://github.com/kennethreitz/requests/blob/HEAD/requests/api.py#L54 should be wrapped around `try ... finally` (or `with ...`), unless session.request can't ever throw an exception.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2862/reactions" }
https://api.github.com/repos/psf/requests/issues/2862/timeline
null
completed
null
null
false
[ "This is quite puzzling. I ran the script for a long time, then broke into pdb.\n\n``` python\n(Pdb) objgraph.show_most_common_types(limit=20)\nstr 18275\nfunction 5946\nint 5812\ncode 4013\ntuple 3548\nbuiltin-code 2646\ndict 880\nunic...
https://api.github.com/repos/psf/requests/issues/2861
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2861/labels{/name}
https://api.github.com/repos/psf/requests/issues/2861/comments
https://api.github.com/repos/psf/requests/issues/2861/events
https://github.com/psf/requests/pull/2861
115,349,215
MDExOlB1bGxSZXF1ZXN0NDk4NjQ3NTE=
2,861
Fix breakage introduced by 8f591682
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2015-11-05T18:55:57Z
2021-09-08T06:00:47Z
2015-11-07T17:50:50Z
MEMBER
resolved
Turns out we broke chunked uploads in 8f591682e6a901baf0cc8a0393b5930252f0318a. I discovered this while investigating #2215. While we were here, I added a test that would at least have caught errors as egregious as this one.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2861/reactions" }
https://api.github.com/repos/psf/requests/issues/2861/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2861.diff", "html_url": "https://github.com/psf/requests/pull/2861", "merged_at": "2015-11-07T17:50:50Z", "patch_url": "https://github.com/psf/requests/pull/2861.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2861" }
true
[ "To note: this breakage did not make it into any shipped version of requests, so we don't need to schedule a patch release for this.\n", "Why is the build failing?\n", "Good question. The test behaves fine on my\nMac, but it's a tricky one because chunked encoding and WSGI don't necessarily play nice. \n\n> On ...
https://api.github.com/repos/psf/requests/issues/2860
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2860/labels{/name}
https://api.github.com/repos/psf/requests/issues/2860/comments
https://api.github.com/repos/psf/requests/issues/2860/events
https://github.com/psf/requests/issues/2860
115,309,255
MDU6SXNzdWUxMTUzMDkyNTU=
2,860
Replace missing test for threaded HTTP digest auth.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
false
null
[]
null
1
2015-11-05T15:34:22Z
2024-05-19T18:37:30Z
2024-05-19T18:37:30Z
MEMBER
null
This test was removed as part of #2859, but we should aim to put it back in some form.
{ "avatar_url": "https://avatars.githubusercontent.com/u/18519037?v=4", "events_url": "https://api.github.com/users/sethmlarson/events{/privacy}", "followers_url": "https://api.github.com/users/sethmlarson/followers", "following_url": "https://api.github.com/users/sethmlarson/following{/other_user}", "gists_url": "https://api.github.com/users/sethmlarson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sethmlarson", "id": 18519037, "login": "sethmlarson", "node_id": "MDQ6VXNlcjE4NTE5MDM3", "organizations_url": "https://api.github.com/users/sethmlarson/orgs", "received_events_url": "https://api.github.com/users/sethmlarson/received_events", "repos_url": "https://api.github.com/users/sethmlarson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sethmlarson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sethmlarson/subscriptions", "type": "User", "url": "https://api.github.com/users/sethmlarson", "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/2860/reactions" }
https://api.github.com/repos/psf/requests/issues/2860/timeline
null
completed
null
null
false
[ "Should this now be closed with the recent progress? #2897\n" ]
https://api.github.com/repos/psf/requests/issues/2859
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2859/labels{/name}
https://api.github.com/repos/psf/requests/issues/2859/comments
https://api.github.com/repos/psf/requests/issues/2859/events
https://github.com/psf/requests/pull/2859
115,286,845
MDExOlB1bGxSZXF1ZXN0NDk4MjU1NzM=
2,859
Move test suite offline using pytest-httpbin
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2015-11-05T13:48:32Z
2021-09-08T06:00:48Z
2015-11-05T15:37:22Z
MEMBER
resolved
Resolves #2184, and should allow us to move back to Travis for our testing.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2859/reactions" }
https://api.github.com/repos/psf/requests/issues/2859/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2859.diff", "html_url": "https://github.com/psf/requests/pull/2859", "merged_at": "2015-11-05T15:37:22Z", "patch_url": "https://github.com/psf/requests/pull/2859.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2859" }
true
[ "There _ought_ to be a lot of improvements to doing this. Tests should be a lot closer to reproducible, and the runtime should improve greatly. This is still not really how I want this test suite to look, but it's a _lot_ closer.\n", "One request, then I'll press the big green button. :)\n\nAlternatively, we can ...
https://api.github.com/repos/psf/requests/issues/2858
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2858/labels{/name}
https://api.github.com/repos/psf/requests/issues/2858/comments
https://api.github.com/repos/psf/requests/issues/2858/events
https://github.com/psf/requests/pull/2858
115,282,668
MDExOlB1bGxSZXF1ZXN0NDk4MjI4MjA=
2,858
Add support for a directory of CAs
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
null
[]
{ "closed_at": "2016-01-05T17:14:26Z", "closed_issues": 2, "created_at": "2015-10-12T10:32:11Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }, "description": "", "due_on": null, "html_url": "https://github.com/psf/requests/milestone/26", "id": 1350559, "labels_url": "https://api.github.com/repos/psf/requests/milestones/26/labels", "node_id": "MDk6TWlsZXN0b25lMTM1MDU1OQ==", "number": 26, "open_issues": 0, "state": "closed", "title": "2.9.0", "updated_at": "2016-01-05T17:14:26Z", "url": "https://api.github.com/repos/psf/requests/milestones/26" }
0
2015-11-05T13:22:14Z
2021-09-08T06:00:47Z
2015-11-07T21:39:41Z
MEMBER
resolved
Resolves #2659. This would have to go in 2.9.0. Once again, our test suite isn't really in a place that lets us effectively test this.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2858/reactions" }
https://api.github.com/repos/psf/requests/issues/2858/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2858.diff", "html_url": "https://github.com/psf/requests/pull/2858", "merged_at": "2015-11-07T21:39:41Z", "patch_url": "https://github.com/psf/requests/pull/2858.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2858" }
true
[]
https://api.github.com/repos/psf/requests/issues/2857
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2857/labels{/name}
https://api.github.com/repos/psf/requests/issues/2857/comments
https://api.github.com/repos/psf/requests/issues/2857/events
https://github.com/psf/requests/issues/2857
115,210,530
MDU6SXNzdWUxMTUyMTA1MzA=
2,857
Expose expires attribute of cookie in class RequestsCookieJar
{ "avatar_url": "https://avatars.githubusercontent.com/u/748271?v=4", "events_url": "https://api.github.com/users/ammsa/events{/privacy}", "followers_url": "https://api.github.com/users/ammsa/followers", "following_url": "https://api.github.com/users/ammsa/following{/other_user}", "gists_url": "https://api.github.com/users/ammsa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ammsa", "id": 748271, "login": "ammsa", "node_id": "MDQ6VXNlcjc0ODI3MQ==", "organizations_url": "https://api.github.com/users/ammsa/orgs", "received_events_url": "https://api.github.com/users/ammsa/received_events", "repos_url": "https://api.github.com/users/ammsa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ammsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ammsa/subscriptions", "type": "User", "url": "https://api.github.com/users/ammsa", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-05T05:04:18Z
2021-09-08T21:00:45Z
2015-11-09T09:25:49Z
NONE
resolved
Right now, the class `RequestsCookieJar` class methods only expose `name` and `value` attributes of its cookies. It will be useful to have a method that checks if any of the cookies in `RequestsCookieJar` are expired. Like `is_expired()` would return True if any cookies are expired otherwise false
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2857/reactions" }
https://api.github.com/repos/psf/requests/issues/2857/timeline
null
completed
null
null
false
[ "The `RequestsCookieJar` is a subclass of the standard library's [`cookiejar`](https://docs.python.org/2/library/cookielib.html#cookiejar-and-filecookiejar-objects), which means that it behaves exactly like that class. In particular, you can get the actual cookies themselves by iterating over it. This means the met...
https://api.github.com/repos/psf/requests/issues/2856
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2856/labels{/name}
https://api.github.com/repos/psf/requests/issues/2856/comments
https://api.github.com/repos/psf/requests/issues/2856/events
https://github.com/psf/requests/issues/2856
114,923,674
MDU6SXNzdWUxMTQ5MjM2NzQ=
2,856
Session level default timeout
{ "avatar_url": "https://avatars.githubusercontent.com/u/2048526?v=4", "events_url": "https://api.github.com/users/bodenr/events{/privacy}", "followers_url": "https://api.github.com/users/bodenr/followers", "following_url": "https://api.github.com/users/bodenr/following{/other_user}", "gists_url": "https://api.github.com/users/bodenr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bodenr", "id": 2048526, "login": "bodenr", "node_id": "MDQ6VXNlcjIwNDg1MjY=", "organizations_url": "https://api.github.com/users/bodenr/orgs", "received_events_url": "https://api.github.com/users/bodenr/received_events", "repos_url": "https://api.github.com/users/bodenr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bodenr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bodenr/subscriptions", "type": "User", "url": "https://api.github.com/users/bodenr", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-03T22:20:15Z
2021-09-08T21:00:51Z
2015-11-03T22:31:14Z
NONE
resolved
Best I can tell, today there is no way to set a default timeout at the Session level. That is, I want to create a session and give it a default timeout which should be used on any request() for the session if no timeout is given on the actual **kwargs of the request invocation. Example: ``` python session = requests.Session() session.default_timeout = 9 ... # default timeout of 9 is used session.get('http://thehost/good-stuff') # passed value of 3 is used session.get('http://thehost/good-stuff', timeout=3) ``` This would be very helpful for consumers wanting to pool request sessions above the requests lib layer using common kwargs for all requests in the session(s).
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/psf/requests/issues/2856/reactions" }
https://api.github.com/repos/psf/requests/issues/2856/timeline
null
completed
null
null
false
[ "Hi @bodenr thanks for using requests and stopping by with this feature request.\n\nThe library strives to make very specific divides in what is appropriate to add where. Timeout values being specified on a session do not make very much sense to the project although it's plausible for you to add some code to do thi...
https://api.github.com/repos/psf/requests/issues/2855
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2855/labels{/name}
https://api.github.com/repos/psf/requests/issues/2855/comments
https://api.github.com/repos/psf/requests/issues/2855/events
https://github.com/psf/requests/pull/2855
114,922,051
MDExOlB1bGxSZXF1ZXN0NDk2MTk3NDc=
2,855
Added Travis support with tox
{ "avatar_url": "https://avatars.githubusercontent.com/u/2029180?v=4", "events_url": "https://api.github.com/users/ZuluPro/events{/privacy}", "followers_url": "https://api.github.com/users/ZuluPro/followers", "following_url": "https://api.github.com/users/ZuluPro/following{/other_user}", "gists_url": "https://api.github.com/users/ZuluPro/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ZuluPro", "id": 2029180, "login": "ZuluPro", "node_id": "MDQ6VXNlcjIwMjkxODA=", "organizations_url": "https://api.github.com/users/ZuluPro/orgs", "received_events_url": "https://api.github.com/users/ZuluPro/received_events", "repos_url": "https://api.github.com/users/ZuluPro/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ZuluPro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZuluPro/subscriptions", "type": "User", "url": "https://api.github.com/users/ZuluPro", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-11-03T22:10:40Z
2021-09-08T06:00:48Z
2015-11-03T22:16:50Z
NONE
resolved
- Added `.travis.yml` I think it is useful for every contributors to have a online tool for test. I added Travis' badge in `README.rst`` Maybe you want to add Coveralls support in future ? - Added `tox.ini` I implement tox usage for simplify tests across Python versions. Maybe you want to add documentation tests in future ? There are two errors (don't come from my commit) and the build is failing... ``` ____________ RequestsTestCase.test_BASICAUTH_TUPLE_HTTP_200_OK_GET _____________ self = <test_requests.RequestsTestCase testMethod=test_BASICAUTH_TUPLE_HTTP_200_OK_GET> def test_BASICAUTH_TUPLE_HTTP_200_OK_GET(self): auth = ('user', 'pass') url = httpbin('basic-auth', 'user', 'pass') r = requests.get(url, auth=auth) assert r.status_code == 200 r = requests.get(url) > assert r.status_code == 401 E AssertionError: assert 200 == 401 E + where 200 = <Response [200]>.status_code test_requests.py:317: AssertionError _________ RequestsTestCase.test_auth_is_stripped_on_redirect_off_host __________ self = <test_requests.RequestsTestCase testMethod=test_auth_is_stripped_on_redirect_off_host> def test_auth_is_stripped_on_redirect_off_host(self): r = requests.get( httpbin('redirect-to'), params={'url': 'http://www.google.co.uk'}, auth=('user', 'pass'), ) assert r.history[0].request.headers['Authorization'] > assert not r.request.headers.get('Authorization', '') E AssertionError: assert not 'Basic dXNlcjpwYXNz' E + where 'Basic dXNlcjpwYXNz' = <bound method CaseInsensitiveDict.get of {'Authorization': 'Basic dXNlcjpwYXNz...ing': 'gzip, deflate', 'User-Agent': 'python-requests/2.8.1', 'Accept': '*/*'}>('Authorization', '') E + where <bound method CaseInsensitiveDict.get of {'Authorization': 'Basic dXNlcjpwYXNz...ing': 'gzip, deflate', 'User-Agent': 'python-requests/2.8.1', 'Accept': '*/*'}> = {'Authorization': 'Basic dXNlcjpwYXNz', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.8.1', 'Accept': '*/*'}.get E + where {'Authorization': 'Basic dXNlcjpwYXNz', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'python-requests/2.8.1', 'Accept': '*/*'} = <PreparedRequest [GET]>.headers E + where <PreparedRequest [GET]> = <Response [200]>.request ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/2029180?v=4", "events_url": "https://api.github.com/users/ZuluPro/events{/privacy}", "followers_url": "https://api.github.com/users/ZuluPro/followers", "following_url": "https://api.github.com/users/ZuluPro/following{/other_user}", "gists_url": "https://api.github.com/users/ZuluPro/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ZuluPro", "id": 2029180, "login": "ZuluPro", "node_id": "MDQ6VXNlcjIwMjkxODA=", "organizations_url": "https://api.github.com/users/ZuluPro/orgs", "received_events_url": "https://api.github.com/users/ZuluPro/received_events", "repos_url": "https://api.github.com/users/ZuluPro/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ZuluPro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZuluPro/subscriptions", "type": "User", "url": "https://api.github.com/users/ZuluPro", "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/2855/reactions" }
https://api.github.com/repos/psf/requests/issues/2855/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2855.diff", "html_url": "https://github.com/psf/requests/pull/2855", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2855.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2855" }
true
[ "Thanks @ZuluPro but we already use an external Jenkins server that we maintain. Travis proved to be unstable for our needs.\n\nCheers!\n" ]
https://api.github.com/repos/psf/requests/issues/2854
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2854/labels{/name}
https://api.github.com/repos/psf/requests/issues/2854/comments
https://api.github.com/repos/psf/requests/issues/2854/events
https://github.com/psf/requests/issues/2854
114,087,648
MDU6SXNzdWUxMTQwODc2NDg=
2,854
Bad default parameters to iter_content
{ "avatar_url": "https://avatars.githubusercontent.com/u/1865411?v=4", "events_url": "https://api.github.com/users/gibiansky/events{/privacy}", "followers_url": "https://api.github.com/users/gibiansky/followers", "following_url": "https://api.github.com/users/gibiansky/following{/other_user}", "gists_url": "https://api.github.com/users/gibiansky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gibiansky", "id": 1865411, "login": "gibiansky", "node_id": "MDQ6VXNlcjE4NjU0MTE=", "organizations_url": "https://api.github.com/users/gibiansky/orgs", "received_events_url": "https://api.github.com/users/gibiansky/received_events", "repos_url": "https://api.github.com/users/gibiansky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gibiansky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gibiansky/subscriptions", "type": "User", "url": "https://api.github.com/users/gibiansky", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-10-29T16:20:18Z
2021-09-08T21:00:52Z
2015-10-29T22:03:44Z
NONE
resolved
Apologies if this is a duplicate or not a bug – I ran into this recently and figured I should report it. `iter_content` takes a `chunk_size` argument, which defaults to 1. Various code snippets on the internet call `request.iter_content()`. This is incredibly inefficient, because it is using a buffer size of 1 _byte_. I think `requests` should either a) set `chunk_size` to something more reasonable, like 2048 or 4096, or b) make `chunk_size` a required argument. (Solution a is more palatable since it's backwards compatible.)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2854/reactions" }
https://api.github.com/repos/psf/requests/issues/2854/timeline
null
completed
null
null
false
[ "See https://github.com/kennethreitz/requests/issues/844 please\n", "Yeah, this is an outstanding problem that we haven't gotten around to resolving yet. However, it's a dupe of #844.\n" ]
https://api.github.com/repos/psf/requests/issues/2853
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2853/labels{/name}
https://api.github.com/repos/psf/requests/issues/2853/comments
https://api.github.com/repos/psf/requests/issues/2853/events
https://github.com/psf/requests/issues/2853
113,921,079
MDU6SXNzdWUxMTM5MjEwNzk=
2,853
Problem with verbose logging
{ "avatar_url": "https://avatars.githubusercontent.com/u/6306068?v=4", "events_url": "https://api.github.com/users/troy-perkins/events{/privacy}", "followers_url": "https://api.github.com/users/troy-perkins/followers", "following_url": "https://api.github.com/users/troy-perkins/following{/other_user}", "gists_url": "https://api.github.com/users/troy-perkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/troy-perkins", "id": 6306068, "login": "troy-perkins", "node_id": "MDQ6VXNlcjYzMDYwNjg=", "organizations_url": "https://api.github.com/users/troy-perkins/orgs", "received_events_url": "https://api.github.com/users/troy-perkins/received_events", "repos_url": "https://api.github.com/users/troy-perkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/troy-perkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/troy-perkins/subscriptions", "type": "User", "url": "https://api.github.com/users/troy-perkins", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-10-28T21:01:24Z
2021-09-08T21:00:52Z
2015-10-28T21:03:45Z
NONE
resolved
I am trying to enable verbose logging with my request string and I am getting the following error: "request() got an unexpected keyword argument config" I have tried searching but have not found a fix for this and I followed the following directions: > > > my_config = {'verbose': sys.stderr} > > > requests.get('http://httpbin.org/headers', config=my_config) > > > 2011-08-17T03:04:23.380175 GET http://httpbin.org/headers > > > <Response [200]> Thanks
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2853/reactions" }
https://api.github.com/repos/psf/requests/issues/2853/timeline
null
completed
null
null
false
[ "Please consult our documentation: The section immediately above [the Licensing section](http://docs.python-requests.org/en/latest/api/?highlight=log#licensing) explains how to enable verbose logging in versions of requests 1.0.0 and greater.\n", "Also in the future, please ask all questions on [StackOverflow](ht...
https://api.github.com/repos/psf/requests/issues/2852
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2852/labels{/name}
https://api.github.com/repos/psf/requests/issues/2852/comments
https://api.github.com/repos/psf/requests/issues/2852/events
https://github.com/psf/requests/issues/2852
113,901,630
MDU6SXNzdWUxMTM5MDE2MzA=
2,852
OpenSSL.SSL.SysCallError: (10054, 'WSAECONNRESET')
{ "avatar_url": "https://avatars.githubusercontent.com/u/325813?v=4", "events_url": "https://api.github.com/users/steveoh/events{/privacy}", "followers_url": "https://api.github.com/users/steveoh/followers", "following_url": "https://api.github.com/users/steveoh/following{/other_user}", "gists_url": "https://api.github.com/users/steveoh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/steveoh", "id": 325813, "login": "steveoh", "node_id": "MDQ6VXNlcjMyNTgxMw==", "organizations_url": "https://api.github.com/users/steveoh/orgs", "received_events_url": "https://api.github.com/users/steveoh/received_events", "repos_url": "https://api.github.com/users/steveoh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/steveoh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/steveoh/subscriptions", "type": "User", "url": "https://api.github.com/users/steveoh", "user_view_type": "public" }
[]
closed
true
null
[]
null
11
2015-10-28T19:16:24Z
2021-09-08T21:00:52Z
2015-10-29T00:17:41Z
NONE
resolved
This error is being thrown after making around 1500 successful quests to an api of 3200 total. The api returns a 204 of No content and I check for that status code and add it to another list to retry later. What are the possible reasons for r = requests.put("https://my.api/update") might toss this error?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2852/reactions" }
https://api.github.com/repos/psf/requests/issues/2852/timeline
null
completed
null
null
false
[ "I suspect this will be fixed when https://github.com/shazow/urllib3/pull/729#issuecomment-151929787 is merged and urllib3 is updated for the next requests release.\n", "```\nTraceback (most recent call last):\n File \"..\\requests-2.8.1-py2.7.egg\\requests\\api.py\", line 122, in put\n return request('put', ...
https://api.github.com/repos/psf/requests/issues/2851
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2851/labels{/name}
https://api.github.com/repos/psf/requests/issues/2851/comments
https://api.github.com/repos/psf/requests/issues/2851/events
https://github.com/psf/requests/issues/2851
113,559,868
MDU6SXNzdWUxMTM1NTk4Njg=
2,851
Documentation Problem?
{ "avatar_url": "https://avatars.githubusercontent.com/u/7996484?v=4", "events_url": "https://api.github.com/users/djchou/events{/privacy}", "followers_url": "https://api.github.com/users/djchou/followers", "following_url": "https://api.github.com/users/djchou/following{/other_user}", "gists_url": "https://api.github.com/users/djchou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/djchou", "id": 7996484, "login": "djchou", "node_id": "MDQ6VXNlcjc5OTY0ODQ=", "organizations_url": "https://api.github.com/users/djchou/orgs", "received_events_url": "https://api.github.com/users/djchou/received_events", "repos_url": "https://api.github.com/users/djchou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/djchou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/djchou/subscriptions", "type": "User", "url": "https://api.github.com/users/djchou", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-10-27T11:13:53Z
2021-09-08T21:00:53Z
2015-10-27T12:53:10Z
NONE
resolved
When I run the following code from requests documentation, I get a 401 response. import requests r = requests.get('https://api.github.com', auth=('user', 'pass')) Given that this is the quick start code for requests, is there something that needs to be updated?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2851/reactions" }
https://api.github.com/repos/psf/requests/issues/2851/timeline
null
completed
null
null
false
[ "@djchou In this context, `user` and `pass` are placeholder strings to be replaced by your own Github username and password.\n", "Yes, I replaced them with my user pass and still had the same result. \n\n> On Oct 27, 2015, at 5:53 AM, Cory Benfield notifications@github.com wrote:\n> \n> @djchou In this context, u...
https://api.github.com/repos/psf/requests/issues/2850
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2850/labels{/name}
https://api.github.com/repos/psf/requests/issues/2850/comments
https://api.github.com/repos/psf/requests/issues/2850/events
https://github.com/psf/requests/issues/2850
113,456,222
MDU6SXNzdWUxMTM0NTYyMjI=
2,850
Connection reset by peer problem.
{ "avatar_url": "https://avatars.githubusercontent.com/u/459869?v=4", "events_url": "https://api.github.com/users/pcsysen/events{/privacy}", "followers_url": "https://api.github.com/users/pcsysen/followers", "following_url": "https://api.github.com/users/pcsysen/following{/other_user}", "gists_url": "https://api.github.com/users/pcsysen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pcsysen", "id": 459869, "login": "pcsysen", "node_id": "MDQ6VXNlcjQ1OTg2OQ==", "organizations_url": "https://api.github.com/users/pcsysen/orgs", "received_events_url": "https://api.github.com/users/pcsysen/received_events", "repos_url": "https://api.github.com/users/pcsysen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pcsysen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pcsysen/subscriptions", "type": "User", "url": "https://api.github.com/users/pcsysen", "user_view_type": "public" }
[]
closed
true
null
[]
null
20
2015-10-26T21:34:56Z
2021-09-08T17:05:20Z
2015-11-09T09:26:04Z
NONE
resolved
Hi, we are using slumber to setup a smoke test against our server(django + uwsgi). We started to see this "connection reset by peer" error after we added the "content-length" in the response header. It only happens occasionally. However it never happens when we don't include content-length in the response header, at least based on our experiences. I see some similar questions about they all seem to related to ssl. We are just using http. Could anyone help? Thanks. url: POST to http://127.0.0.1:8080/api/v1.... ``` Traceback (most recent call last): File "./smoke_test_driver.py", line 936, _pre_run_apis(host, cpe_mac, api_prefix, webpa_gateway, current_environment) File "./smoke_test_driver.py", line 790, in _pre_run_apis cpe.device_class.put({'xpc_model_class': device_class}) File "/usr/local/lib/python2.7/site-packages/slumber/__init__.py", line 175, in put resp = self._request("PUT", data=data, files=files, params=kwargs) File "/usr/local/lib/python2.7/site-packages/slumber/__init__.py", line 97, in _request resp = self._store["session"].request(method, url, data=data, params=params, files=files, headers=headers) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer')) ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2850/reactions" }
https://api.github.com/repos/psf/requests/issues/2850/timeline
null
completed
null
null
false
[ "Python will calculate the content-length for you. It's very likely your content-length is incorrect and that's causing your issue. Without more details about how to reproduce this, version information, or example code causing this, I'm very tempted to close this outright.\n", "in our settings.py, we have\n\n```\...
https://api.github.com/repos/psf/requests/issues/2849
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2849/labels{/name}
https://api.github.com/repos/psf/requests/issues/2849/comments
https://api.github.com/repos/psf/requests/issues/2849/events
https://github.com/psf/requests/pull/2849
113,384,052
MDExOlB1bGxSZXF1ZXN0NDg3NTY0MDE=
2,849
Add 511 Network Authentication Required status code
{ "avatar_url": "https://avatars.githubusercontent.com/u/1740816?v=4", "events_url": "https://api.github.com/users/annp89/events{/privacy}", "followers_url": "https://api.github.com/users/annp89/followers", "following_url": "https://api.github.com/users/annp89/following{/other_user}", "gists_url": "https://api.github.com/users/annp89/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/annp89", "id": 1740816, "login": "annp89", "node_id": "MDQ6VXNlcjE3NDA4MTY=", "organizations_url": "https://api.github.com/users/annp89/orgs", "received_events_url": "https://api.github.com/users/annp89/received_events", "repos_url": "https://api.github.com/users/annp89/repos", "site_admin": false, "starred_url": "https://api.github.com/users/annp89/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/annp89/subscriptions", "type": "User", "url": "https://api.github.com/users/annp89", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-26T15:43:45Z
2021-09-08T06:00:49Z
2015-10-26T15:58:01Z
NONE
resolved
Addresses issue: https://github.com/kennethreitz/requests/issues/2847
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2849/reactions" }
https://api.github.com/repos/psf/requests/issues/2849/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2849.diff", "html_url": "https://github.com/psf/requests/pull/2849", "merged_at": "2015-10-26T15:58:01Z", "patch_url": "https://github.com/psf/requests/pull/2849.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2849" }
true
[ "Thanks @annp89 !\n" ]
https://api.github.com/repos/psf/requests/issues/2848
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2848/labels{/name}
https://api.github.com/repos/psf/requests/issues/2848/comments
https://api.github.com/repos/psf/requests/issues/2848/events
https://github.com/psf/requests/issues/2848
113,382,287
MDU6SXNzdWUxMTMzODIyODc=
2,848
urllib3 SSL errors in 2.8.x
{ "avatar_url": "https://avatars.githubusercontent.com/u/188962?v=4", "events_url": "https://api.github.com/users/flupke/events{/privacy}", "followers_url": "https://api.github.com/users/flupke/followers", "following_url": "https://api.github.com/users/flupke/following{/other_user}", "gists_url": "https://api.github.com/users/flupke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flupke", "id": 188962, "login": "flupke", "node_id": "MDQ6VXNlcjE4ODk2Mg==", "organizations_url": "https://api.github.com/users/flupke/orgs", "received_events_url": "https://api.github.com/users/flupke/received_events", "repos_url": "https://api.github.com/users/flupke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flupke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flupke/subscriptions", "type": "User", "url": "https://api.github.com/users/flupke", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-26T15:35:15Z
2021-09-08T21:00:53Z
2015-10-26T20:48:37Z
NONE
resolved
We recently tried to upgrade to requests 2.8.1 and have been touched by this urllib3 issue: https://github.com/shazow/urllib3/issues/717 Downgrading to 2.7.0 resolves it.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2848/reactions" }
https://api.github.com/repos/psf/requests/issues/2848/timeline
null
completed
null
null
false
[ "@flupke The urllib3 and requests projects work together closely: we're entirely aware of the bug that you're encountering, but we won't be able to fix it until a new urllib3 release comes out.\n" ]
https://api.github.com/repos/psf/requests/issues/2847
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2847/labels{/name}
https://api.github.com/repos/psf/requests/issues/2847/comments
https://api.github.com/repos/psf/requests/issues/2847/events
https://github.com/psf/requests/issues/2847
113,300,514
MDU6SXNzdWUxMTMzMDA1MTQ=
2,847
Add 511 Network Authentication Required status code for completeness
{ "avatar_url": "https://avatars.githubusercontent.com/u/1740816?v=4", "events_url": "https://api.github.com/users/annp89/events{/privacy}", "followers_url": "https://api.github.com/users/annp89/followers", "following_url": "https://api.github.com/users/annp89/following{/other_user}", "gists_url": "https://api.github.com/users/annp89/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/annp89", "id": 1740816, "login": "annp89", "node_id": "MDQ6VXNlcjE3NDA4MTY=", "organizations_url": "https://api.github.com/users/annp89/orgs", "received_events_url": "https://api.github.com/users/annp89/received_events", "repos_url": "https://api.github.com/users/annp89/repos", "site_admin": false, "starred_url": "https://api.github.com/users/annp89/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/annp89/subscriptions", "type": "User", "url": "https://api.github.com/users/annp89", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-10-26T07:37:48Z
2021-09-08T21:00:53Z
2015-10-26T15:58:14Z
NONE
resolved
Based on http://tools.ietf.org/html/rfc6585, looks like all the other status codes mentioned in that document are included except for 511. Any specific reason/concern? I'd be happy to open a pull request with the following additional line if it looks reasonable to you. ``` 511: ('network_authentication_required', 'network_auth', 'network_authentication'), ```
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2847/reactions" }
https://api.github.com/repos/psf/requests/issues/2847/timeline
null
completed
null
null
false
[ "Please do @annp89. I think it was just an error code that we happened to miss. I don't think there was any reason or concern we had with adding it.\n\nCheers!\n", "Awesome! Will do shortly :)\n", "Closed by #2849 \n" ]
https://api.github.com/repos/psf/requests/issues/2846
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2846/labels{/name}
https://api.github.com/repos/psf/requests/issues/2846/comments
https://api.github.com/repos/psf/requests/issues/2846/events
https://github.com/psf/requests/issues/2846
113,267,959
MDU6SXNzdWUxMTMyNjc5NTk=
2,846
HTTP PROXY password contains '#' failed to connect
{ "avatar_url": "https://avatars.githubusercontent.com/u/3996876?v=4", "events_url": "https://api.github.com/users/bonfy/events{/privacy}", "followers_url": "https://api.github.com/users/bonfy/followers", "following_url": "https://api.github.com/users/bonfy/following{/other_user}", "gists_url": "https://api.github.com/users/bonfy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bonfy", "id": 3996876, "login": "bonfy", "node_id": "MDQ6VXNlcjM5OTY4NzY=", "organizations_url": "https://api.github.com/users/bonfy/orgs", "received_events_url": "https://api.github.com/users/bonfy/received_events", "repos_url": "https://api.github.com/users/bonfy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bonfy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bonfy/subscriptions", "type": "User", "url": "https://api.github.com/users/bonfy", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-10-26T01:15:04Z
2021-09-08T21:00:54Z
2015-10-26T02:01:59Z
NONE
resolved
``` python import requests PROXIES = { 'http':'http://{usr}:{pwd}@proxy:port'.format(usr = 'XXX',pwd = 'XXX#XXX'), } url = 'http://www.sina.com' r = requests.get(url, proxies = PROXIES) print r.text ``` with error : Traceback (most recent call last): File "autohome.py", line 11, in <module> r = requests.get(url, proxies = PROXIES) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\api.py", line 55, in get return request('get', url, *_kwargs) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\api.py", line 44, in request return session.request(method=method, url=url, *_kwargs) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\sessions .py", line 383, in request resp = self.send(prep, *_send_kwargs) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\sessions .py", line 486, in send r = adapter.send(request, *_kwargs) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\adapters .py", line 305, in send conn = self.get_connection(request.url, proxies) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\adapters .py", line 215, in get_connection block=self._pool_block) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\packages \urllib3\poolmanager.py", line 258, in proxy_from_url return ProxyManager(proxy_url=url, **kw) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\packages \urllib3\poolmanager.py", line 207, in __init__ proxy = parse_url(proxy_url) File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\packages \urllib3\util.py", line 397, in parse_url raise LocationParseError("Failed to parse: %s" % url) requests.packages.urllib3.exceptions.LocationParseError: Failed to parse: Failed to parse: XXX:XXX the password after '#' missed and can not connect to the proxy server
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2846/reactions" }
https://api.github.com/repos/psf/requests/issues/2846/timeline
null
completed
null
null
false
[ "Since the proxy URL needs to be a valid URL, you'll need to URL encode any special characters in the credentials yourself before you put them in an URL - otherwise, the `#` will be interpreted as a fragment identifier, in this case by `urllib3`'s [`parse_url()`](https://github.com/kennethreitz/requests/blob/v2.2.1...
https://api.github.com/repos/psf/requests/issues/2845
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2845/labels{/name}
https://api.github.com/repos/psf/requests/issues/2845/comments
https://api.github.com/repos/psf/requests/issues/2845/events
https://github.com/psf/requests/pull/2845
113,009,220
MDExOlB1bGxSZXF1ZXN0NDg1NzM2MTE=
2,845
Fix issue #2844
{ "avatar_url": "https://avatars.githubusercontent.com/u/1894766?v=4", "events_url": "https://api.github.com/users/akhomchenko/events{/privacy}", "followers_url": "https://api.github.com/users/akhomchenko/followers", "following_url": "https://api.github.com/users/akhomchenko/following{/other_user}", "gists_url": "https://api.github.com/users/akhomchenko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/akhomchenko", "id": 1894766, "login": "akhomchenko", "node_id": "MDQ6VXNlcjE4OTQ3NjY=", "organizations_url": "https://api.github.com/users/akhomchenko/orgs", "received_events_url": "https://api.github.com/users/akhomchenko/received_events", "repos_url": "https://api.github.com/users/akhomchenko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/akhomchenko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akhomchenko/subscriptions", "type": "User", "url": "https://api.github.com/users/akhomchenko", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-23T12:23:19Z
2021-09-08T06:00:50Z
2015-10-23T12:24:36Z
CONTRIBUTOR
resolved
Closes https://github.com/kennethreitz/requests/issues/2844
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2845/reactions" }
https://api.github.com/repos/psf/requests/issues/2845/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2845.diff", "html_url": "https://github.com/psf/requests/pull/2845", "merged_at": "2015-10-23T12:24:36Z", "patch_url": "https://github.com/psf/requests/pull/2845.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2845" }
true
[ "\\o/ Looks good to me! :cake: :sparkles:\n" ]
https://api.github.com/repos/psf/requests/issues/2844
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2844/labels{/name}
https://api.github.com/repos/psf/requests/issues/2844/comments
https://api.github.com/repos/psf/requests/issues/2844/events
https://github.com/psf/requests/issues/2844
113,001,924
MDU6SXNzdWUxMTMwMDE5MjQ=
2,844
_encode_params return bytes that break urlencode
{ "avatar_url": "https://avatars.githubusercontent.com/u/1894766?v=4", "events_url": "https://api.github.com/users/akhomchenko/events{/privacy}", "followers_url": "https://api.github.com/users/akhomchenko/followers", "following_url": "https://api.github.com/users/akhomchenko/following{/other_user}", "gists_url": "https://api.github.com/users/akhomchenko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/akhomchenko", "id": 1894766, "login": "akhomchenko", "node_id": "MDQ6VXNlcjE4OTQ3NjY=", "organizations_url": "https://api.github.com/users/akhomchenko/orgs", "received_events_url": "https://api.github.com/users/akhomchenko/received_events", "repos_url": "https://api.github.com/users/akhomchenko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/akhomchenko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akhomchenko/subscriptions", "type": "User", "url": "https://api.github.com/users/akhomchenko", "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
[]
{ "closed_at": "2016-01-05T17:14:26Z", "closed_issues": 2, "created_at": "2015-10-12T10:32:11Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }, "description": "", "due_on": null, "html_url": "https://github.com/psf/requests/milestone/26", "id": 1350559, "labels_url": "https://api.github.com/repos/psf/requests/milestones/26/labels", "node_id": "MDk6TWlsZXN0b25lMTM1MDU1OQ==", "number": 26, "open_issues": 0, "state": "closed", "title": "2.9.0", "updated_at": "2016-01-05T17:14:26Z", "url": "https://api.github.com/repos/psf/requests/milestones/26" }
8
2015-10-23T11:27:22Z
2021-09-08T20:00:55Z
2015-10-23T12:24:36Z
CONTRIBUTOR
resolved
Simple example: ``` import requests r = requests.get('http://python.org', params=b'test=foo') print(r.status_code) ``` Trace: ``` Traceback (most recent call last): ... skip ... url = requote_uri(urlunparse([scheme, netloc, path, None, query, fragment])) File "C:\Python35\lib\urllib\parse.py", line 383, in urlunparse _coerce_args(*components)) File "C:\Python35\lib\urllib\parse.py", line 111, in _coerce_args raise TypeError("Cannot mix str and non-str arguments") TypeError: Cannot mix str and non-str arguments ``` I know, that this one is a bad use case, but API allows us to do so. Should we do something? P.S. Python 3.4/3.5 on win 8.1 x64
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2844/reactions" }
https://api.github.com/repos/psf/requests/issues/2844/timeline
null
completed
null
null
false
[ "I think what we need to do here is to change `encode_params` to make sure that it calls `to_native_string` on its argument before returning it. This seems like a bug we can fix pretty swiftly, and is well suited to a new contributor, so I'll mark this as `Contributor Friendly`.\n", "This fix seems completely bro...
https://api.github.com/repos/psf/requests/issues/2843
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2843/labels{/name}
https://api.github.com/repos/psf/requests/issues/2843/comments
https://api.github.com/repos/psf/requests/issues/2843/events
https://github.com/psf/requests/pull/2843
112,988,165
MDExOlB1bGxSZXF1ZXN0NDg1NjA0MjU=
2,843
Timeout used by `resolve_redirects` generator can now depend on URL
{ "avatar_url": "https://avatars.githubusercontent.com/u/368123?v=4", "events_url": "https://api.github.com/users/tristan0x/events{/privacy}", "followers_url": "https://api.github.com/users/tristan0x/followers", "following_url": "https://api.github.com/users/tristan0x/following{/other_user}", "gists_url": "https://api.github.com/users/tristan0x/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tristan0x", "id": 368123, "login": "tristan0x", "node_id": "MDQ6VXNlcjM2ODEyMw==", "organizations_url": "https://api.github.com/users/tristan0x/orgs", "received_events_url": "https://api.github.com/users/tristan0x/received_events", "repos_url": "https://api.github.com/users/tristan0x/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tristan0x/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tristan0x/subscriptions", "type": "User", "url": "https://api.github.com/users/tristan0x", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2015-10-23T09:48:32Z
2021-09-08T06:00:51Z
2015-10-23T10:24:13Z
NONE
resolved
`timeout` parameter given to the `Session::resolve_redirects` member method can be a `callable` object taking the URL in parameter. It allows you to specify different timeout values for URLs encountered by the generator.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2843/reactions" }
https://api.github.com/repos/psf/requests/issues/2843/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2843.diff", "html_url": "https://github.com/psf/requests/pull/2843", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2843.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2843" }
true
[ "How is it expected that you'd use this? By setting `allow_redirects=False` and calling `resolve_redirects` manually?\n", "Yes exactly!\n", "Ok. =)\n\nSo, generally speaking, we don't allow the parameters to `resolve_redirects` to be different to those that you can pass to `requests.*`: it just leads to too muc...
https://api.github.com/repos/psf/requests/issues/2842
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2842/labels{/name}
https://api.github.com/repos/psf/requests/issues/2842/comments
https://api.github.com/repos/psf/requests/issues/2842/events
https://github.com/psf/requests/issues/2842
112,891,328
MDU6SXNzdWUxMTI4OTEzMjg=
2,842
PEP8 compliance
{ "avatar_url": "https://avatars.githubusercontent.com/u/3768896?v=4", "events_url": "https://api.github.com/users/pathcl/events{/privacy}", "followers_url": "https://api.github.com/users/pathcl/followers", "following_url": "https://api.github.com/users/pathcl/following{/other_user}", "gists_url": "https://api.github.com/users/pathcl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pathcl", "id": 3768896, "login": "pathcl", "node_id": "MDQ6VXNlcjM3Njg4OTY=", "organizations_url": "https://api.github.com/users/pathcl/orgs", "received_events_url": "https://api.github.com/users/pathcl/received_events", "repos_url": "https://api.github.com/users/pathcl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pathcl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pathcl/subscriptions", "type": "User", "url": "https://api.github.com/users/pathcl", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-22T21:04:31Z
2021-09-08T21:00:56Z
2015-10-22T21:08:20Z
NONE
resolved
Hello, I've just forked requests and tried flake8 on it. 1 E122 continuation line missing indentation or outdented 1 E127 continuation line over-indented for visual indent 1 E129 visually indented line with same indent as next logical line 1 E401 multiple imports on one line 1 E713 test for membership should be 'not in' 1 E714 test for object identity should be 'is not' 1 F402 import '_' from line 13 shadowed by loop variable 1 W391 blank line at end of file 2 E121 continuation line under-indented for hanging indent 2 E225 missing whitespace around operator 2 F841 local variable 'url' is assigned to but never used 3 E125 continuation line with same indent as next logical line 3 E221 multiple spaces before operator 3 E301 expected 1 blank line, found 0 4 E126 continuation line over-indented for hanging indent 10 E303 too many blank lines (3) 10 W291 trailing whitespace 11 E131 continuation line unaligned for hanging indent 16 F821 undefined name 'unicode' 20 E251 unexpected spaces around keyword / parameter equals 20 E302 expected 2 blank lines, found 1 39 E128 continuation line under-indented for visual indent 65 E262 inline comment should start with '# ' 84 F401 'urllib3' imported but unused 85 E261 at least two spaces before inline comment 111 E265 block comment should start with '# ' 257 E501 line too long (80 > 79 characters) 2651 E231 missing whitespace after ',' Is this relevant? I think it should be available some linting check before doing setup.py install
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2842/reactions" }
https://api.github.com/repos/psf/requests/issues/2842/timeline
null
completed
null
null
false
[ "Please check old issues before opening new ones.\n- https://github.com/kennethreitz/requests/issues/1899\n- https://github.com/kennethreitz/requests/pull/2298\n- https://github.com/kennethreitz/requests/pull/1964\n\nThis project does not follow PEP-0008.\n" ]
https://api.github.com/repos/psf/requests/issues/2841
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2841/labels{/name}
https://api.github.com/repos/psf/requests/issues/2841/comments
https://api.github.com/repos/psf/requests/issues/2841/events
https://github.com/psf/requests/issues/2841
112,567,994
MDU6SXNzdWUxMTI1Njc5OTQ=
2,841
test_connection_error_invalid_domain and test_connection_error_invalid_port fail with proxies
{ "avatar_url": "https://avatars.githubusercontent.com/u/1009685?v=4", "events_url": "https://api.github.com/users/frispete/events{/privacy}", "followers_url": "https://api.github.com/users/frispete/followers", "following_url": "https://api.github.com/users/frispete/following{/other_user}", "gists_url": "https://api.github.com/users/frispete/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/frispete", "id": 1009685, "login": "frispete", "node_id": "MDQ6VXNlcjEwMDk2ODU=", "organizations_url": "https://api.github.com/users/frispete/orgs", "received_events_url": "https://api.github.com/users/frispete/received_events", "repos_url": "https://api.github.com/users/frispete/repos", "site_admin": false, "starred_url": "https://api.github.com/users/frispete/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frispete/subscriptions", "type": "User", "url": "https://api.github.com/users/frispete", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2015-10-21T11:40:16Z
2021-09-08T12:01:08Z
2017-01-24T18:26:05Z
NONE
resolved
testing should handle environments with proxies consciously, otherwise these tests fail: ``` ====================================================================== ERROR: test_connection_error_invalid_domain (__main__.RequestsTestCase) Connecting to an unknown domain should raise a ConnectionError ---------------------------------------------------------------------- Traceback (most recent call last): File "test_requests.py", line 322, in test_connection_error_invalid_domain requests.get("http://doesnotexist.google.com") File "/usr/lib/python2.7/site-packages/_pytest/python.py", line 1307, in __exit__ pytest.fail("DID NOT RAISE") File "/usr/lib/python2.7/site-packages/_pytest/runner.py", line 478, in fail raise Failed(msg=msg, pytrace=pytrace) Failed: DID NOT RAISE ====================================================================== ERROR: test_connection_error_invalid_port (__main__.RequestsTestCase) Connecting to an invalid port should raise a ConnectionError ---------------------------------------------------------------------- Traceback (most recent call last): File "test_requests.py", line 327, in test_connection_error_invalid_port requests.get("http://httpbin.org:1", timeout=1) File "/usr/lib/python2.7/site-packages/_pytest/python.py", line 1307, in __exit__ pytest.fail("DID NOT RAISE") File "/usr/lib/python2.7/site-packages/_pytest/runner.py", line 478, in fail raise Failed(msg=msg, pytrace=pytrace) Failed: DID NOT RAISE ``` Environment: openSUSE 13.2/x86_64, squid 3 proxy
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2841/reactions" }
https://api.github.com/repos/psf/requests/issues/2841/timeline
null
completed
null
null
false
[ "Yeah, this is probably true. I suspect we'll fix it by moving to an entirely offline test suite though.\n", "Neither of these tests exist anymore, so I think this can be closed out." ]
https://api.github.com/repos/psf/requests/issues/2840
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2840/labels{/name}
https://api.github.com/repos/psf/requests/issues/2840/comments
https://api.github.com/repos/psf/requests/issues/2840/events
https://github.com/psf/requests/issues/2840
112,567,289
MDU6SXNzdWUxMTI1NjcyODk=
2,840
test_response_iter_lines_reentrant failing with python 2.7 and urllib 1.12
{ "avatar_url": "https://avatars.githubusercontent.com/u/1009685?v=4", "events_url": "https://api.github.com/users/frispete/events{/privacy}", "followers_url": "https://api.github.com/users/frispete/followers", "following_url": "https://api.github.com/users/frispete/following{/other_user}", "gists_url": "https://api.github.com/users/frispete/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/frispete", "id": 1009685, "login": "frispete", "node_id": "MDQ6VXNlcjEwMDk2ODU=", "organizations_url": "https://api.github.com/users/frispete/orgs", "received_events_url": "https://api.github.com/users/frispete/received_events", "repos_url": "https://api.github.com/users/frispete/repos", "site_admin": false, "starred_url": "https://api.github.com/users/frispete/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frispete/subscriptions", "type": "User", "url": "https://api.github.com/users/frispete", "user_view_type": "public" }
[]
closed
true
null
[]
null
19
2015-10-21T11:35:53Z
2021-09-08T21:00:51Z
2015-10-21T11:37:40Z
NONE
resolved
FAIL: test_response_iter_lines_reentrant (**main**.RequestsTestCase) ## Response.iter_lines() is not reentrant safe Traceback (most recent call last): File "test_requests.py", line 1127, in test_response_iter_lines_reentrant assert len(list(r.iter_lines())) == 3 AssertionError --- Ran 150 tests in 43.451s
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2840/reactions" }
https://api.github.com/repos/psf/requests/issues/2840/timeline
null
completed
null
null
false
[ "@frispete That test is supposed to fail: it is marked `pytest.xfail`. You need to run the tests using py.test.\n", "Hmm, PyPI hosts a py.test version 0.0, stating to use pytest for installation, and that is what I use: pytest 2.8.2. Otherwise the test suite wouldn't run at all.\n", "@frispete How did you run t...
https://api.github.com/repos/psf/requests/issues/2839
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2839/labels{/name}
https://api.github.com/repos/psf/requests/issues/2839/comments
https://api.github.com/repos/psf/requests/issues/2839/events
https://github.com/psf/requests/pull/2839
112,534,727
MDExOlB1bGxSZXF1ZXN0NDgzMDA4MzI=
2,839
Make sure we build environment settings properly.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }
[]
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}...
{ "closed_at": null, "closed_issues": 29, "created_at": "2013-11-17T11:29:34Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "user_view_type": "public" }, "description": null, "due_on": null, "html_url": "https://github.com/psf/requests/milestone/20", "id": 487518, "labels_url": "https://api.github.com/repos/psf/requests/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lNDg3NTE4", "number": 20, "open_issues": 12, "state": "open", "title": "3.0.0", "updated_at": "2024-05-19T18:43:00Z", "url": "https://api.github.com/repos/psf/requests/milestones/20" }
3
2015-10-21T08:24:30Z
2021-09-08T04:01:06Z
2016-04-15T21:38:50Z
MEMBER
resolved
Resolves #2836. This actually requires a slightly tricky re-ordering here: the proxies work needs to happen separately to make sure keys set to `None` DTRT.
{ "avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "followers_url": "https://api.github.com/users/sigmavirus24/followers", "following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sigmavirus24", "id": 240830, "login": "sigmavirus24", "node_id": "MDQ6VXNlcjI0MDgzMA==", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "type": "User", "url": "https://api.github.com/users/sigmavirus24", "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/2839/reactions" }
https://api.github.com/repos/psf/requests/issues/2839/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2839.diff", "html_url": "https://github.com/psf/requests/pull/2839", "merged_at": "2016-04-15T21:38:50Z", "patch_url": "https://github.com/psf/requests/pull/2839.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2839" }
true
[ "This looks like :cake: to me!\n", "Rebase. Also appears as though it should have been merged six months ago. \n", "Rebase complete.\n" ]
https://api.github.com/repos/psf/requests/issues/2838
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2838/labels{/name}
https://api.github.com/repos/psf/requests/issues/2838/comments
https://api.github.com/repos/psf/requests/issues/2838/events
https://github.com/psf/requests/issues/2838
112,356,995
MDU6SXNzdWUxMTIzNTY5OTU=
2,838
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 52-55: ordinal not in range(256)
{ "avatar_url": "https://avatars.githubusercontent.com/u/9416005?v=4", "events_url": "https://api.github.com/users/DeadNumbers/events{/privacy}", "followers_url": "https://api.github.com/users/DeadNumbers/followers", "following_url": "https://api.github.com/users/DeadNumbers/following{/other_user}", "gists_url": "https://api.github.com/users/DeadNumbers/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DeadNumbers", "id": 9416005, "login": "DeadNumbers", "node_id": "MDQ6VXNlcjk0MTYwMDU=", "organizations_url": "https://api.github.com/users/DeadNumbers/orgs", "received_events_url": "https://api.github.com/users/DeadNumbers/received_events", "repos_url": "https://api.github.com/users/DeadNumbers/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DeadNumbers/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DeadNumbers/subscriptions", "type": "User", "url": "https://api.github.com/users/DeadNumbers", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-20T12:26:47Z
2021-09-08T21:00:57Z
2015-10-20T12:28:03Z
NONE
resolved
Requests 2.8.1 Python 3.5.0 (default, Sep 20 2015, 11:56:03) [GCC 5.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. import requests r = requests.post('https://2ch.hk/makaba/posting.fcgi', data='json=1&task=post&board=test&thread=80980710&comment=тест') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.5/site-packages/requests/api.py", line 109, in post return request('post', url, data=data, json=json, *_kwargs) File "/usr/lib/python3.5/site-packages/requests/api.py", line 50, in request response = session.request(method=method, url=url, *_kwargs) File "/usr/lib/python3.5/site-packages/requests/sessions.py", line 468, in request resp = self.send(prep, *_send_kwargs) File "/usr/lib/python3.5/site-packages/requests/sessions.py", line 576, in send r = adapter.send(request, *_kwargs) File "/usr/lib/python3.5/site-packages/requests/adapters.py", line 370, in send timeout=timeout File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen body=body, headers=headers) File "/usr/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 353, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.5/http/client.py", line 1083, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.5/http/client.py", line 1127, in _send_request body = body.encode('iso-8859-1') UnicodeEncodeError: 'latin-1' codec can't encode characters in position 52-55: ordinal not in range(256)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2838/reactions" }
https://api.github.com/repos/psf/requests/issues/2838/timeline
null
completed
null
null
false
[ "Please do not attempt to send body data in unicode strings. You need to encode that before you send it: `data='json=1&task=post&board=test&thread=80980710&comment=тест'.encode('utf-8')`\n" ]
https://api.github.com/repos/psf/requests/issues/2837
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2837/labels{/name}
https://api.github.com/repos/psf/requests/issues/2837/comments
https://api.github.com/repos/psf/requests/issues/2837/events
https://github.com/psf/requests/issues/2837
112,253,265
MDU6SXNzdWUxMTIyNTMyNjU=
2,837
Insecure Platform Warning
{ "avatar_url": "https://avatars.githubusercontent.com/u/3393794?v=4", "events_url": "https://api.github.com/users/ueg1990/events{/privacy}", "followers_url": "https://api.github.com/users/ueg1990/followers", "following_url": "https://api.github.com/users/ueg1990/following{/other_user}", "gists_url": "https://api.github.com/users/ueg1990/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ueg1990", "id": 3393794, "login": "ueg1990", "node_id": "MDQ6VXNlcjMzOTM3OTQ=", "organizations_url": "https://api.github.com/users/ueg1990/orgs", "received_events_url": "https://api.github.com/users/ueg1990/received_events", "repos_url": "https://api.github.com/users/ueg1990/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ueg1990/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ueg1990/subscriptions", "type": "User", "url": "https://api.github.com/users/ueg1990", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-19T23:25:49Z
2021-09-08T21:00:57Z
2015-10-20T08:24:32Z
CONTRIBUTOR
resolved
I am contributing to a project that uses requests library (version 2.7.0) and even though the requests return outputs without any issue, I see the following warnings being printed: /Users/ue/.virtualenvs/imgurpython/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. Any help on how to fix this?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2837/reactions" }
https://api.github.com/repos/psf/requests/issues/2837/timeline
null
completed
null
null
false
[ "@ueg1990 This is occurring because you're using this on an old version of Python which does not have a fully-featured `ssl` module. You can fix it either by upgrading to 2.7.9 or later, or by installing `pyopenssl`, `ndg-httpsclient`, and `pyasn1`.\n" ]
https://api.github.com/repos/psf/requests/issues/2836
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2836/labels{/name}
https://api.github.com/repos/psf/requests/issues/2836/comments
https://api.github.com/repos/psf/requests/issues/2836/events
https://github.com/psf/requests/pull/2836
112,250,476
MDExOlB1bGxSZXF1ZXN0NDgxMzc5NzM=
2,836
Use session.verify
{ "avatar_url": "https://avatars.githubusercontent.com/u/4534764?v=4", "events_url": "https://api.github.com/users/causton81/events{/privacy}", "followers_url": "https://api.github.com/users/causton81/followers", "following_url": "https://api.github.com/users/causton81/following{/other_user}", "gists_url": "https://api.github.com/users/causton81/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/causton81", "id": 4534764, "login": "causton81", "node_id": "MDQ6VXNlcjQ1MzQ3NjQ=", "organizations_url": "https://api.github.com/users/causton81/orgs", "received_events_url": "https://api.github.com/users/causton81/received_events", "repos_url": "https://api.github.com/users/causton81/repos", "site_admin": false, "starred_url": "https://api.github.com/users/causton81/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/causton81/subscriptions", "type": "User", "url": "https://api.github.com/users/causton81", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2015-10-19T23:02:35Z
2021-09-08T06:00:48Z
2015-10-21T08:24:44Z
NONE
resolved
session.verify is currently ignored. Didn't have time for a unit test, but this is one solution.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2836/reactions" }
https://api.github.com/repos/psf/requests/issues/2836/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2836.diff", "html_url": "https://github.com/psf/requests/pull/2836", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2836.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2836" }
true
[ "@causton81 What evidence do you have that `Session.verify` is ignored? This works fine for me:\n\n``` python\n>>> import requests\n>>> s = requests.Session()\n>>> s.verify = False\n>>> s.get('https://kennethreitz.org/')\n/Users/cory/.pyenv/versions/2.7.10/lib/python2.7/site-packages/requests/packages/urllib3/conne...
https://api.github.com/repos/psf/requests/issues/2835
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2835/labels{/name}
https://api.github.com/repos/psf/requests/issues/2835/comments
https://api.github.com/repos/psf/requests/issues/2835/events
https://github.com/psf/requests/issues/2835
112,222,516
MDU6SXNzdWUxMTIyMjI1MTY=
2,835
readtimeout of zero will not send the request
{ "avatar_url": "https://avatars.githubusercontent.com/u/460530?v=4", "events_url": "https://api.github.com/users/trcarden/events{/privacy}", "followers_url": "https://api.github.com/users/trcarden/followers", "following_url": "https://api.github.com/users/trcarden/following{/other_user}", "gists_url": "https://api.github.com/users/trcarden/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/trcarden", "id": 460530, "login": "trcarden", "node_id": "MDQ6VXNlcjQ2MDUzMA==", "organizations_url": "https://api.github.com/users/trcarden/orgs", "received_events_url": "https://api.github.com/users/trcarden/received_events", "repos_url": "https://api.github.com/users/trcarden/repos", "site_admin": false, "starred_url": "https://api.github.com/users/trcarden/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trcarden/subscriptions", "type": "User", "url": "https://api.github.com/users/trcarden", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2015-10-19T20:08:01Z
2021-09-08T21:00:57Z
2015-10-20T08:30:20Z
NONE
resolved
The following code will not send a request: ``` python endpoint = 'some.server.com' data = {'foo':123} requests.post(self._endpoint , json=data, verify=False, timeout=(5, 0.00)) ``` I would expect the library to send the request but not wait for the server to respond. This would correspond to a fire and forget type of request particularly useful for logging of non critical information
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2835/reactions" }
https://api.github.com/repos/psf/requests/issues/2835/timeline
null
completed
null
null
false
[ "What does \"will not send the request\" mean? On my system, the request _is_ sent, but a `ReadTimeoutError` is raised, which feels like exactly the expected behaviour. What are you seeing that makes you believe that's not happening for you?\n\nPlease note, however, that setting a timeout of exactly zero is [a _bad...
https://api.github.com/repos/psf/requests/issues/2834
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2834/labels{/name}
https://api.github.com/repos/psf/requests/issues/2834/comments
https://api.github.com/repos/psf/requests/issues/2834/events
https://github.com/psf/requests/issues/2834
112,105,186
MDU6SXNzdWUxMTIxMDUxODY=
2,834
Response.text as byte string
{ "avatar_url": "https://avatars.githubusercontent.com/u/15190816?v=4", "events_url": "https://api.github.com/users/rschwarz1711/events{/privacy}", "followers_url": "https://api.github.com/users/rschwarz1711/followers", "following_url": "https://api.github.com/users/rschwarz1711/following{/other_user}", "gists_url": "https://api.github.com/users/rschwarz1711/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rschwarz1711", "id": 15190816, "login": "rschwarz1711", "node_id": "MDQ6VXNlcjE1MTkwODE2", "organizations_url": "https://api.github.com/users/rschwarz1711/orgs", "received_events_url": "https://api.github.com/users/rschwarz1711/received_events", "repos_url": "https://api.github.com/users/rschwarz1711/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rschwarz1711/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rschwarz1711/subscriptions", "type": "User", "url": "https://api.github.com/users/rschwarz1711", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-19T09:19:08Z
2021-09-08T21:00:58Z
2015-10-19T09:20:13Z
NONE
resolved
Hey, we are missing informations how to stop the requests library from guessing the content type of response.text. http://docs.python-requests.org/en/latest/api/?highlight=text#requests.Response.text For our use case we need the original byte string. The current docs don't explain how to get it. Please improve the docs. Best regards René
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2834/reactions" }
https://api.github.com/repos/psf/requests/issues/2834/timeline
null
completed
null
null
false
[ "The docs absolutely do say how to get the original byte string, just a few lines up from where you linked: http://docs.python-requests.org/en/latest/api/?highlight=text#requests.Response.content\n\nIt's `response.content`.\n" ]
https://api.github.com/repos/psf/requests/issues/2833
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2833/labels{/name}
https://api.github.com/repos/psf/requests/issues/2833/comments
https://api.github.com/repos/psf/requests/issues/2833/events
https://github.com/psf/requests/pull/2833
111,888,014
MDExOlB1bGxSZXF1ZXN0NDc5NDUxOTE=
2,833
Check Content-Length when present.
{ "avatar_url": "https://avatars.githubusercontent.com/u/4534764?v=4", "events_url": "https://api.github.com/users/causton81/events{/privacy}", "followers_url": "https://api.github.com/users/causton81/followers", "following_url": "https://api.github.com/users/causton81/following{/other_user}", "gists_url": "https://api.github.com/users/causton81/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/causton81", "id": 4534764, "login": "causton81", "node_id": "MDQ6VXNlcjQ1MzQ3NjQ=", "organizations_url": "https://api.github.com/users/causton81/orgs", "received_events_url": "https://api.github.com/users/causton81/received_events", "repos_url": "https://api.github.com/users/causton81/repos", "site_admin": false, "starred_url": "https://api.github.com/users/causton81/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/causton81/subscriptions", "type": "User", "url": "https://api.github.com/users/causton81", "user_view_type": "public" }
[]
closed
true
null
[]
null
9
2015-10-16T18:39:49Z
2021-09-08T06:00:51Z
2015-10-17T21:15:13Z
NONE
resolved
This is pretty hard to reproduce, but I have seen truncated responses in the presence of connection resets that are silently ignored by requests. This link describes how the vagaries of TCP and socket API may return an error or 0 (end-of-file) when the stars align just right: http://blog.netherlabs.nl/articles/2009/01/18/the-ultimate-so_linger-page-or-why-is-my-tcp-not-reliable This patch checks that the number of bytes read matches the declared Content-Length (when declared). I'm not an HTTP expert, so I may be missing something, but I hope this is useful. This also only covers the urllib3 code path.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2833/reactions" }
https://api.github.com/repos/psf/requests/issues/2833/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/2833.diff", "html_url": "https://github.com/psf/requests/pull/2833", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/2833.patch", "url": "https://api.github.com/repos/psf/requests/pulls/2833" }
true
[ "@causton `httplib` should do this check by itself already. Can you try to reproduce this to see if that happens? If it doesn't, can you post your repro code here?\n", "I used netcat to send a 1 MiB response that's one byte short of declared Content-Length. The script below shows the problem for me with the outpu...
https://api.github.com/repos/psf/requests/issues/2832
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/2832/labels{/name}
https://api.github.com/repos/psf/requests/issues/2832/comments
https://api.github.com/repos/psf/requests/issues/2832/events
https://github.com/psf/requests/issues/2832
111,879,729
MDU6SXNzdWUxMTE4Nzk3Mjk=
2,832
Not marked as python3.4 compatible in PyPi
{ "avatar_url": "https://avatars.githubusercontent.com/u/419698?v=4", "events_url": "https://api.github.com/users/jra3/events{/privacy}", "followers_url": "https://api.github.com/users/jra3/followers", "following_url": "https://api.github.com/users/jra3/following{/other_user}", "gists_url": "https://api.github.com/users/jra3/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jra3", "id": 419698, "login": "jra3", "node_id": "MDQ6VXNlcjQxOTY5OA==", "organizations_url": "https://api.github.com/users/jra3/orgs", "received_events_url": "https://api.github.com/users/jra3/received_events", "repos_url": "https://api.github.com/users/jra3/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jra3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jra3/subscriptions", "type": "User", "url": "https://api.github.com/users/jra3", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2015-10-16T17:55:06Z
2021-09-08T21:00:59Z
2015-10-16T21:03:31Z
NONE
resolved
Hi there, http://docs.python-requests.org/en/latest/ says there is support for python 2.6-3.4, but PyPi lists only 2.7. I discovered this when i used the tool `caniusepython3` and saw requests on the list of packages holding me back.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4", "events_url": "https://api.github.com/users/Lukasa/events{/privacy}", "followers_url": "https://api.github.com/users/Lukasa/followers", "following_url": "https://api.github.com/users/Lukasa/following{/other_user}", "gists_url": "https://api.github.com/users/Lukasa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lukasa", "id": 1382556, "login": "Lukasa", "node_id": "MDQ6VXNlcjEzODI1NTY=", "organizations_url": "https://api.github.com/users/Lukasa/orgs", "received_events_url": "https://api.github.com/users/Lukasa/received_events", "repos_url": "https://api.github.com/users/Lukasa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lukasa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lukasa/subscriptions", "type": "User", "url": "https://api.github.com/users/Lukasa", "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/2832/reactions" }
https://api.github.com/repos/psf/requests/issues/2832/timeline
null
completed
null
null
false
[ "Yeah, all our trove classifiers seem to be missing on PyPI. Looks like it was a while since it was registered. Resolved now. =)\n\nThanks for the report!\n" ]