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/4061
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4061/labels{/name}
https://api.github.com/repos/psf/requests/issues/4061/comments
https://api.github.com/repos/psf/requests/issues/4061/events
https://github.com/psf/requests/issues/4061
231,404,276
MDU6SXNzdWUyMzE0MDQyNzY=
4,061
readthedocs is broken
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2017-05-25T17:25:28Z
2021-09-08T10:00:39Z
2017-05-26T00:12:16Z
CONTRIBUTOR
resolved
ugh https://readthedocs.org/projects/requests/builds/5472443/
{ "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/4061/reactions" }
https://api.github.com/repos/psf/requests/issues/4061/timeline
null
completed
null
null
false
[ "very unclear what's going on from the error message. @ericholscher?", "Does it happen locally?", "I seem to have it reproducing locally, so I'm guessing it's a bug in something recent on your side. ", "Locally I see your config version being set as `ipdb> version\r\n<module 'requests.__version__' from '/User...
https://api.github.com/repos/psf/requests/issues/4060
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4060/labels{/name}
https://api.github.com/repos/psf/requests/issues/4060/comments
https://api.github.com/repos/psf/requests/issues/4060/events
https://github.com/psf/requests/issues/4060
231,402,277
MDU6SXNzdWUyMzE0MDIyNzc=
4,060
"params" arg of requests.get does not properly encode json
{ "avatar_url": "https://avatars.githubusercontent.com/u/1395651?v=4", "events_url": "https://api.github.com/users/mxndrwgrdnr/events{/privacy}", "followers_url": "https://api.github.com/users/mxndrwgrdnr/followers", "following_url": "https://api.github.com/users/mxndrwgrdnr/following{/other_user}", "gists_url": "https://api.github.com/users/mxndrwgrdnr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mxndrwgrdnr", "id": 1395651, "login": "mxndrwgrdnr", "node_id": "MDQ6VXNlcjEzOTU2NTE=", "organizations_url": "https://api.github.com/users/mxndrwgrdnr/orgs", "received_events_url": "https://api.github.com/users/mxndrwgrdnr/received_events", "repos_url": "https://api.github.com/users/mxndrwgrdnr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mxndrwgrdnr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mxndrwgrdnr/subscriptions", "type": "User", "url": "https://api.github.com/users/mxndrwgrdnr", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2017-05-25T17:17:28Z
2021-09-08T10:00:41Z
2017-05-25T17:32:22Z
NONE
resolved
I have an API endpoint that handles json. This request returns a 400 error ``` requests.get(url, params={"json":json.dumps(myDict)} ``` while this works fine ``` requests.post(url,json=myDict) ``` Is there no proper way to pass json in a GET request?
{ "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/4060/reactions" }
https://api.github.com/repos/psf/requests/issues/4060/timeline
null
completed
null
null
false
[ "This is entirely up to your API endpoint. If the endpoint doesn't want JSON in the request URL, then it will error out: if it does, then it won't. You need to read your endpoint documentation or observe other requests to see how they send the data.", "No, the API can handle JSON in the request URL. It's just tha...
https://api.github.com/repos/psf/requests/issues/4059
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4059/labels{/name}
https://api.github.com/repos/psf/requests/issues/4059/comments
https://api.github.com/repos/psf/requests/issues/4059/events
https://github.com/psf/requests/pull/4059
231,374,137
MDExOlB1bGxSZXF1ZXN0MTIyNDY0NDIw
4,059
__version__.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
null
[]
null
14
2017-05-25T15:32:14Z
2021-09-06T00:06:54Z
2017-05-25T16:39:44Z
CONTRIBUTOR
resolved
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/4059/reactions" }
https://api.github.com/repos/psf/requests/issues/4059/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4059.diff", "html_url": "https://github.com/psf/requests/pull/4059", "merged_at": "2017-05-25T16:39:44Z", "patch_url": "https://github.com/psf/requests/pull/4059.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4059" }
true
[ "waiting for ci to pass before merging", "P.S. I'll be happy to pay Travis money if it means our tests will run faster. /cc @Lukasa ", "I think appveyor is our bottleneck right now because it won't parallelize tests with the free version.\r\n\r\nAlso just wanted to make sure you'd seen #4058.", "They'll only ...
https://api.github.com/repos/psf/requests/issues/4058
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4058/labels{/name}
https://api.github.com/repos/psf/requests/issues/4058/comments
https://api.github.com/repos/psf/requests/issues/4058/events
https://github.com/psf/requests/pull/4058
231,210,521
MDExOlB1bGxSZXF1ZXN0MTIyMzUyMDc2
4,058
Stop relying on a regexp for version parsing
{ "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/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
3
2017-05-25T00:47:56Z
2021-09-06T00:06:54Z
2017-05-25T15:48:11Z
CONTRIBUTOR
resolved
Move all of our metadata into `requests/__about__.py` while keeping a backwards compatible aliasing of metadata attributes. Also use this to specify metadata in our setup.py Closes #4057 --- For what it's worth, I based this off of [pypa/packaging](https://github.com/pypa/packaging/blob/master/setup.py)
{ "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/4058/reactions" }
https://api.github.com/repos/psf/requests/issues/4058/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4058.diff", "html_url": "https://github.com/psf/requests/pull/4058", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/4058.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4058" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4058?src=pr&el=h1) Report\n> Merging [#4058](https://codecov.io/gh/kennethreitz/requests/pull/4058?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/037108178c1fcc4484f5ccb16e390636ef02a7e6?src=pr&el=desc) will **decrease**...
https://api.github.com/repos/psf/requests/issues/4057
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4057/labels{/name}
https://api.github.com/repos/psf/requests/issues/4057/comments
https://api.github.com/repos/psf/requests/issues/4057/events
https://github.com/psf/requests/issues/4057
231,126,702
MDU6SXNzdWUyMzExMjY3MDI=
4,057
move setup.py to use a __version__.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "color": "e102d8", "default": false, "description": null, "id": 117745, "name": "Planned", "node_id": "MDU6TGFiZWwxMTc3NDU=", "url": "https://api.github.com/repos/psf/requests/labels/Planned" }, { "color": "fbca04", "default": false, "description": null, "id": 44501...
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
5
2017-05-24T18:12:45Z
2021-09-08T10:00:42Z
2017-05-25T16:39:57Z
CONTRIBUTOR
resolved
better pattern. death to regex.
{ "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/4057/reactions" }
https://api.github.com/repos/psf/requests/issues/4057/timeline
null
completed
null
null
false
[ "Would be nice to keep `__version__` exposed at the package level so that `requests.__version__` is still a thing.", "Absolutely!", "Only reason I note that is because I know that `pipenv` does not expose `.__version__` at the package level instead opting for `pipenv.__version__.__version__`.", "@SethMichaelL...
https://api.github.com/repos/psf/requests/issues/4056
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4056/labels{/name}
https://api.github.com/repos/psf/requests/issues/4056/comments
https://api.github.com/repos/psf/requests/issues/4056/events
https://github.com/psf/requests/pull/4056
231,109,093
MDExOlB1bGxSZXF1ZXN0MTIyMjc4MzE2
4,056
Disable pytest messing with warnings.
{ "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
2017-05-24T17:05:15Z
2021-09-06T00:06:53Z
2017-05-24T17:46:12Z
MEMBER
resolved
We may be able to remove this if pytest resolves pytest-dev/pytest#2430, but until that point we need to turn the old behaviour back on.
{ "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/4056/reactions" }
https://api.github.com/repos/psf/requests/issues/4056/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4056.diff", "html_url": "https://github.com/psf/requests/pull/4056", "merged_at": "2017-05-24T17:46:12Z", "patch_url": "https://github.com/psf/requests/pull/4056.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4056" }
true
[ "I want to point out that it's pretty stupid that we have to do this, but there we are.", "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4056?src=pr&el=h1) Report\n> Merging [#4056](https://codecov.io/gh/kennethreitz/requests/pull/4056?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreit...
https://api.github.com/repos/psf/requests/issues/4055
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4055/labels{/name}
https://api.github.com/repos/psf/requests/issues/4055/comments
https://api.github.com/repos/psf/requests/issues/4055/events
https://github.com/psf/requests/issues/4055
231,101,432
MDU6SXNzdWUyMzExMDE0MzI=
4,055
remove 301 redirect cache
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "color": "e102d8", "default": false, "description": null, "id": 117745, "name": "Planned", "node_id": "MDU6TGFiZWwxMTc3NDU=", "url": "https://api.github.com/repos/psf/requests/labels/Planned" }, { "color": "0b02e1", "default": false, "description": null, "id": 19127...
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
null
6
2017-05-24T16:37:46Z
2021-09-06T00:06:34Z
2017-05-29T19:14:03Z
CONTRIBUTOR
resolved
it's not thread-safe, it's problematic, and it's just not the best of ideas. ----------- I'm assigning this to myself, but anyone can feel free to take this on if they're in the mood! Just comment here when you start working on it, if so!
{ "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/4055/reactions" }
https://api.github.com/repos/psf/requests/issues/4055/timeline
null
completed
null
null
false
[ "I thought we'd already removed this for 3.0?", "I think @kennethreitz has OK'd removing it for 2.x too.", "Yeah, I'm personally fine with that. ", "I opened a PR for this issue. (#4100)", "✨🍰✨", "@kennethreitz \r\n\r\nHow is it not threadsafe?\r\n\r\nThis `RecentlyUsedContainer` seems to be threadsafe. ...
https://api.github.com/repos/psf/requests/issues/4054
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4054/labels{/name}
https://api.github.com/repos/psf/requests/issues/4054/comments
https://api.github.com/repos/psf/requests/issues/4054/events
https://github.com/psf/requests/issues/4054
231,085,833
MDU6SXNzdWUyMzEwODU4MzM=
4,054
Easter Egg
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2017-05-24T15:45:15Z
2021-09-08T10:00:42Z
2017-05-24T15:50:48Z
CONTRIBUTOR
resolved
I'd like to embed an easter egg within requests — something very simple, perhaps just a single dunder variable that says "Kenneth was here". OR! ``` >>> requests.__cake__ ✨ 🍰 ✨ ``` yes, i love this. Any objections will be heard, and likely ignored, but open to thougts if anyone feels strongly against it.
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/4054/reactions" }
https://api.github.com/repos/psf/requests/issues/4054/timeline
null
completed
null
null
false
[ "Done!", "Did on my iPad, trusting CI to report if there are any failures caused by this one-line change. Keeping an eye out, as I don't have a dev environment on me at the moment. ", "@Lukasa sorry! :sparkles: :cake: :sparkles:", ":wink: No worries." ]
https://api.github.com/repos/psf/requests/issues/4053
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4053/labels{/name}
https://api.github.com/repos/psf/requests/issues/4053/comments
https://api.github.com/repos/psf/requests/issues/4053/events
https://github.com/psf/requests/issues/4053
230,978,998
MDU6SXNzdWUyMzA5Nzg5OTg=
4,053
Trouble with a specific request
{ "avatar_url": "https://avatars.githubusercontent.com/u/7857364?v=4", "events_url": "https://api.github.com/users/BobLamarley/events{/privacy}", "followers_url": "https://api.github.com/users/BobLamarley/followers", "following_url": "https://api.github.com/users/BobLamarley/following{/other_user}", "gists_url": "https://api.github.com/users/BobLamarley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BobLamarley", "id": 7857364, "login": "BobLamarley", "node_id": "MDQ6VXNlcjc4NTczNjQ=", "organizations_url": "https://api.github.com/users/BobLamarley/orgs", "received_events_url": "https://api.github.com/users/BobLamarley/received_events", "repos_url": "https://api.github.com/users/BobLamarley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BobLamarley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BobLamarley/subscriptions", "type": "User", "url": "https://api.github.com/users/BobLamarley", "user_view_type": "public" }
[]
closed
true
null
[]
null
9
2017-05-24T09:38:25Z
2021-09-08T10:00:41Z
2017-05-24T17:33:33Z
NONE
resolved
Hi, I have a trouble with my python code. When i do this cUrl, it work : `curl -i -XPOST 'http://51.255.80.74:8086/write?db=testdb' --data-binary 'lps0,host=serverlama,region=us-west value=0.65'` My value is added in to my database. I want to do the same in python with this script: ```` import requests import xml.etree.ElementTree as ET ### interestingData = ['lps0','wuc0'] ###INFLUXDB INFOS databaseName = 'testdb' urlPostData = 'http://51.255.80.74:8086/write?db='+databaseName urlGetData = 'http://192.168.168.110/admin/status.xml' source = requests.get(urlGetData, stream=True) tree = ET.parse(source.raw) root = tree.getroot() for child in root: if child.tag in interestingData: data = ''+child.tag+',host=serverlama,region=us-west value='+child.text response = requests.post(urlPostData, data=data, headers={'Content-Type': 'application/octet-stream'}) ```` But i got this error : ```` Traceback (most recent call last): File "script3.py", line 27, in <module> response = requests.post(urlPostData, data=data, headers={'Content-Type': 'application/octet-stream'}) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 94, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 49, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 407, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', error(111, 'Connection refused')) ```` My code seems good to me, i tried a lot of solutions but none works :( If anyone has an idea, it would be great
{ "avatar_url": "https://avatars.githubusercontent.com/u/7857364?v=4", "events_url": "https://api.github.com/users/BobLamarley/events{/privacy}", "followers_url": "https://api.github.com/users/BobLamarley/followers", "following_url": "https://api.github.com/users/BobLamarley/following{/other_user}", "gists_url": "https://api.github.com/users/BobLamarley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BobLamarley", "id": 7857364, "login": "BobLamarley", "node_id": "MDQ6VXNlcjc4NTczNjQ=", "organizations_url": "https://api.github.com/users/BobLamarley/orgs", "received_events_url": "https://api.github.com/users/BobLamarley/received_events", "repos_url": "https://api.github.com/users/BobLamarley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BobLamarley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BobLamarley/subscriptions", "type": "User", "url": "https://api.github.com/users/BobLamarley", "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/4053/reactions" }
https://api.github.com/repos/psf/requests/issues/4053/timeline
null
completed
null
null
false
[ "Let's get discorse setup, for questions like this. ", "Your GET is failing. Why are you trying that GET?", "My get is working, and i make that get for dowload the xml content of the page.\r\nThe problem is on the requests.post().", "So all I can tell you then is that the server is refusing our connection att...
https://api.github.com/repos/psf/requests/issues/4052
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4052/labels{/name}
https://api.github.com/repos/psf/requests/issues/4052/comments
https://api.github.com/repos/psf/requests/issues/4052/events
https://github.com/psf/requests/pull/4052
230,927,573
MDExOlB1bGxSZXF1ZXN0MTIyMTQ5NDU4
4,052
Fix regression in API caused by commit 85400d8d6751071ef78f042d1efa72…
{ "avatar_url": "https://avatars.githubusercontent.com/u/2484817?v=4", "events_url": "https://api.github.com/users/hile/events{/privacy}", "followers_url": "https://api.github.com/users/hile/followers", "following_url": "https://api.github.com/users/hile/following{/other_user}", "gists_url": "https://api.github.com/users/hile/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hile", "id": 2484817, "login": "hile", "node_id": "MDQ6VXNlcjI0ODQ4MTc=", "organizations_url": "https://api.github.com/users/hile/orgs", "received_events_url": "https://api.github.com/users/hile/received_events", "repos_url": "https://api.github.com/users/hile/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hile/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hile/subscriptions", "type": "User", "url": "https://api.github.com/users/hile", "user_view_type": "public" }
[]
closed
true
null
[]
null
17
2017-05-24T05:51:20Z
2021-09-06T00:06:53Z
2017-05-27T01:34:30Z
CONTRIBUTOR
resolved
…bdcf76cc0e - The added optional parameter changes API and should default to None This utility call is used by for example requestbuilder package directly which breaks because it passes only one argument to the function as it used to be.
{ "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/4052/reactions" }
https://api.github.com/repos/psf/requests/issues/4052/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4052.diff", "html_url": "https://github.com/psf/requests/pull/4052", "merged_at": "2017-05-27T01:34:30Z", "patch_url": "https://github.com/psf/requests/pull/4052.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4052" }
true
[ "I don't believe this is a public API, and therefore we don't gaurentee API compatibility.\r\n\r\nBut, I could be wrong — either way, it seems like a nice change to make if it doesn't hurt anything. \r\n\r\n@nateprewitt any objections?", "I think this is a good idea, but we should work out why the builders are fa...
https://api.github.com/repos/psf/requests/issues/4051
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4051/labels{/name}
https://api.github.com/repos/psf/requests/issues/4051/comments
https://api.github.com/repos/psf/requests/issues/4051/events
https://github.com/psf/requests/issues/4051
230,793,549
MDU6SXNzdWUyMzA3OTM1NDk=
4,051
gevent - 'module' object has no attribute 'epoll' with Python2-7 and Gevent -1.0.1; with Requests-2.13.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/6896731?v=4", "events_url": "https://api.github.com/users/iamtennislover/events{/privacy}", "followers_url": "https://api.github.com/users/iamtennislover/followers", "following_url": "https://api.github.com/users/iamtennislover/following{/other_user}", "gists_url": "https://api.github.com/users/iamtennislover/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/iamtennislover", "id": 6896731, "login": "iamtennislover", "node_id": "MDQ6VXNlcjY4OTY3MzE=", "organizations_url": "https://api.github.com/users/iamtennislover/orgs", "received_events_url": "https://api.github.com/users/iamtennislover/received_events", "repos_url": "https://api.github.com/users/iamtennislover/repos", "site_admin": false, "starred_url": "https://api.github.com/users/iamtennislover/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iamtennislover/subscriptions", "type": "User", "url": "https://api.github.com/users/iamtennislover", "user_view_type": "public" }
[]
closed
true
null
[]
null
9
2017-05-23T17:56:24Z
2021-09-08T10:00:43Z
2017-05-23T19:30:45Z
NONE
resolved
requests 2.13.0 fails >>> import sys >>> import gevent.monkey >>> gevent.monkey.patch_all() # This must be called before any other modules calling socket/request >>> import requests >>> >>> print 'py version:', sys.version_info py version: sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) >>> print 'requests version:', requests.__version__ requests version: 2.13.0 >>> print 'gevent version:', gevent.__version__ gevent version: 1.0.1 >>> >>> assert requests.get('http://www.python.org').content Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/api.py", line 70, in get return request('get', url, params=params, **kwargs) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/api.py", line 56, in request return session.request(method=method, url=url, **kwargs) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 630, in send history = [resp for resp in gen] if allow_redirects else [] File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 190, in resolve_redirects **adapter_kwargs File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/adapters.py", line 423, in send timeout=timeout File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request self._validate_conn(conn) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 844, in _validate_conn conn.connect() File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 326, in connect ssl_context=context) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py", line 324, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 438, in wrap_socket rd = util.wait_for_read(sock, sock.gettimeout()) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/wait.py", line 33, in wait_for_read return _wait_for_io_events(socks, EVENT_READ, timeout) File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/wait.py", line 22, in _wait_for_io_events with DefaultSelector() as selector: File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/selectors.py", line 364, in __init__ self._epoll = select.epoll() AttributeError: 'module' object has no attribute 'epoll' >>> >>> requests 2.9.1 works >>> import sys >>> import gevent.monkey >>> gevent.monkey.patch_all() # This must be called before any other modules calling socket/request >>> >>> import requests >>> >>> print 'py version:', sys.version_info py version: sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0) >>> print 'requests version:', requests.__version__ requests version: 2.9.1 >>> print 'gevent version:', gevent.__version__ gevent version: 1.0.1 >>> >>> assert requests.get('http://www.python.org').content /home/barikak/workplace/NSDSwiftKanbanClientW/env/NSDSwiftKanbanClient-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning >>>
{ "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/4051/reactions" }
https://api.github.com/repos/psf/requests/issues/4051/timeline
null
completed
null
null
false
[ "Are you *absolutely certain* that nothing else imports requests before you get there? Because this seems to be a bug that only occurs if Requests is imported before gevent monkey patching.", "In the meantime, please try 2.14.2.", "I can't reproduce this on Python 2.7 with requests 2.13.0 and gevent 1.0.1 runni...
https://api.github.com/repos/psf/requests/issues/4050
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4050/labels{/name}
https://api.github.com/repos/psf/requests/issues/4050/comments
https://api.github.com/repos/psf/requests/issues/4050/events
https://github.com/psf/requests/pull/4050
230,791,794
MDExOlB1bGxSZXF1ZXN0MTIyMDU3NjM3
4,050
AttributeError error raised when `files` file-pointer (fp) resolves to None
{ "avatar_url": "https://avatars.githubusercontent.com/u/3474715?v=4", "events_url": "https://api.github.com/users/mayani/events{/privacy}", "followers_url": "https://api.github.com/users/mayani/followers", "following_url": "https://api.github.com/users/mayani/following{/other_user}", "gists_url": "https://api.github.com/users/mayani/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mayani", "id": 3474715, "login": "mayani", "node_id": "MDQ6VXNlcjM0NzQ3MTU=", "organizations_url": "https://api.github.com/users/mayani/orgs", "received_events_url": "https://api.github.com/users/mayani/received_events", "repos_url": "https://api.github.com/users/mayani/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mayani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mayani/subscriptions", "type": "User", "url": "https://api.github.com/users/mayani", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2017-05-23T17:50:04Z
2021-09-03T00:10:56Z
2018-05-17T20:56:18Z
CONTRIBUTOR
resolved
The library raises NoneType error when file-pointer (fp) resolves to None. ``` >>> from requests import post >>> r = post("https://example.com", files={"file-name": None}) AttributeError: 'NoneType' object has no attribute 'read' ``` However, when a param value or json field is None they are not included in the request body. ``` >>> from requests import get >>> r = get("https://example.com", params={"file-name": None}) >>> r.request.url ``` This commit makes the beahviour consistent for files.
{ "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/4050/reactions" }
https://api.github.com/repos/psf/requests/issues/4050/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4050.diff", "html_url": "https://github.com/psf/requests/pull/4050", "merged_at": "2018-05-17T20:56:18Z", "patch_url": "https://github.com/psf/requests/pull/4050.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4050" }
true
[ "Love this!", "# [Codecov](https://codecov.io/gh/requests/requests/pull/4050?src=pr&el=h1) Report\n> :exclamation: No coverage uploaded for pull request base (`master@5697148`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).\n> The diff coverage is...
https://api.github.com/repos/psf/requests/issues/4049
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4049/labels{/name}
https://api.github.com/repos/psf/requests/issues/4049/comments
https://api.github.com/repos/psf/requests/issues/4049/events
https://github.com/psf/requests/issues/4049
230,685,739
MDU6SXNzdWUyMzA2ODU3Mzk=
4,049
Prevent reading whole file when using the files= argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/314716?v=4", "events_url": "https://api.github.com/users/astrofrog/events{/privacy}", "followers_url": "https://api.github.com/users/astrofrog/followers", "following_url": "https://api.github.com/users/astrofrog/following{/other_user}", "gists_url": "https://api.github.com/users/astrofrog/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/astrofrog", "id": 314716, "login": "astrofrog", "node_id": "MDQ6VXNlcjMxNDcxNg==", "organizations_url": "https://api.github.com/users/astrofrog/orgs", "received_events_url": "https://api.github.com/users/astrofrog/received_events", "repos_url": "https://api.github.com/users/astrofrog/repos", "site_admin": false, "starred_url": "https://api.github.com/users/astrofrog/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/astrofrog/subscriptions", "type": "User", "url": "https://api.github.com/users/astrofrog", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-23T12:14:05Z
2021-09-08T10:00:44Z
2017-05-23T12:25:49Z
NONE
resolved
I am trying to send a very large file (100Gb) using a POST request, with a call that looks like: ``` r = requests.post(url, data={'filename': filename}, files={'file': f}) ``` but the issue is that internally, requests tries to read the whole file before sending: ``` File "upload.py", line 19, in <module> files=files) File "/home/robitaille/anaconda/lib/python2.7/site-packages/requests/api.py", line 88, in post return request('post', url, data=data, **kwargs) File "/home/robitaille/anaconda/lib/python2.7/site-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/home/robitaille/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 349, in request prep = self.prepare_request(req) File "/home/robitaille/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 287, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "/home/robitaille/anaconda/lib/python2.7/site-packages/requests/models.py", line 290, in prepare self.prepare_body(data, files) File "/home/robitaille/anaconda/lib/python2.7/site-packages/requests/models.py", line 427, in prepare_body (body, content_type) = self._encode_files(files, data) File "/home/robitaille/anaconda/lib/python2.7/site-packages/requests/models.py", line 140, in _encode_files rf = RequestField(name=k, data=fp.read(), MemoryError ``` For other libraries, there are solutions that involve e.g. mmap: https://stackoverflow.com/a/2504133 but this doesn't work for requests due to the hard-coded ``f.read()`` which will force loading the whole file into memory. Is there a way to avoid this, and if not can support for ``mmap`` be implemented? (for mmap, f.read has to take an argument).
{ "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/4049/reactions" }
https://api.github.com/repos/psf/requests/issues/4049/timeline
null
completed
null
null
false
[ "There *is* a solution for Requests in the [requests-toolbelt](https://toolbelt.readthedocs.io). Namely the [Streaming Multipart Encoder](https://toolbelt.readthedocs.io/en/latest/uploading-data.html#streaming-multipart-data-encoder).\r\n\r\nWe've talked about adding this support into Requests directly though, so i...
https://api.github.com/repos/psf/requests/issues/4048
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4048/labels{/name}
https://api.github.com/repos/psf/requests/issues/4048/comments
https://api.github.com/repos/psf/requests/issues/4048/events
https://github.com/psf/requests/pull/4048
230,629,303
MDExOlB1bGxSZXF1ZXN0MTIxOTQxMTE5
4,048
Add an enhancement for transforamtion between dict and cookiejar.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1980918?v=4", "events_url": "https://api.github.com/users/justdoit0823/events{/privacy}", "followers_url": "https://api.github.com/users/justdoit0823/followers", "following_url": "https://api.github.com/users/justdoit0823/following{/other_user}", "gists_url": "https://api.github.com/users/justdoit0823/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/justdoit0823", "id": 1980918, "login": "justdoit0823", "node_id": "MDQ6VXNlcjE5ODA5MTg=", "organizations_url": "https://api.github.com/users/justdoit0823/orgs", "received_events_url": "https://api.github.com/users/justdoit0823/received_events", "repos_url": "https://api.github.com/users/justdoit0823/repos", "site_admin": false, "starred_url": "https://api.github.com/users/justdoit0823/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/justdoit0823/subscriptions", "type": "User", "url": "https://api.github.com/users/justdoit0823", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-23T08:35:52Z
2021-09-06T00:06:55Z
2017-05-24T04:12:30Z
NONE
resolved
When using dict_from_cookiejar, I can only get name and value from cookie object, otherwise other cookie attributes are lost. So I want to make an enhancement about two methods dict_from_cookiejar and cookiejar_from_dict, which can be more flexible and safe to do cookie transformation and persistence like the following code. ``` import requests from requests.utils import dict_from_cookiejar res = requests.get('https://github.com/justdoit0823/notes') dict_from_cookiejar(res.cookies) dict_from_cookiejar(res.cookies, with_cookie_attr=True) ``` And the output: ``` # with_cookie_attr is False {'_gh_sess': 'somevalue', 'logged_in': 'no'} # with_cookie_attr is True {'_gh_sess': {'discard': True, 'domain': 'github.com', 'name': '_gh_sess', 'path': '/', 'rest': {'HttpOnly': None}, 'rfc2109': False, 'secure': True, 'value': 'somevalue', 'version': 0}, 'logged_in': {'discard': False, 'domain': '.github.com', 'expires': 2126671044, 'name': 'logged_in', 'path': '/', 'rest': {'HttpOnly': None}, 'rfc2109': False, 'secure': True, 'value': 'no', 'version': 0}} ```
{ "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/4048/reactions" }
https://api.github.com/repos/psf/requests/issues/4048/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4048.diff", "html_url": "https://github.com/psf/requests/pull/4048", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/4048.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4048" }
true
[ "Thanks for this patch! I'm afraid I don't think it's necessary: these are primarily intended as internal utilities and so we're very disinclined to add features to them. Sorry about that! :sparkles:" ]
https://api.github.com/repos/psf/requests/issues/4047
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4047/labels{/name}
https://api.github.com/repos/psf/requests/issues/4047/comments
https://api.github.com/repos/psf/requests/issues/4047/events
https://github.com/psf/requests/pull/4047
230,522,295
MDExOlB1bGxSZXF1ZXN0MTIxODY3NDQ5
4,047
More Verbose Execption Handling
{ "avatar_url": "https://avatars.githubusercontent.com/u/4099109?v=4", "events_url": "https://api.github.com/users/bobstrecansky/events{/privacy}", "followers_url": "https://api.github.com/users/bobstrecansky/followers", "following_url": "https://api.github.com/users/bobstrecansky/following{/other_user}", "gists_url": "https://api.github.com/users/bobstrecansky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bobstrecansky", "id": 4099109, "login": "bobstrecansky", "node_id": "MDQ6VXNlcjQwOTkxMDk=", "organizations_url": "https://api.github.com/users/bobstrecansky/orgs", "received_events_url": "https://api.github.com/users/bobstrecansky/received_events", "repos_url": "https://api.github.com/users/bobstrecansky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bobstrecansky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bobstrecansky/subscriptions", "type": "User", "url": "https://api.github.com/users/bobstrecansky", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-22T21:17:24Z
2021-09-06T00:06:54Z
2017-05-24T17:57:58Z
NONE
resolved
So I tried to add more verbose exception handling without breaking current functionality (this feels really hacky). It seems to me that it may be pertinent to break these out and not raise a connection error for each request (as denoted in : https://github.com/kennethreitz/requests/issues/2876) In the current implementation, a ConnectionError is raised for each call, as well as a max retries message. It seems like the max retries message error should either be removed or made as more of a general string response statement. This general string response is here: https://github.com/kennethreitz/requests/blob/master/requests/adapters.py#L503 Doing so would require removing that line and adding explicit responses within that max retry block, but this might break current functionality if people are depending on the response from requests to make other decisions. Looking forward to a discussion on this topic.
{ "avatar_url": "https://avatars.githubusercontent.com/u/4099109?v=4", "events_url": "https://api.github.com/users/bobstrecansky/events{/privacy}", "followers_url": "https://api.github.com/users/bobstrecansky/followers", "following_url": "https://api.github.com/users/bobstrecansky/following{/other_user}", "gists_url": "https://api.github.com/users/bobstrecansky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bobstrecansky", "id": 4099109, "login": "bobstrecansky", "node_id": "MDQ6VXNlcjQwOTkxMDk=", "organizations_url": "https://api.github.com/users/bobstrecansky/orgs", "received_events_url": "https://api.github.com/users/bobstrecansky/received_events", "repos_url": "https://api.github.com/users/bobstrecansky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bobstrecansky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bobstrecansky/subscriptions", "type": "User", "url": "https://api.github.com/users/bobstrecansky", "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/4047/reactions" }
https://api.github.com/repos/psf/requests/issues/4047/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4047.diff", "html_url": "https://github.com/psf/requests/pull/4047", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/4047.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4047" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4047?src=pr&el=h1) Report\n> Merging [#4047](https://codecov.io/gh/kennethreitz/requests/pull/4047?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/6fb9b1ce53e2b5b047d875a916cfae8c468649dc?src=pr&el=desc) will **decrease**...
https://api.github.com/repos/psf/requests/issues/4046
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4046/labels{/name}
https://api.github.com/repos/psf/requests/issues/4046/comments
https://api.github.com/repos/psf/requests/issues/4046/events
https://github.com/psf/requests/issues/4046
230,243,695
MDU6SXNzdWUyMzAyNDM2OTU=
4,046
Force use of specific SSL version and/or ciphers
{ "avatar_url": "https://avatars.githubusercontent.com/u/3749186?v=4", "events_url": "https://api.github.com/users/devt/events{/privacy}", "followers_url": "https://api.github.com/users/devt/followers", "following_url": "https://api.github.com/users/devt/following{/other_user}", "gists_url": "https://api.github.com/users/devt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/devt", "id": 3749186, "login": "devt", "node_id": "MDQ6VXNlcjM3NDkxODY=", "organizations_url": "https://api.github.com/users/devt/orgs", "received_events_url": "https://api.github.com/users/devt/received_events", "repos_url": "https://api.github.com/users/devt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/devt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/devt/subscriptions", "type": "User", "url": "https://api.github.com/users/devt", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2017-05-21T19:41:57Z
2021-09-08T10:00:45Z
2017-05-21T19:46:55Z
NONE
resolved
I need to overwrite the default behavior of choosing which ssl_version or ciphers are allowed to be negotiated. There is a 'broken' internal site which accepts TLS v1.0 only. It works with curl and Chrome (who end up selecting TLSv1.0 / DES-CBC3-SHA), but from Python it ends up 'choosing' SSLv3 and you get the error requests.exceptions.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:590) I implemented the overwrite for requests.packages.urllib3.poolmanager as described in http://docs.python-requests.org/en/latest/user/advanced/#example-specific-ssl-version or https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/, but that still does not 'prohibit' the use of SSLv3 and you end up again using it. I implemented the changes of SSLContext as suggested at http://stackoverflow.com/questions/29153271/sending-tls-1-2-request-in-python-2-6 and this fixes the issue, but I had to directly patch the code in requests.packages.urllib3.connection, since there is no way to overwrite which 'kind' of HTTPSConnection it will instantiate. Or is there a way to do that?
{ "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/4046/reactions" }
https://api.github.com/repos/psf/requests/issues/4046/timeline
null
completed
null
null
false
[ "You can create an SSLContext and configure it as needed by using [these instructions](https://lukasa.co.uk/2017/02/Configuring_TLS_With_Requests/). You can set a bunch of `OP_NO` flags to disable everything you don't need. ", "Thanks a bunch. The explanation of the '3DES stream cipher' being removed makes sense....
https://api.github.com/repos/psf/requests/issues/4045
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4045/labels{/name}
https://api.github.com/repos/psf/requests/issues/4045/comments
https://api.github.com/repos/psf/requests/issues/4045/events
https://github.com/psf/requests/issues/4045
230,240,670
MDU6SXNzdWUyMzAyNDA2NzA=
4,045
Async-only for Requests v3?
{ "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" }
[ { "color": "e102d8", "default": false, "description": null, "id": 117745, "name": "Planned", "node_id": "MDU6TGFiZWwxMTc3NDU=", "url": "https://api.github.com/repos/psf/requests/labels/Planned" }, { "color": "0b02e1", "default": false, "description": null, "id": 19127...
closed
true
null
[]
null
18
2017-05-21T19:02:34Z
2021-09-08T10:00:40Z
2017-05-24T17:32:53Z
MEMBER
resolved
A discussion at PyCon in the Requests BoF has suggested two approaches to our glorious async future: 1. Write a codebase that is async and Python 3-only, and then apply an automated code transformation to turn that into a synchronous codebase that ships on Python 2. This will mean that Requests v3 supports *only* synchronous code on Python 2, and both sync and async code on Python 3. 2. Mark Requests v2 as a LTS release that we will support until 2020, and then ship Requests v3 as a Python-3-only release (like Django!) I don't want to go into too much detail on (1), but I'd like to ask our users what they think about option (2). If it's acceptable to you, leave a :+1:, if it's unacceptable leave a :-1:, and if you have notes about why it's either please leave them below. Let the comment period begin!
{ "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": 24, "-1": 0, "confused": 0, "eyes": 0, "heart": 8, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 32, "url": "https://api.github.com/repos/psf/requests/issues/4045/reactions" }
https://api.github.com/repos/psf/requests/issues/4045/timeline
null
completed
null
null
false
[ "Thumb up for v2 as LTS and v3 Py3 only :). 👍\r\nAdding the Django example, it gives good push in the right of direction of Py3 only. Hopefully this starts a trend and all libraries will follow that model. It helps me to promote that model as well internally, for our own libraries (if everybody does that, let's do...
https://api.github.com/repos/psf/requests/issues/4044
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4044/labels{/name}
https://api.github.com/repos/psf/requests/issues/4044/comments
https://api.github.com/repos/psf/requests/issues/4044/events
https://github.com/psf/requests/pull/4044
230,228,907
MDExOlB1bGxSZXF1ZXN0MTIxNjY1Mzc3
4,044
Fix cookies storage on GAE
{ "avatar_url": "https://avatars.githubusercontent.com/u/709053?v=4", "events_url": "https://api.github.com/users/cmin764/events{/privacy}", "followers_url": "https://api.github.com/users/cmin764/followers", "following_url": "https://api.github.com/users/cmin764/following{/other_user}", "gists_url": "https://api.github.com/users/cmin764/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cmin764", "id": 709053, "login": "cmin764", "node_id": "MDQ6VXNlcjcwOTA1Mw==", "organizations_url": "https://api.github.com/users/cmin764/orgs", "received_events_url": "https://api.github.com/users/cmin764/received_events", "repos_url": "https://api.github.com/users/cmin764/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cmin764/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cmin764/subscriptions", "type": "User", "url": "https://api.github.com/users/cmin764", "user_view_type": "public" }
[]
closed
true
null
[]
null
18
2017-05-21T15:39:06Z
2021-09-03T00:10:59Z
2017-05-30T17:12:52Z
NONE
resolved
When using requests on GAE, the urllib3 response containing cookies is a little bit different, therefore we have to extract the cookies from the returned headers directly from the response object. Fix issue #4039
{ "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/4044/reactions" }
https://api.github.com/repos/psf/requests/issues/4044/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4044.diff", "html_url": "https://github.com/psf/requests/pull/4044", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/4044.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4044" }
true
[ "Just to clarify: are you interested in making further amendments to this patch, or would you like core devs or volunteers to build on it instead?", "No, I would like to let the core devs take it and adapt it to what is right. What I want most, is to be aware of the fact that this is a serious issue affecting all...
https://api.github.com/repos/psf/requests/issues/4043
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4043/labels{/name}
https://api.github.com/repos/psf/requests/issues/4043/comments
https://api.github.com/repos/psf/requests/issues/4043/events
https://github.com/psf/requests/issues/4043
230,210,181
MDU6SXNzdWUyMzAyMTAxODE=
4,043
python requests runs infinitely if the called script executes more than 2 minutes
{ "avatar_url": "https://avatars.githubusercontent.com/u/28837804?v=4", "events_url": "https://api.github.com/users/jj-one/events{/privacy}", "followers_url": "https://api.github.com/users/jj-one/followers", "following_url": "https://api.github.com/users/jj-one/following{/other_user}", "gists_url": "https://api.github.com/users/jj-one/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jj-one", "id": 28837804, "login": "jj-one", "node_id": "MDQ6VXNlcjI4ODM3ODA0", "organizations_url": "https://api.github.com/users/jj-one/orgs", "received_events_url": "https://api.github.com/users/jj-one/received_events", "repos_url": "https://api.github.com/users/jj-one/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jj-one/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jj-one/subscriptions", "type": "User", "url": "https://api.github.com/users/jj-one", "user_view_type": "public" }
[]
closed
true
null
[]
null
36
2017-05-21T09:59:50Z
2021-09-08T10:00:42Z
2017-05-23T21:08:39Z
NONE
resolved
I am setting up a vps. Everything has worked well with python requests module until I had to run a script on the server that exceeded two minutes. As soon as any script executes through python requests on the remote server for more than 2 minutes, the request goes on infinitely. It never returns or terminates. If I call the script from any browser, it executes normally and returns the appropriate response IRRESPECTIVE OF THE DURATION. The only means of terminating any scripting lasting more than two minutes and executed through python requests is by including the timeout parameter in the requests call, which normally gives the following traceback: Traceback (most recent call last): File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 376, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 378, in _make_request httplib_response = conn.getresponse() File "C:\Python34\lib\http\client.py", line 1148, in getresponse response.begin() File "C:\Python34\lib\http\client.py", line 352, in begin version, status, reason = self._read_status() File "C:\Python34\lib\http\client.py", line 314, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "C:\Python34\lib\socket.py", line 371, in readinto return self._sock.recv_into(b) File "C:\Python34\lib\ssl.py", line 708, in recv_into return self.read(nbytes, buffer) File "C:\Python34\lib\ssl.py", line 580, in read v = self._sslobj.read(len, buffer) socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python34\lib\site-packages\requests\adapters.py", line 376, in send timeout=timeout File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 609, in urlopen _stacktrace=sys.exc_info()[2]) File "C:\Python34\lib\site-packages\requests\packages\urllib3\util\retry.py", line 247, in increment raise six.reraise(type(error), error, _stacktrace) File "C:\Python34\lib\site-packages\requests\packages\urllib3\packages\six.py", line 310, in reraise raise value File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 559, in urlopen body=body, headers=headers) File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 380, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 308, in _raise_timeout raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='domain1.com', port=443): Read timed out. (read timeout=130) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "all-test.py", line 32, in <module> cool = requests.post("https://domain1.com/test3.php", stream=True, verify=False, timeout=130) File "C:\Python34\lib\site-packages\requests\api.py", line 107, in post return request('post', url, data=data, json=json, **kwargs) File "C:\Python34\lib\site-packages\requests\api.py", line 53, in request return session.request(method=method, url=url, **kwargs) File "C:\Python34\lib\site-packages\requests\sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "C:\Python34\lib\site-packages\requests\sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "C:\Python34\lib\site-packages\requests\adapters.py", line 449, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='domain1.com', port=443): Read timed out. (read timeout=130) Note, everything works perfectly with no issue if called from browser. Also, checking the access.log file on the remove server shows that the script completed at the right time with no issue and responded with 200 status code even when called by python requests that ran infinitely. To eliminate some probable causes, i have set up and run similar script on my local wamp, calling the same script via python's requests with no issue. Please, I will highly appreciate any help anybody can give me to resolve the above issue. It has taken me 4 days with no success.
{ "avatar_url": "https://avatars.githubusercontent.com/u/28837804?v=4", "events_url": "https://api.github.com/users/jj-one/events{/privacy}", "followers_url": "https://api.github.com/users/jj-one/followers", "following_url": "https://api.github.com/users/jj-one/following{/other_user}", "gists_url": "https://api.github.com/users/jj-one/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jj-one", "id": 28837804, "login": "jj-one", "node_id": "MDQ6VXNlcjI4ODM3ODA0", "organizations_url": "https://api.github.com/users/jj-one/orgs", "received_events_url": "https://api.github.com/users/jj-one/received_events", "repos_url": "https://api.github.com/users/jj-one/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jj-one/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jj-one/subscriptions", "type": "User", "url": "https://api.github.com/users/jj-one", "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/4043/reactions" }
https://api.github.com/repos/psf/requests/issues/4043/timeline
null
completed
null
null
false
[ "This sounds very much like it relates to the web server you're running. Can you try with a different web server?", "I think you might be right because I have a shared server somewhere where I normally upload files lasting more than 15 minutes using python requests. It has always worked well.\r\nOn the other hand...
https://api.github.com/repos/psf/requests/issues/4042
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4042/labels{/name}
https://api.github.com/repos/psf/requests/issues/4042/comments
https://api.github.com/repos/psf/requests/issues/4042/events
https://github.com/psf/requests/pull/4042
230,187,218
MDExOlB1bGxSZXF1ZXN0MTIxNjQyNzI2
4,042
Persist Session-level CookiePolicy
{ "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" }
[]
closed
true
null
[]
null
5
2017-05-21T00:06:13Z
2021-09-06T00:06:55Z
2017-05-23T14:39:37Z
MEMBER
resolved
This is a followup for #3463, but refactored without the persistence flag which makes this a breaking change. Currently, Requests silently throws away any cookie policies set on a CookieJar as noted in #3416. This patch will preserve the CookiePolicy set on a session-level CookieJar for both redirected and subsequent requests. The only caveat here is this won't work for a non-RequestsCookieJar since the policy isn't exposed publicly. We may want to add some documentation about this caveat but given the rarity of this case, the information in the issue tracker may be sufficient.
{ "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/4042/reactions" }
https://api.github.com/repos/psf/requests/issues/4042/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4042.diff", "html_url": "https://github.com/psf/requests/pull/4042", "merged_at": "2017-05-23T14:39:37Z", "patch_url": "https://github.com/psf/requests/pull/4042.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4042" }
true
[ "@Lukasa we're going to need to merge in master to get the builds running in 3.0.0 again. I can do it but probably won't get to it till tomorrow. I'll need to strip out get_policy too because it's no longer needed either.", "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4042?src=pr&el=h1) Report\n>...
https://api.github.com/repos/psf/requests/issues/4041
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4041/labels{/name}
https://api.github.com/repos/psf/requests/issues/4041/comments
https://api.github.com/repos/psf/requests/issues/4041/events
https://github.com/psf/requests/pull/4041
230,157,603
MDExOlB1bGxSZXF1ZXN0MTIxNjI1Nzk0
4,041
Add setup.cfg to declare wheel as universal
{ "avatar_url": "https://avatars.githubusercontent.com/u/347634?v=4", "events_url": "https://api.github.com/users/jdufresne/events{/privacy}", "followers_url": "https://api.github.com/users/jdufresne/followers", "following_url": "https://api.github.com/users/jdufresne/following{/other_user}", "gists_url": "https://api.github.com/users/jdufresne/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jdufresne", "id": 347634, "login": "jdufresne", "node_id": "MDQ6VXNlcjM0NzYzNA==", "organizations_url": "https://api.github.com/users/jdufresne/orgs", "received_events_url": "https://api.github.com/users/jdufresne/received_events", "repos_url": "https://api.github.com/users/jdufresne/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jdufresne/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jdufresne/subscriptions", "type": "User", "url": "https://api.github.com/users/jdufresne", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-20T14:41:02Z
2021-09-04T00:06:46Z
2017-05-20T15:11:12Z
CONTRIBUTOR
resolved
As the project is pure Python, a built wheel should always be universal, so define in the project globally. Can remove --universal command from Makefile. See: http://pythonwheels.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/4041/reactions" }
https://api.github.com/repos/psf/requests/issues/4041/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4041.diff", "html_url": "https://github.com/psf/requests/pull/4041", "merged_at": "2017-05-20T15:11:12Z", "patch_url": "https://github.com/psf/requests/pull/4041.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4041" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4041?src=pr&el=h1) Report\n> Merging [#4041](https://codecov.io/gh/kennethreitz/requests/pull/4041?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/fb3f2a030f82475145369b01adbee68d17bd4f43?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/4040
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4040/labels{/name}
https://api.github.com/repos/psf/requests/issues/4040/comments
https://api.github.com/repos/psf/requests/issues/4040/events
https://github.com/psf/requests/issues/4040
230,123,627
MDU6SXNzdWUyMzAxMjM2Mjc=
4,040
Custom Auth Handler - HTTP Method and Body changes not functioning with re-direct
{ "avatar_url": "https://avatars.githubusercontent.com/u/8226358?v=4", "events_url": "https://api.github.com/users/pfoppe/events{/privacy}", "followers_url": "https://api.github.com/users/pfoppe/followers", "following_url": "https://api.github.com/users/pfoppe/following{/other_user}", "gists_url": "https://api.github.com/users/pfoppe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pfoppe", "id": 8226358, "login": "pfoppe", "node_id": "MDQ6VXNlcjgyMjYzNTg=", "organizations_url": "https://api.github.com/users/pfoppe/orgs", "received_events_url": "https://api.github.com/users/pfoppe/received_events", "repos_url": "https://api.github.com/users/pfoppe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pfoppe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pfoppe/subscriptions", "type": "User", "url": "https://api.github.com/users/pfoppe", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2017-05-20T02:09:49Z
2021-09-08T10:00:38Z
2017-05-26T14:18:25Z
NONE
resolved
Hello, I've written a pretty basic Custom Authentication Handler to work with a vendor product we have deployed. This product requires an HTTP request with a username/password to a specific web-endpoint which will generate an 'authentication token' that expires at a set time. This authentication token is then passed with future requests which will authorize access to the services. I successfully have this working by setting the PreparedRequest "method" to POST and update the body to include the authorization token. I have been successful with this if I access a URL that does not have a re-direct. Unfortunately I've stumbled across a few re-directs in the system, and it seems that my method overwrite (from get -> post) and including my token in the body of the request are lost on re-directs (these are not persisted with requests following the re-direct). I enabled IIS Failed Request Tracing on the server side to confirm this scenario. I can see the following requests: **1st Request** - Generate the authentication token with username/password. Successful HTTP 200 response with the token returned. My Custom Auth Handler uses this token to update the PreparedRequest.body **2nd Request** - Executed HTTP POST to the protected management console (that requires this token). Server responds with an HTTP Status code 302 (re-direct) with a new location in the response header (in this case it just added a '/' at the end of the path). I can see my authorization token in the request body **3rd Request** - Requests does follow the re-direct, however it is re-converted back to an HTTP GET and my token (from the body) is also lost. It does appear that my request headers did persist. Thoughts? Thanks for any help!!!
{ "avatar_url": "https://avatars.githubusercontent.com/u/8226358?v=4", "events_url": "https://api.github.com/users/pfoppe/events{/privacy}", "followers_url": "https://api.github.com/users/pfoppe/followers", "following_url": "https://api.github.com/users/pfoppe/following{/other_user}", "gists_url": "https://api.github.com/users/pfoppe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pfoppe", "id": 8226358, "login": "pfoppe", "node_id": "MDQ6VXNlcjgyMjYzNTg=", "organizations_url": "https://api.github.com/users/pfoppe/orgs", "received_events_url": "https://api.github.com/users/pfoppe/received_events", "repos_url": "https://api.github.com/users/pfoppe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pfoppe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pfoppe/subscriptions", "type": "User", "url": "https://api.github.com/users/pfoppe", "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/4040/reactions" }
https://api.github.com/repos/psf/requests/issues/4040/timeline
null
completed
null
null
false
[ "Have you considered having the auth handler be stored on the Session object, and also have it do its own request creation to obtain auth tokens? Essentially, if it has an auth token it will just add it to all requests, and if it doesn't it will obtain one by making its own brand new request instead of by mutating ...
https://api.github.com/repos/psf/requests/issues/4039
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4039/labels{/name}
https://api.github.com/repos/psf/requests/issues/4039/comments
https://api.github.com/repos/psf/requests/issues/4039/events
https://github.com/psf/requests/issues/4039
230,024,036
MDU6SXNzdWUyMzAwMjQwMzY=
4,039
GAE - not retrieving cookies from the response
{ "avatar_url": "https://avatars.githubusercontent.com/u/709053?v=4", "events_url": "https://api.github.com/users/cmin764/events{/privacy}", "followers_url": "https://api.github.com/users/cmin764/followers", "following_url": "https://api.github.com/users/cmin764/following{/other_user}", "gists_url": "https://api.github.com/users/cmin764/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cmin764", "id": 709053, "login": "cmin764", "node_id": "MDQ6VXNlcjcwOTA1Mw==", "organizations_url": "https://api.github.com/users/cmin764/orgs", "received_events_url": "https://api.github.com/users/cmin764/received_events", "repos_url": "https://api.github.com/users/cmin764/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cmin764/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cmin764/subscriptions", "type": "User", "url": "https://api.github.com/users/cmin764", "user_view_type": "public" }
[ { "color": "fef2c0", "default": false, "description": null, "id": 298537994, "name": "Needs More Information", "node_id": "MDU6TGFiZWwyOTg1Mzc5OTQ=", "url": "https://api.github.com/repos/psf/requests/labels/Needs%20More%20Information" }, { "color": "fbca04", "default": false,...
closed
true
null
[]
null
6
2017-05-19T16:22:24Z
2021-09-08T01:21:05Z
2018-08-04T12:31:39Z
NONE
resolved
I've found an issue when using requests with toolbelt through Google App Engine, because of the urllib3 patching with urlfetch. The problem is that the cookie jar is not populated due to a missing attribute (original_response) into the urllib3 response (when switching from sockets to urlfetch and using the HTTPAdapter through the toolbelt monkeypatch). The bug is self explained within this patch that I've made and works flawlessly into the GAE production and development environments: ```python """Runtime monkey-patching for various problematic libraries.""" import re import requests from requests.cookies import MockRequest class MockResponse(object): """Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`. ...what? Basically, expose the parsed HTTP headers from the server response the way `cookielib` expects to see them. """ SEPARATOR = re.compile(r",\s*(?=[\w-]+=)") def __init__(self, response): """Make a MockResponse for `cookielib` to read. :param response: a HTTPResponse or analogous carrying the headers """ self._response = response def info(self): return self def getheaders(self, name): headers = self._response.getheader(name) return self.SEPARATOR.split(headers) if headers else [] def extract_cookies_to_jar(jar, request, response): """Extract the cookies from the response into a CookieJar. :param jar: cookielib.CookieJar (not necessarily a RequestsCookieJar) :param request: our own requests.Request object :param response: urllib3.HTTPResponse object """ # the _original_response field is the wrapped httplib.HTTPResponse object, req = MockRequest(request) # pull out the HTTPMessage with the headers and put it in the mock: res = MockResponse(response) jar.extract_cookies(res, req) def _monkeypatch_requests(): """Monkey patch that problematic cookie extraction function.""" modules = [ # Patch the entire namespace within Python. requests.adapters, requests.auth, requests.cookies, requests.sessions, ] for module in modules: setattr(module, "extract_cookies_to_jar", extract_cookies_to_jar) def monkeypatch(): _monkeypatch_requests() ``` https://pastebin.com/FgDZfT8y You should integrate this somehow because is affecting everyone (that's the reason they switch to urlfetch, standard urllib or other primitives). 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": 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/4039/reactions" }
https://api.github.com/repos/psf/requests/issues/4039/timeline
null
completed
null
null
false
[ "Sorry, but it's not entirely clear to me where this bug is coming from. What code is causing this attribute to be missing? Because I don't think that problem is in the Requests code, is it?", "The issue: http://stackoverflow.com/questions/18080556/python-gae-requests-not-returning-cookies-after-get-request/44079...
https://api.github.com/repos/psf/requests/issues/4038
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4038/labels{/name}
https://api.github.com/repos/psf/requests/issues/4038/comments
https://api.github.com/repos/psf/requests/issues/4038/events
https://github.com/psf/requests/issues/4038
229,882,019
MDU6SXNzdWUyMjk4ODIwMTk=
4,038
The Host header is ignored?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1421477?v=4", "events_url": "https://api.github.com/users/GitBruno/events{/privacy}", "followers_url": "https://api.github.com/users/GitBruno/followers", "following_url": "https://api.github.com/users/GitBruno/following{/other_user}", "gists_url": "https://api.github.com/users/GitBruno/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/GitBruno", "id": 1421477, "login": "GitBruno", "node_id": "MDQ6VXNlcjE0MjE0Nzc=", "organizations_url": "https://api.github.com/users/GitBruno/orgs", "received_events_url": "https://api.github.com/users/GitBruno/received_events", "repos_url": "https://api.github.com/users/GitBruno/repos", "site_admin": false, "starred_url": "https://api.github.com/users/GitBruno/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GitBruno/subscriptions", "type": "User", "url": "https://api.github.com/users/GitBruno", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2017-05-19T06:25:31Z
2021-09-08T10:00:45Z
2017-05-19T13:48:17Z
NONE
resolved
I am unable to create a request using a relative path, even when I set the Host header. `requests.exceptions.MissingSchema: Invalid URL '/wiki/List_of_HTTP_header_fields': No schema supplied. Perhaps you meant http:///wiki/List_of_HTTP_header_fields?` I expect to be able to configure a Host header and use it in my request: headers = {'Host': 'en.wikipedia.org/wiki' } resp = requests.get("/List_of_HTTP_header_fields", headers=headers) resp = requests.get("/Virtual_hosting", headers=headers) > The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The port number may be omitted if the port is the standard port for the service requested. (Mandatory since HTTP/1.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/4038/reactions" }
https://api.github.com/repos/psf/requests/issues/4038/timeline
null
completed
null
null
false
[ "Thanks for this!\r\n\r\nI don't know why you expect to be able to do this: Requests has never allowed this, and never documented that it would be possible. We very intentionally require that users provide absolute URIs so there is no ambiguity: for example, in your examples above should Requests be using HTTP or H...
https://api.github.com/repos/psf/requests/issues/4037
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4037/labels{/name}
https://api.github.com/repos/psf/requests/issues/4037/comments
https://api.github.com/repos/psf/requests/issues/4037/events
https://github.com/psf/requests/issues/4037
229,640,099
MDU6SXNzdWUyMjk2NDAwOTk=
4,037
Two transport 'location' headers cause an incorrect url
{ "avatar_url": "https://avatars.githubusercontent.com/u/4683118?v=4", "events_url": "https://api.github.com/users/evgenykovalyov/events{/privacy}", "followers_url": "https://api.github.com/users/evgenykovalyov/followers", "following_url": "https://api.github.com/users/evgenykovalyov/following{/other_user}", "gists_url": "https://api.github.com/users/evgenykovalyov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/evgenykovalyov", "id": 4683118, "login": "evgenykovalyov", "node_id": "MDQ6VXNlcjQ2ODMxMTg=", "organizations_url": "https://api.github.com/users/evgenykovalyov/orgs", "received_events_url": "https://api.github.com/users/evgenykovalyov/received_events", "repos_url": "https://api.github.com/users/evgenykovalyov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/evgenykovalyov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/evgenykovalyov/subscriptions", "type": "User", "url": "https://api.github.com/users/evgenykovalyov", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-18T11:36:54Z
2021-09-08T10:00:46Z
2017-05-18T15:22:20Z
NONE
resolved
I noticed a bug while trying to simulate a login process for a service. At some point I receive a 302 response where there are two Location headers. ``` HTTP/1.1 302 Found Location: https://some_url.com/ Accept-Ranges: bytes Location: https://some_url.com/ ``` While using the ```Session``` object, I noticed that both Location values are merged into one value like this: ```python {'Location':'https://some_url.com/, https://some_url.com/'} ``` I added a temp split solution into ```SessionRedirectMixin.get_redirect_target()```, but I was wondering if you could come up with a permanent fix for this please? ```python if resp.is_redirect: location = resp.headers['location'] location = location.split(', ')[0] ``` Thanks in advance.
{ "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/4037/reactions" }
https://api.github.com/repos/psf/requests/issues/4037/timeline
null
completed
null
null
false
[ "So I'm rather certain this is an issue with urllib3's Header handler. It needs a whitelist of which headers are allowed to be repeated and which can be joined with a `,` like you found here.", "Hey @evgenykovalyov, thanks for taking the time to open this issue. This is actually a dupe of #2939 and should be solv...
https://api.github.com/repos/psf/requests/issues/4036
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4036/labels{/name}
https://api.github.com/repos/psf/requests/issues/4036/comments
https://api.github.com/repos/psf/requests/issues/4036/events
https://github.com/psf/requests/pull/4036
229,502,963
MDExOlB1bGxSZXF1ZXN0MTIxMTY0MzE0
4,036
Pin sphinx
{ "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" }
[]
closed
true
null
[]
null
1
2017-05-17T22:16:11Z
2021-09-06T00:06:57Z
2017-05-17T22:47:49Z
MEMBER
resolved
This will fix the build issues in Python 2.6 due to Sphinx's new requirement of `typing` in versions 1.6+. This pinning (capping) should only be in place until a solution for representing markers is introduced in Pipfile. While we're here doing cleanup, I've also removed the no longer needed `pipenv lock` before each build. Some preliminary tests show it saving 15-20% on the total build time for CI. We can scrap that though if it's not inline with the goal of the PR, getting the build working.
{ "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/4036/reactions" }
https://api.github.com/repos/psf/requests/issues/4036/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4036.diff", "html_url": "https://github.com/psf/requests/pull/4036", "merged_at": "2017-05-17T22:47:49Z", "patch_url": "https://github.com/psf/requests/pull/4036.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4036" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4036?src=pr&el=h1) Report\n> Merging [#4036](https://codecov.io/gh/kennethreitz/requests/pull/4036?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/0280a18b53aef5e09fa0a2886077b0ede5e89e79?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/4035
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4035/labels{/name}
https://api.github.com/repos/psf/requests/issues/4035/comments
https://api.github.com/repos/psf/requests/issues/4035/events
https://github.com/psf/requests/issues/4035
229,441,939
MDU6SXNzdWUyMjk0NDE5Mzk=
4,035
The case of the haunted stream request
{ "avatar_url": "https://avatars.githubusercontent.com/u/381280?v=4", "events_url": "https://api.github.com/users/jacquerie/events{/privacy}", "followers_url": "https://api.github.com/users/jacquerie/followers", "following_url": "https://api.github.com/users/jacquerie/following{/other_user}", "gists_url": "https://api.github.com/users/jacquerie/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jacquerie", "id": 381280, "login": "jacquerie", "node_id": "MDQ6VXNlcjM4MTI4MA==", "organizations_url": "https://api.github.com/users/jacquerie/orgs", "received_events_url": "https://api.github.com/users/jacquerie/received_events", "repos_url": "https://api.github.com/users/jacquerie/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jacquerie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jacquerie/subscriptions", "type": "User", "url": "https://api.github.com/users/jacquerie", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-17T18:08:29Z
2021-09-08T10:00:48Z
2017-05-17T18:15:29Z
NONE
resolved
Hi, I'm not sure if this is a bug in `requests` or a misconfiguration in the server I'm interacting with, but I have the following very puzzling result: ```python >>> from requests import get >>> response = get('http://edok01.tib.uni-hannover.de/edoks/e01dh15/815761511.pdf', stream=True) >>> next(response.iter_content(4)) '%PD' ``` which returns 3 characters instead of the 4 that I requested, but also: ```python >>> from requests import get >>> response = get('http://edok01.tib.uni-hannover.de/edoks/e01dh15/815761511.pdf', stream=True) >>> iter = response.iter_content(1) >>> next(iter) '%' >>> next(iter) 'P' >>> next(iter) 'D' >>> next(iter) 'F' ``` which instead returns all the 4 characters. Note also that this happens with both `unicode_decode=True` or `unicode_decode=False`. How is this possible? This is happening with `requests==2.14.2`. The description of the problem in https://github.com/kennethreitz/requests/issues/3980#issue-223287665 looks relevant, but its fix in #3984 looks less relevant. In fact, I still see the problem on a local checkout of `master`.
{ "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/4035/reactions" }
https://api.github.com/repos/psf/requests/issues/4035/timeline
null
completed
null
null
false
[ "`iter_content` transparently decompresses gzipped data received from the server. This means that when we receive bytes from the network we don't know how many bytes that will actually resolve into. For that reason, we don't guarantee that you'll get literally that number of bytes: we just promise that you won't ge...
https://api.github.com/repos/psf/requests/issues/4034
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4034/labels{/name}
https://api.github.com/repos/psf/requests/issues/4034/comments
https://api.github.com/repos/psf/requests/issues/4034/events
https://github.com/psf/requests/issues/4034
229,441,147
MDU6SXNzdWUyMjk0NDExNDc=
4,034
POST header Content-Length with negative value
{ "avatar_url": "https://avatars.githubusercontent.com/u/28763083?v=4", "events_url": "https://api.github.com/users/msvicky1206/events{/privacy}", "followers_url": "https://api.github.com/users/msvicky1206/followers", "following_url": "https://api.github.com/users/msvicky1206/following{/other_user}", "gists_url": "https://api.github.com/users/msvicky1206/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/msvicky1206", "id": 28763083, "login": "msvicky1206", "node_id": "MDQ6VXNlcjI4NzYzMDgz", "organizations_url": "https://api.github.com/users/msvicky1206/orgs", "received_events_url": "https://api.github.com/users/msvicky1206/received_events", "repos_url": "https://api.github.com/users/msvicky1206/repos", "site_admin": false, "starred_url": "https://api.github.com/users/msvicky1206/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/msvicky1206/subscriptions", "type": "User", "url": "https://api.github.com/users/msvicky1206", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-17T18:05:20Z
2021-09-08T10:00:48Z
2017-05-17T18:10:06Z
NONE
resolved
Im new to requests and to http methods. Im trying to test an server accepting http calls. As part of validation, Im trying to set negative value to 'Content-Length' header and expect 400 'Bad request' but requests.post() returns 200. I also observed that in POST request headers, content-length is modified to actual value as per the file data being uploaded. ```python In [75]: headers={'Date': 'Wed, 17 May 2017 08:45:39 GMT', 'Content-Length': '-50'} In [76]: data = open('/tmp/50').read() In [77]: out = requests.post(url=url, headers=headers, data=data) In [78]: out.request.headers Out[78]: {'Content-Length': '50', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.14.2', 'Connection': 'keep-alive', 'Date': 'Wed, 17 May 2017 08:45:39 GMT'} In [79]: out.headers Out[79]: { 'Content-Length': '37', 'Server': '1/1.0/', 'Connection': 'keep-alive', 'Date': 'Wed, 17 May 2017 18:01:08 GMT'} In [80]: out.status_code Out[80]: 201 ``` Am i missing something here? I have tested the same with curl, which responds back with 400 response code.
{ "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/4034/reactions" }
https://api.github.com/repos/psf/requests/issues/4034/timeline
null
completed
null
null
false
[ "Requests is not intended as a HTTP testing tool: in particular, it is not intended to allow you to craft malformed HTTP requests. If that's what you're looking for you'll need to find a different tool for that." ]
https://api.github.com/repos/psf/requests/issues/4033
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4033/labels{/name}
https://api.github.com/repos/psf/requests/issues/4033/comments
https://api.github.com/repos/psf/requests/issues/4033/events
https://github.com/psf/requests/pull/4033
229,436,675
MDExOlB1bGxSZXF1ZXN0MTIxMTE1MzAw
4,033
Test that the readme renders in CI.
{ "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
2
2017-05-17T17:47:58Z
2021-09-06T00:06:56Z
2017-05-18T01:41:01Z
MEMBER
resolved
Resolves #4030.
{ "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/4033/reactions" }
https://api.github.com/repos/psf/requests/issues/4033/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4033.diff", "html_url": "https://github.com/psf/requests/pull/4033", "merged_at": "2017-05-18T01:41:01Z", "patch_url": "https://github.com/psf/requests/pull/4033.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4033" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4033?src=pr&el=h1) Report\n> Merging [#4033](https://codecov.io/gh/kennethreitz/requests/pull/4033?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/da292953695122c84ac9e95b115142532a180fe1?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/4032
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4032/labels{/name}
https://api.github.com/repos/psf/requests/issues/4032/comments
https://api.github.com/repos/psf/requests/issues/4032/events
https://github.com/psf/requests/issues/4032
229,423,331
MDU6SXNzdWUyMjk0MjMzMzE=
4,032
Allow verify parameter to take a file-like object such as StringIO
{ "avatar_url": "https://avatars.githubusercontent.com/u/7624997?v=4", "events_url": "https://api.github.com/users/ronanpaixao/events{/privacy}", "followers_url": "https://api.github.com/users/ronanpaixao/followers", "following_url": "https://api.github.com/users/ronanpaixao/following{/other_user}", "gists_url": "https://api.github.com/users/ronanpaixao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ronanpaixao", "id": 7624997, "login": "ronanpaixao", "node_id": "MDQ6VXNlcjc2MjQ5OTc=", "organizations_url": "https://api.github.com/users/ronanpaixao/orgs", "received_events_url": "https://api.github.com/users/ronanpaixao/received_events", "repos_url": "https://api.github.com/users/ronanpaixao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ronanpaixao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ronanpaixao/subscriptions", "type": "User", "url": "https://api.github.com/users/ronanpaixao", "user_view_type": "public" }
[]
closed
true
null
[]
null
7
2017-05-17T16:56:54Z
2021-09-01T00:11:24Z
2017-05-17T16:59:05Z
NONE
resolved
Sometimes it is useful and more efficient to have SSL certificate data on memory, like when grabbing certificates from the Windows Certificate Store or some other non-file source. As it is implemented now, requests neither grabs the certificates from the OS nor allows simple usage from a file-like object. Thus, the user is forced to store the certificates in a temporary file to allow usage, or the request fails when trying `os.path.isdir` (line 224 of `adapters.py` on requests version 2.12.4). The unfortunate consequence is also that the dev has to keep the file as long as sessions, which is awkward specially for sessions which only request data occasionally. Otherwise, one has to grab all certificates again for each request. Both options also have the problem of leaving temp files if the process is terminated abruptly. Example use case (on Windows 7, Python 3.6): ```python import ssl import requests from io import StringIO # For Python 3.x from tempfile import NamedTemporaryFile # A site for which we have the CA in Windows Certificate Store (case of intranet on AD) url = "https://some.secure.intranet.site" requests.get(url) # Raises SSLError # Grab certificates from Windows Certificate Store # delete=False is required for some reason tempcertfile = NamedTemporaryFile('w', encoding='utf8',delete=False) memcertfile = StringIO() context = ssl.create_default_context() der_certs = context.get_ca_certs(binary_form=True) pem_certs = [ssl.DER_cert_to_PEM_cert(der) for der in der_certs] for pem in pem_certs: tempcertfile.write(pem + '\n') memcertfile.write(pem + '\n') tempcertfile.seek(0) memcertfile.seek(0) requests.get(url, verify=tempcertfile.name) # Works requests.get(url, verify=memcertfile) # Errors with a TypeError on adapters.py line 224 ```
{ "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": 4, "-1": 0, "confused": 0, "eyes": 1, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 5, "url": "https://api.github.com/repos/psf/requests/issues/4032/reactions" }
https://api.github.com/repos/psf/requests/issues/4032/timeline
null
completed
null
null
false
[ "Requests is unlikely to support this on the `verify` kwarg because it interacts very poorly with the API for pointing to a directory or file. However, you can use a Transport Adapter to pass an SSLContext object to do the validation, and this object can almost certainly load the data from a string. See [this expla...
https://api.github.com/repos/psf/requests/issues/4031
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4031/labels{/name}
https://api.github.com/repos/psf/requests/issues/4031/comments
https://api.github.com/repos/psf/requests/issues/4031/events
https://github.com/psf/requests/issues/4031
229,392,725
MDU6SXNzdWUyMjkzOTI3MjU=
4,031
unvendor dependencies for 3.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "color": "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": "fef2c0", "default": false, "descrip...
closed
true
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}...
{ "closed_at": 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" }
17
2017-05-17T15:26:43Z
2021-09-08T10:00:37Z
2017-05-27T03:50:42Z
CONTRIBUTOR
resolved
thoughts?
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/4031/reactions" }
https://api.github.com/repos/psf/requests/issues/4031/timeline
null
completed
null
null
false
[ "/cc @sigmavirus24 @Lukasa \r\n\r\nI'm not sold that it's a good idea. I just like change. Maybe it's time. ", "I'm not sold on it being a good idea either. Presently projects *may* do the following:\r\n\r\n```\r\n# requirements.txt\r\nrequests>=2.14.2\r\nurllib3==1.20.0\r\nchardet<2.0.0\r\n```\r\n\r\nIn this cas...
https://api.github.com/repos/psf/requests/issues/4030
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4030/labels{/name}
https://api.github.com/repos/psf/requests/issues/4030/comments
https://api.github.com/repos/psf/requests/issues/4030/events
https://github.com/psf/requests/issues/4030
229,375,476
MDU6SXNzdWUyMjkzNzU0NzY=
4,030
fix pypi page
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[ { "color": "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
true
null
[]
null
3
2017-05-17T14:38:38Z
2021-09-08T10:00:47Z
2017-05-18T01:41:01Z
CONTRIBUTOR
resolved
markup is bad https://pypi.python.org/pypi/requests/
{ "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/4030/reactions" }
https://api.github.com/repos/psf/requests/issues/4030/timeline
null
completed
null
null
false
[ "The `readme` package would help us detect this if we added it to our CI", "@sigmavirus24 i'm all for it! I think having that page in tip-top shape is top-priority!", "See #4033." ]
https://api.github.com/repos/psf/requests/issues/4029
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4029/labels{/name}
https://api.github.com/repos/psf/requests/issues/4029/comments
https://api.github.com/repos/psf/requests/issues/4029/events
https://github.com/psf/requests/pull/4029
229,373,463
MDExOlB1bGxSZXF1ZXN0MTIxMDcyOTE3
4,029
Fix #4025
{ "avatar_url": "https://avatars.githubusercontent.com/u/839339?v=4", "events_url": "https://api.github.com/users/kaptajnen/events{/privacy}", "followers_url": "https://api.github.com/users/kaptajnen/followers", "following_url": "https://api.github.com/users/kaptajnen/following{/other_user}", "gists_url": "https://api.github.com/users/kaptajnen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kaptajnen", "id": 839339, "login": "kaptajnen", "node_id": "MDQ6VXNlcjgzOTMzOQ==", "organizations_url": "https://api.github.com/users/kaptajnen/orgs", "received_events_url": "https://api.github.com/users/kaptajnen/received_events", "repos_url": "https://api.github.com/users/kaptajnen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kaptajnen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kaptajnen/subscriptions", "type": "User", "url": "https://api.github.com/users/kaptajnen", "user_view_type": "public" }
[]
closed
true
null
[]
null
10
2017-05-17T14:32:46Z
2021-09-06T00:06:55Z
2017-05-18T16:05:41Z
CONTRIBUTOR
resolved
Fixes #4025 by basically not doing anything when HTTP is used
{ "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/4029/reactions" }
https://api.github.com/repos/psf/requests/issues/4029/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4029.diff", "html_url": "https://github.com/psf/requests/pull/4029", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/4029.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4029" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4029?src=pr&el=h1) Report\n> Merging [#4029](https://codecov.io/gh/kennethreitz/requests/pull/4029?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/0280a18b53aef5e09fa0a2886077b0ede5e89e79?src=pr&el=desc) will **increase**...
https://api.github.com/repos/psf/requests/issues/4028
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4028/labels{/name}
https://api.github.com/repos/psf/requests/issues/4028/comments
https://api.github.com/repos/psf/requests/issues/4028/events
https://github.com/psf/requests/issues/4028
229,316,732
MDU6SXNzdWUyMjkzMTY3MzI=
4,028
Session send auth only with one request
{ "avatar_url": "https://avatars.githubusercontent.com/u/16837024?v=4", "events_url": "https://api.github.com/users/Smosker/events{/privacy}", "followers_url": "https://api.github.com/users/Smosker/followers", "following_url": "https://api.github.com/users/Smosker/following{/other_user}", "gists_url": "https://api.github.com/users/Smosker/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Smosker", "id": 16837024, "login": "Smosker", "node_id": "MDQ6VXNlcjE2ODM3MDI0", "organizations_url": "https://api.github.com/users/Smosker/orgs", "received_events_url": "https://api.github.com/users/Smosker/received_events", "repos_url": "https://api.github.com/users/Smosker/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Smosker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Smosker/subscriptions", "type": "User", "url": "https://api.github.com/users/Smosker", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-17T11:10:20Z
2021-09-08T10:00:49Z
2017-05-17T13:00:48Z
NONE
resolved
Using session object like this: ``` import requests session = requests.Session() session.auth = (u'user', 'test') session.verify = False response = session.get(url='https://my_url/rest/api/1.0/users') ``` if i looking for this response request headers i see: `{'Authorization': 'Basic auth_data', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.12.3'}` but if i send next request using the same url: `response = session.get(url='https://my_url/rest/api/1.0/users')` I can see that where is not auth header in request: ``` print response.request.headers {'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.12.3'} ``` And i getting 401 response because of it. Why is it so? Shouldnt session send auth with every request made using it? How can i send auth data with every request using session?
{ "avatar_url": "https://avatars.githubusercontent.com/u/16837024?v=4", "events_url": "https://api.github.com/users/Smosker/events{/privacy}", "followers_url": "https://api.github.com/users/Smosker/followers", "following_url": "https://api.github.com/users/Smosker/following{/other_user}", "gists_url": "https://api.github.com/users/Smosker/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Smosker", "id": 16837024, "login": "Smosker", "node_id": "MDQ6VXNlcjE2ODM3MDI0", "organizations_url": "https://api.github.com/users/Smosker/orgs", "received_events_url": "https://api.github.com/users/Smosker/received_events", "repos_url": "https://api.github.com/users/Smosker/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Smosker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Smosker/subscriptions", "type": "User", "url": "https://api.github.com/users/Smosker", "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/4028/reactions" }
https://api.github.com/repos/psf/requests/issues/4028/timeline
null
completed
null
null
false
[ "Solve problem - it was because of redirect" ]
https://api.github.com/repos/psf/requests/issues/4027
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4027/labels{/name}
https://api.github.com/repos/psf/requests/issues/4027/comments
https://api.github.com/repos/psf/requests/issues/4027/events
https://github.com/psf/requests/pull/4027
229,196,312
MDExOlB1bGxSZXF1ZXN0MTIwOTQ2MTY0
4,027
Include tests in sdist tarball
{ "avatar_url": "https://avatars.githubusercontent.com/u/504287?v=4", "events_url": "https://api.github.com/users/floppym/events{/privacy}", "followers_url": "https://api.github.com/users/floppym/followers", "following_url": "https://api.github.com/users/floppym/following{/other_user}", "gists_url": "https://api.github.com/users/floppym/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/floppym", "id": 504287, "login": "floppym", "node_id": "MDQ6VXNlcjUwNDI4Nw==", "organizations_url": "https://api.github.com/users/floppym/orgs", "received_events_url": "https://api.github.com/users/floppym/received_events", "repos_url": "https://api.github.com/users/floppym/repos", "site_admin": false, "starred_url": "https://api.github.com/users/floppym/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/floppym/subscriptions", "type": "User", "url": "https://api.github.com/users/floppym", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-16T23:24:10Z
2021-09-06T00:06:56Z
2017-05-18T15:24:27Z
CONTRIBUTOR
resolved
Fixes: https://github.com/kennethreitz/requests/issues/4024
{ "avatar_url": "https://avatars.githubusercontent.com/u/504287?v=4", "events_url": "https://api.github.com/users/floppym/events{/privacy}", "followers_url": "https://api.github.com/users/floppym/followers", "following_url": "https://api.github.com/users/floppym/following{/other_user}", "gists_url": "https://api.github.com/users/floppym/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/floppym", "id": 504287, "login": "floppym", "node_id": "MDQ6VXNlcjUwNDI4Nw==", "organizations_url": "https://api.github.com/users/floppym/orgs", "received_events_url": "https://api.github.com/users/floppym/received_events", "repos_url": "https://api.github.com/users/floppym/repos", "site_admin": false, "starred_url": "https://api.github.com/users/floppym/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/floppym/subscriptions", "type": "User", "url": "https://api.github.com/users/floppym", "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/4027/reactions" }
https://api.github.com/repos/psf/requests/issues/4027/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4027.diff", "html_url": "https://github.com/psf/requests/pull/4027", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/4027.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4027" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4027?src=pr&el=h1) Report\n> Merging [#4027](https://codecov.io/gh/kennethreitz/requests/pull/4027?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/0280a18b53aef5e09fa0a2886077b0ede5e89e79?src=pr&el=desc) will **decrease**...
https://api.github.com/repos/psf/requests/issues/4026
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4026/labels{/name}
https://api.github.com/repos/psf/requests/issues/4026/comments
https://api.github.com/repos/psf/requests/issues/4026/events
https://github.com/psf/requests/pull/4026
229,192,828
MDExOlB1bGxSZXF1ZXN0MTIwOTQzNTg0
4,026
Include tests in sdist tarball
{ "avatar_url": "https://avatars.githubusercontent.com/u/504287?v=4", "events_url": "https://api.github.com/users/floppym/events{/privacy}", "followers_url": "https://api.github.com/users/floppym/followers", "following_url": "https://api.github.com/users/floppym/following{/other_user}", "gists_url": "https://api.github.com/users/floppym/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/floppym", "id": 504287, "login": "floppym", "node_id": "MDQ6VXNlcjUwNDI4Nw==", "organizations_url": "https://api.github.com/users/floppym/orgs", "received_events_url": "https://api.github.com/users/floppym/received_events", "repos_url": "https://api.github.com/users/floppym/repos", "site_admin": false, "starred_url": "https://api.github.com/users/floppym/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/floppym/subscriptions", "type": "User", "url": "https://api.github.com/users/floppym", "user_view_type": "public" }
[]
closed
true
null
[]
null
10
2017-05-16T23:02:02Z
2021-09-06T00:06:56Z
2017-05-18T14:50:40Z
CONTRIBUTOR
resolved
Fixes: https://github.com/kennethreitz/requests/issues/4024
{ "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/4026/reactions" }
https://api.github.com/repos/psf/requests/issues/4026/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4026.diff", "html_url": "https://github.com/psf/requests/pull/4026", "merged_at": "2017-05-18T14:50:40Z", "patch_url": "https://github.com/psf/requests/pull/4026.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4026" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4026?src=pr&el=h1) Report\n> Merging [#4026](https://codecov.io/gh/kennethreitz/requests/pull/4026?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/0280a18b53aef5e09fa0a2886077b0ede5e89e79?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/4025
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4025/labels{/name}
https://api.github.com/repos/psf/requests/issues/4025/comments
https://api.github.com/repos/psf/requests/issues/4025/events
https://github.com/psf/requests/issues/4025
229,176,490
MDU6SXNzdWUyMjkxNzY0OTA=
4,025
Session with cert set can't do HTTP connections
{ "avatar_url": "https://avatars.githubusercontent.com/u/839339?v=4", "events_url": "https://api.github.com/users/kaptajnen/events{/privacy}", "followers_url": "https://api.github.com/users/kaptajnen/followers", "following_url": "https://api.github.com/users/kaptajnen/following{/other_user}", "gists_url": "https://api.github.com/users/kaptajnen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kaptajnen", "id": 839339, "login": "kaptajnen", "node_id": "MDQ6VXNlcjgzOTMzOQ==", "organizations_url": "https://api.github.com/users/kaptajnen/orgs", "received_events_url": "https://api.github.com/users/kaptajnen/received_events", "repos_url": "https://api.github.com/users/kaptajnen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kaptajnen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kaptajnen/subscriptions", "type": "User", "url": "https://api.github.com/users/kaptajnen", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-16T21:37:15Z
2021-09-08T10:00:46Z
2017-05-18T16:05:15Z
CONTRIBUTOR
resolved
It is not clear from the documentation if this is supposed to work, but it did work previously. If you set the cert attribute on a Session and then make an HTTP request, an AttributeError exception is thrown since `key_file` does not exist on an HTTPConnectionPool object. This behavior was introduced in [this commit](https://github.com/kennethreitz/requests/commit/7d8b87c37f3a5fb993fd83eda6888ac217cd108e#diff-31f6e77c031977d33226530924b4337aR243) From what I can tell it would continue to work if the certificate was set as a tuple instead, since that would then add the key_file attribute to the HTTPConnectionPool a few lines above. >>> import requests >>> s = requests.Session() >>> s.cert='/path/to/file.pem' >>> s.get('http://example.com') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 531, in get return self.request('GET', url, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 518, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 639, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 407, in send self.cert_verify(conn, request.url, verify, cert) File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 247, in cert_verify if conn.key_file and not os.path.exists(conn.key_file): AttributeError: 'HTTPConnectionPool' object has no attribute 'key_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" }
{ "+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/4025/reactions" }
https://api.github.com/repos/psf/requests/issues/4025/timeline
null
completed
null
null
false
[ "Yup, this is definitely a bug. Feel free to take a swing at this if you're interested, otherwise I'll try to fix it tomorrow. ", "I've added a pull request. I'm not familiar with the requests code but I think my simple fix of just not doing anything unless HTTPS is used should work (the tests pass at least)." ]
https://api.github.com/repos/psf/requests/issues/4024
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4024/labels{/name}
https://api.github.com/repos/psf/requests/issues/4024/comments
https://api.github.com/repos/psf/requests/issues/4024/events
https://github.com/psf/requests/issues/4024
229,157,926
MDU6SXNzdWUyMjkxNTc5MjY=
4,024
pypi tarballs are missing tests directory
{ "avatar_url": "https://avatars.githubusercontent.com/u/504287?v=4", "events_url": "https://api.github.com/users/floppym/events{/privacy}", "followers_url": "https://api.github.com/users/floppym/followers", "following_url": "https://api.github.com/users/floppym/following{/other_user}", "gists_url": "https://api.github.com/users/floppym/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/floppym", "id": 504287, "login": "floppym", "node_id": "MDQ6VXNlcjUwNDI4Nw==", "organizations_url": "https://api.github.com/users/floppym/orgs", "received_events_url": "https://api.github.com/users/floppym/received_events", "repos_url": "https://api.github.com/users/floppym/repos", "site_admin": false, "starred_url": "https://api.github.com/users/floppym/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/floppym/subscriptions", "type": "User", "url": "https://api.github.com/users/floppym", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2017-05-16T20:24:06Z
2021-09-08T10:00:47Z
2017-05-18T14:50:40Z
CONTRIBUTOR
resolved
The tests are missing from the pypi tarballs for at least a few releases. Oddly, when I run `python setup.py sdist` from a git checkout, the resulting tarball does have the tests; I'm not sure how that is working.
{ "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/4024/reactions" }
https://api.github.com/repos/psf/requests/issues/4024/timeline
null
completed
null
null
false
[ "Which releases are affected?", "@Lukasa, I believe this is related to moving the tests into their own directory starting in 2.10.\r\n\r\n#4015 probably should have been to change test_requests.py to 'tests' in MANIFEST.in rather than removing the bad filename.", "I checked the tarballs for the following releas...
https://api.github.com/repos/psf/requests/issues/4023
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4023/labels{/name}
https://api.github.com/repos/psf/requests/issues/4023/comments
https://api.github.com/repos/psf/requests/issues/4023/events
https://github.com/psf/requests/issues/4023
229,144,728
MDU6SXNzdWUyMjkxNDQ3Mjg=
4,023
Requests extremely slow compared to urllib.request.urlopen
{ "avatar_url": "https://avatars.githubusercontent.com/u/1117703?v=4", "events_url": "https://api.github.com/users/dhimmel/events{/privacy}", "followers_url": "https://api.github.com/users/dhimmel/followers", "following_url": "https://api.github.com/users/dhimmel/following{/other_user}", "gists_url": "https://api.github.com/users/dhimmel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhimmel", "id": 1117703, "login": "dhimmel", "node_id": "MDQ6VXNlcjExMTc3MDM=", "organizations_url": "https://api.github.com/users/dhimmel/orgs", "received_events_url": "https://api.github.com/users/dhimmel/received_events", "repos_url": "https://api.github.com/users/dhimmel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhimmel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhimmel/subscriptions", "type": "User", "url": "https://api.github.com/users/dhimmel", "user_view_type": "public" }
[]
closed
true
null
[]
null
9
2017-05-16T19:32:59Z
2018-11-04T13:37:11Z
2017-05-17T17:20:05Z
NONE
resolved
I'm having poor performance getting the following URL using requests: ``` http://greycite.knowledgeblog.org/json?uri=http%3A%2F%2Fblog.dhimmel.com%2Firreproducible-timestamps%2F ``` The following notebook screenshot highlights the issue: ![requests-greycite](https://cloud.githubusercontent.com/assets/1117703/26124486/9889fb90-3a4c-11e7-84c3-404bab7b212c.png) Less than a second using `urllib.request.urlopen` but 15 seconds using `requests.get`. I've evaluated `curl` and my web browser, which both retrieve the response quickly. It looks like the holdup is on `{method 'recv_into' of '_socket.socket' objects}`. Any help would be appreciated.
{ "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/4023/reactions" }
https://api.github.com/repos/psf/requests/issues/4023/timeline
null
completed
null
null
false
[ "Just to remove influence from importing the modules, could you repeat the tests measuring the time, after the `import` statements?", "> could you repeat the tests measuring the time, after the import statements?\r\n\r\n@HelioGuilherme66 see below:\r\n\r\n![requests-greycite-2](https://cloud.githubusercontent.com...
https://api.github.com/repos/psf/requests/issues/4022
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4022/labels{/name}
https://api.github.com/repos/psf/requests/issues/4022/comments
https://api.github.com/repos/psf/requests/issues/4022/events
https://github.com/psf/requests/issues/4022
228,820,126
MDU6SXNzdWUyMjg4MjAxMjY=
4,022
Handling of URLs with unicode in python 2.7
{ "avatar_url": "https://avatars.githubusercontent.com/u/2691631?v=4", "events_url": "https://api.github.com/users/lee-hodg/events{/privacy}", "followers_url": "https://api.github.com/users/lee-hodg/followers", "following_url": "https://api.github.com/users/lee-hodg/following{/other_user}", "gists_url": "https://api.github.com/users/lee-hodg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lee-hodg", "id": 2691631, "login": "lee-hodg", "node_id": "MDQ6VXNlcjI2OTE2MzE=", "organizations_url": "https://api.github.com/users/lee-hodg/orgs", "received_events_url": "https://api.github.com/users/lee-hodg/received_events", "repos_url": "https://api.github.com/users/lee-hodg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lee-hodg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lee-hodg/subscriptions", "type": "User", "url": "https://api.github.com/users/lee-hodg", "user_view_type": "public" }
[]
closed
true
null
[]
null
16
2017-05-15T19:33:39Z
2021-09-08T10:00:49Z
2017-05-16T23:44:03Z
NONE
resolved
Consider the URL: `https://www.sainsburys.co.uk/shop/gb/groceries/chablis/chablis-premièr-cru-brocard-75cl`. This URL contains the unicode character u`è`. If you open in most major browsers there should be no problem, similarly cURLing like `curl -L 'https://www.sainsburys.co.uk/shop/gb/groceries/chabllis-premi%C3%A8r-cru-brocard-75cl'` works without issue (i.e. we request the percent encoded utf8 encoded URL). However if we try to get this url with python requests as follows: unicode_url = u'https://www.sainsburys.co.uk/shop/gb/groceries/chablis/chablis-premièr-cru-brocard-75cl' r = requests.get(unicode_url) then it will 404. At this point I considered that maybe I just need to UTF8 encode the url and pass the byte str to requests: r = requests.get(unicode_url.encode('utf8')) Nope, 404 again. Finally I considered also manually doing the percent encoding (although I'm sure requests deals with this): r = requests.get(urllib.quote(unicode_url.encode('utf8'))) Nope, it really doesn't like that. I also tried `requests.get(unicode_url.encode('latin1'))` but now got a UnicodeDecodeError (presumably because requests is attempting to decode with utf8). So how on earth can I request this URL in python-requests in python 2.7?
{ "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/4022/reactions" }
https://api.github.com/repos/psf/requests/issues/4022/timeline
null
completed
null
null
false
[ "Just adding some local testing to see what the web server is seeing. With a local HTTP server running and then running this:\r\n```python\r\nimport requests\r\nrequests.get(u'http://127.0.0.1:8000/è')\r\n```\r\nThe web server receives this as the HTTP header:\r\n`127.0.0.1 - - [15/May/2017 14:52:35] \"GET /%C3%A8 ...
https://api.github.com/repos/psf/requests/issues/4021
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4021/labels{/name}
https://api.github.com/repos/psf/requests/issues/4021/comments
https://api.github.com/repos/psf/requests/issues/4021/events
https://github.com/psf/requests/issues/4021
228,673,701
MDU6SXNzdWUyMjg2NzM3MDE=
4,021
Requests issue with PyInstaller: Import error: No module named ordered_dict
{ "avatar_url": "https://avatars.githubusercontent.com/u/28704581?v=4", "events_url": "https://api.github.com/users/pablocoo/events{/privacy}", "followers_url": "https://api.github.com/users/pablocoo/followers", "following_url": "https://api.github.com/users/pablocoo/following{/other_user}", "gists_url": "https://api.github.com/users/pablocoo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pablocoo", "id": 28704581, "login": "pablocoo", "node_id": "MDQ6VXNlcjI4NzA0NTgx", "organizations_url": "https://api.github.com/users/pablocoo/orgs", "received_events_url": "https://api.github.com/users/pablocoo/received_events", "repos_url": "https://api.github.com/users/pablocoo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pablocoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pablocoo/subscriptions", "type": "User", "url": "https://api.github.com/users/pablocoo", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-15T10:38:53Z
2021-09-08T10:00:51Z
2017-05-15T11:49:58Z
NONE
resolved
I'm trying to create executable for my script, which uses `requests `module. When running I get error: > Import error: No module named ordered_dict After further inspection the problem occurs in requests/compat.py file, on: `from .packages.urllib3.packages.ordered_dict import OrderedDict` I think the the problem is fact, that module is imported from subdirectory, but in my environment requests/packages does not contain other modules, as they are imported externally. requests/packages/__init__.py contains some workaround that allows to correcly import required libraries: > ''' Debian and other distributions "unbundle" requests' vendored dependencies, and rewrite all imports to use the global versions of ``urllib3`` and ``chardet``. The problem with this is that not only requests itself imports those dependencies, but third-party code outside of the distros' control too. In reaction to these problems, the distro maintainers replaced ``requests.packages`` with a magical "stub module" that imports the correct modules. The implementations were varying in quality and all had severe problems. For example, a symlink (or hardlink) that links the correct modules into place introduces problems regarding object identity, since you now have two modules in `sys.modules` with the same API, but different identities:: `requests.packages.urllib3 is not urllib3` With version ``2.5.2``, requests started to maintain its own stub, so that distro-specific breakage would be reduced to a minimum, even though the whole issue is not requests' fault in the first place. See https://github.com/kennethreitz/requests/pull/2375 for the corresponding pull request.''' ``` from __future__ import absolute_import import sys try: from . import urllib3 except ImportError: import urllib3 sys.modules['%s.urllib3' % __name__] = urllib3 try: from . import chardet except ImportError: import chardet sys.modules['%s.chardet' % __name__] = chardet ``` But PyInstaller doesn't seem to recognize it. Is there an option/hook to use this configuration? I'm using: Ubuntu Mate, 16.04.2 LTS requests - 2.9.1 - installed through pip Pyinstaller - 3.2.1 - compiled from source
{ "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/4021/reactions" }
https://api.github.com/repos/psf/requests/issues/4021/timeline
null
completed
null
null
false
[ "This is a PyInstaller problem, not a Requests one. When you install Requests from pip, it comes with the packages subdirectory populated. If it's not being populated when you use PyInstaller, then PyInstaller has lost track of what code it needs. You'll need to take it up with the maintainers of PyInstaller." ]
https://api.github.com/repos/psf/requests/issues/4020
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4020/labels{/name}
https://api.github.com/repos/psf/requests/issues/4020/comments
https://api.github.com/repos/psf/requests/issues/4020/events
https://github.com/psf/requests/issues/4020
228,543,096
MDU6SXNzdWUyMjg1NDMwOTY=
4,020
GAE - Error during the import _winreg
{ "avatar_url": "https://avatars.githubusercontent.com/u/11619400?v=4", "events_url": "https://api.github.com/users/avilla-br/events{/privacy}", "followers_url": "https://api.github.com/users/avilla-br/followers", "following_url": "https://api.github.com/users/avilla-br/following{/other_user}", "gists_url": "https://api.github.com/users/avilla-br/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avilla-br", "id": 11619400, "login": "avilla-br", "node_id": "MDQ6VXNlcjExNjE5NDAw", "organizations_url": "https://api.github.com/users/avilla-br/orgs", "received_events_url": "https://api.github.com/users/avilla-br/received_events", "repos_url": "https://api.github.com/users/avilla-br/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avilla-br/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avilla-br/subscriptions", "type": "User", "url": "https://api.github.com/users/avilla-br", "user_view_type": "public" }
[ { "color": "fbca04", "default": false, "description": null, "id": 615414998, "name": "GAE Support", "node_id": "MDU6TGFiZWw2MTU0MTQ5OTg=", "url": "https://api.github.com/repos/psf/requests/labels/GAE%20Support" } ]
closed
true
null
[]
null
13
2017-05-14T13:49:36Z
2021-09-08T07:00:35Z
2017-07-29T23:01:08Z
NONE
resolved
Hi, I use GAE - Google Application Engine - and my project raises error during 'import requests' when it is ran under GAE sandbox (locally). GAE doesn't have _winreg in sys.modules and the _winreg is called by platform.py. In platform.py: system() function -> uname() -> win32_ver() -> import _winreg. 'platform' now is used in requests/utils.py after the commit '**proxy bypass on Windows without DNS lookups**' by @schlamar. I don't know why GAE doesn't import _winreg. It seems GAE was developed in Unix-like platform. ![imagem001](https://cloud.githubusercontent.com/assets/11619400/26034212/95ce62d8-388f-11e7-9fb6-354e57ab0d3f.png) If I copy an old requests version to my project (without import platform) and it works nice. I'm not sure if this is a problem with the Requests project or Google. Regards, André
{ "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/4020/reactions" }
https://api.github.com/repos/psf/requests/issues/4020/timeline
null
completed
null
null
false
[ "It's a problem with Requests: we removed some error handling code there as we didn't think there was any situation where that module would not be present: apparently we were wrong. 😟\r\n\r\n@schlamar; want to fix this up?", "Remark: I use Windows 10 and Python 2.7, because it is a GAE limitation. I want to impo...
https://api.github.com/repos/psf/requests/issues/4019
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4019/labels{/name}
https://api.github.com/repos/psf/requests/issues/4019/comments
https://api.github.com/repos/psf/requests/issues/4019/events
https://github.com/psf/requests/issues/4019
228,407,219
MDU6SXNzdWUyMjg0MDcyMTk=
4,019
OpenSSL issue when vendoring requests
{ "avatar_url": "https://avatars.githubusercontent.com/u/14895024?v=4", "events_url": "https://api.github.com/users/jonathan-ku-reflektion/events{/privacy}", "followers_url": "https://api.github.com/users/jonathan-ku-reflektion/followers", "following_url": "https://api.github.com/users/jonathan-ku-reflektion/following{/other_user}", "gists_url": "https://api.github.com/users/jonathan-ku-reflektion/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jonathan-ku-reflektion", "id": 14895024, "login": "jonathan-ku-reflektion", "node_id": "MDQ6VXNlcjE0ODk1MDI0", "organizations_url": "https://api.github.com/users/jonathan-ku-reflektion/orgs", "received_events_url": "https://api.github.com/users/jonathan-ku-reflektion/received_events", "repos_url": "https://api.github.com/users/jonathan-ku-reflektion/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jonathan-ku-reflektion/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathan-ku-reflektion/subscriptions", "type": "User", "url": "https://api.github.com/users/jonathan-ku-reflektion", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-12T21:01:22Z
2021-09-08T10:00:50Z
2017-05-13T14:14:28Z
NONE
resolved
I was trying to vendor requests in my own library. I used a similar vendoring structure as requests and I put requests under ceslib/packages However, when I am trying to send a HTTPS request, I see the following error. It seems like OpenSSL needs to be vendored by requests too? Code Snippet: ``` import packages.requests as requests self._session = requests.Session() req = requests.Request('GET', 'https://www.google.com') req = self._session.prepare_request(req) response = self._session.send(req) ``` Error: ```Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/adapters.py", line 423, in send timeout=timeout File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request self._validate_conn(conn) File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/packages/urllib3/connectionpool.py", line 844, in _validate_conn conn.connect() File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/packages/urllib3/connection.py", line 326, in connect ssl_context=context) File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/packages/urllib3/util/ssl_.py", line 308, in ssl_wrap_socket context.load_verify_locations(ca_certs, ca_cert_dir) File "/usr/lib/python2.7/site-packages/ceslib/packages/requests/packages/urllib3/contrib/pyopenssl.py", line 411, in load_verify_locations self._ctx.load_verify_locations(cafile, capath) File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 525, in load_verify_locations _raise_current_error() File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue raise exception_type(errors) OpenSSL.SSL.Error: [('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'BIO_new_file', 'no such file'), ('x509 certificate routines', 'X509_load_cert_crl_file', 'system lib')]```
{ "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/4019/reactions" }
https://api.github.com/repos/psf/requests/issues/4019/timeline
null
completed
null
null
false
[ "Nope, you aren't missing OpenSSL, you're missing the certs bundle `cacerts.pem` in the requests code directory. Looks like you misplaced it in your vendoring.", "Thank you. Was able to solve this problem by updating the vendored version from 2.13.0 to 2.14.2" ]
https://api.github.com/repos/psf/requests/issues/4018
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4018/labels{/name}
https://api.github.com/repos/psf/requests/issues/4018/comments
https://api.github.com/repos/psf/requests/issues/4018/events
https://github.com/psf/requests/issues/4018
228,350,588
MDU6SXNzdWUyMjgzNTA1ODg=
4,018
requests.exceptions.SSLError.__str__ returns non-string type
{ "avatar_url": "https://avatars.githubusercontent.com/u/10983875?v=4", "events_url": "https://api.github.com/users/dev-dull/events{/privacy}", "followers_url": "https://api.github.com/users/dev-dull/followers", "following_url": "https://api.github.com/users/dev-dull/following{/other_user}", "gists_url": "https://api.github.com/users/dev-dull/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dev-dull", "id": 10983875, "login": "dev-dull", "node_id": "MDQ6VXNlcjEwOTgzODc1", "organizations_url": "https://api.github.com/users/dev-dull/orgs", "received_events_url": "https://api.github.com/users/dev-dull/received_events", "repos_url": "https://api.github.com/users/dev-dull/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dev-dull/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dev-dull/subscriptions", "type": "User", "url": "https://api.github.com/users/dev-dull", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-12T16:58:01Z
2021-09-08T10:00:52Z
2017-05-12T17:02:10Z
NONE
resolved
requests 2.4.3 python 2.7.9 os: Debian Jesse I looked through the release notes from 2.4.3 to present and didn't see this one as fixed. Issue: requests.exceptions.SSLError is raised, but when the error is printed or cast to string, another error is thrown stating that __str__ returned a non-string. Just to restate: the non-string value is the issue here. I'm not yet sure how to reproduce as we were doing some wacky things. If I'm successful in reproducing this, I'll follow-up with steps. I was using python/requests to troubleshoot a 'connection reset by peer' error at work and we made the following manipulations: - changed `/etc/hosts` to point a domain at a test IP. - added a 'Host' header that referred back at that domain. - hit an HTTPS/SSL URL on that domain -- because of previous changes, the cert and domain likely mismatch -- This URL does a 302 redirect (it's a redirect service) - requests.exceptions.SSLError is raised and caught as expected - printing the error and casting the error as `str()` raises an error about __str__ returning a non-string. - iirc, this issue still existed when I set `verify=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/4018/reactions" }
https://api.github.com/repos/psf/requests/issues/4018/timeline
null
completed
null
null
false
[ "Before reporting this issue to us, can you please report to the Debian maintainers? We are no longer providing support for 2.4.3, so unless it can be reproduced on the current release we're not really able to do much for you. However, the Debian maintainers from whom you installed the package *are* supporting that...
https://api.github.com/repos/psf/requests/issues/4017
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4017/labels{/name}
https://api.github.com/repos/psf/requests/issues/4017/comments
https://api.github.com/repos/psf/requests/issues/4017/events
https://github.com/psf/requests/issues/4017
227,782,610
MDU6SXNzdWUyMjc3ODI2MTA=
4,017
Cookies not passed to redirect
{ "avatar_url": "https://avatars.githubusercontent.com/u/7799980?v=4", "events_url": "https://api.github.com/users/allComputableThings/events{/privacy}", "followers_url": "https://api.github.com/users/allComputableThings/followers", "following_url": "https://api.github.com/users/allComputableThings/following{/other_user}", "gists_url": "https://api.github.com/users/allComputableThings/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/allComputableThings", "id": 7799980, "login": "allComputableThings", "node_id": "MDQ6VXNlcjc3OTk5ODA=", "organizations_url": "https://api.github.com/users/allComputableThings/orgs", "received_events_url": "https://api.github.com/users/allComputableThings/received_events", "repos_url": "https://api.github.com/users/allComputableThings/repos", "site_admin": false, "starred_url": "https://api.github.com/users/allComputableThings/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/allComputableThings/subscriptions", "type": "User", "url": "https://api.github.com/users/allComputableThings", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-10T19:17:30Z
2021-09-08T10:00:53Z
2017-05-10T20:29:27Z
NONE
resolved
If I: `requests.post(LOGIN_URL, data=DATA, headers=HEADERS)` and the initial response is a redirect with with new cookies in the response, it seems the cookies are passed to the redirected request and the above may receive no cookies. :-( If I do `requests.post(LOGIN_URL, data=DATA, headers=HEADERS, allow_redirects=False)` then I do get back cookies, but then have to extract the cookie, and add them to a new request for the redirected URL. If the redirect is to the same domain, it would be helpful to have the returned cookies passed to the second request where `allow_redirects=True`, emulating a browser's treatment of cookies.
{ "avatar_url": "https://avatars.githubusercontent.com/u/7799980?v=4", "events_url": "https://api.github.com/users/allComputableThings/events{/privacy}", "followers_url": "https://api.github.com/users/allComputableThings/followers", "following_url": "https://api.github.com/users/allComputableThings/following{/other_user}", "gists_url": "https://api.github.com/users/allComputableThings/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/allComputableThings", "id": 7799980, "login": "allComputableThings", "node_id": "MDQ6VXNlcjc3OTk5ODA=", "organizations_url": "https://api.github.com/users/allComputableThings/orgs", "received_events_url": "https://api.github.com/users/allComputableThings/received_events", "repos_url": "https://api.github.com/users/allComputableThings/repos", "site_admin": false, "starred_url": "https://api.github.com/users/allComputableThings/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/allComputableThings/subscriptions", "type": "User", "url": "https://api.github.com/users/allComputableThings", "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/4017/reactions" }
https://api.github.com/repos/psf/requests/issues/4017/timeline
null
completed
null
null
false
[ "Sorry, I need some more information. Requests absolutely *does* persist cookies like a browser does. Where are your cookies coming from? Are you setting them in the headers, or is the server setting them?", "This is the behavior for 2.14.2\r\n\r\nWithout redirects:\r\n```\r\n r = requests.post(LOGIN_URL, data=...
https://api.github.com/repos/psf/requests/issues/4016
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4016/labels{/name}
https://api.github.com/repos/psf/requests/issues/4016/comments
https://api.github.com/repos/psf/requests/issues/4016/events
https://github.com/psf/requests/issues/4016
227,760,094
MDU6SXNzdWUyMjc3NjAwOTQ=
4,016
Error when requesting subdomain from localhost
{ "avatar_url": "https://avatars.githubusercontent.com/u/9379317?v=4", "events_url": "https://api.github.com/users/markokajzer/events{/privacy}", "followers_url": "https://api.github.com/users/markokajzer/followers", "following_url": "https://api.github.com/users/markokajzer/following{/other_user}", "gists_url": "https://api.github.com/users/markokajzer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/markokajzer", "id": 9379317, "login": "markokajzer", "node_id": "MDQ6VXNlcjkzNzkzMTc=", "organizations_url": "https://api.github.com/users/markokajzer/orgs", "received_events_url": "https://api.github.com/users/markokajzer/received_events", "repos_url": "https://api.github.com/users/markokajzer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/markokajzer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/markokajzer/subscriptions", "type": "User", "url": "https://api.github.com/users/markokajzer", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-10T17:50:07Z
2021-09-08T10:00:54Z
2017-05-10T19:07:42Z
NONE
resolved
Requesting a subdomain from localhost does not work. As you can see requesting a url without subdomain from localhost works. When adding a subdomain "[Errno 8] nodename nor servname provided, or not known" is raised. ```python import requests requests.get('http://localhost:3000/highlights') ==> <Response [404]> requests.get('http://api.localhost:3000/highlights') ==> Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/connection.py", line 138, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/util/connection.py", line 75, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 743, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 8] nodename nor servname provided, or not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen chunked=chunked) File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 361, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send self.connect() File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/connection.py", line 163, in connect conn = self._new_conn() File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/connection.py", line 147, in _new_conn self, "Failed to establish a new connection: %s" % e) requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x105a18470>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 423, in send timeout=timeout File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 643, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/util/retry.py", line 363, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='api.localhost', port=3000): Max retries exceeded with url: /highlights (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x105a18470>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 70, in get return request('get', url, params=params, **kwargs) File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 56, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 487, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.localhost', port=3000): Max retries exceeded with url: /highlights (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x105a18470>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)) ``` Any ideas how to make this work?
{ "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/4016/reactions" }
https://api.github.com/repos/psf/requests/issues/4016/timeline
null
completed
null
null
false
[ "You need to add a hosts file entry. Sub domains of local host do not automatically resolve to the loop back address, and generally speaking are not well defined. This problem is really nothing to do with Requests: your OS is responsible for resolving names into IP addresses." ]
https://api.github.com/repos/psf/requests/issues/4015
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4015/labels{/name}
https://api.github.com/repos/psf/requests/issues/4015/comments
https://api.github.com/repos/psf/requests/issues/4015/events
https://github.com/psf/requests/pull/4015
227,732,129
MDExOlB1bGxSZXF1ZXN0MTE5OTIxNDc4
4,015
remove old test_requests.py listing from MANIFEST.in
{ "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" }
[]
closed
true
null
[]
null
1
2017-05-10T16:06:54Z
2021-09-05T00:07:17Z
2017-05-10T19:04:04Z
MEMBER
resolved
This is a trivial fix to address a warning pointed out in #4012. `test_requests.py` was moved from the top level directory into the `tests` directory in 2.10.0 but the MANIFEST.in wasn't updated afterwards. Installing from setup.py produces a warning (`no files found matching 'test_requests.py'`). This patch will remove the unneeded listing and keep the warning from cluttering stderr.
{ "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/4015/reactions" }
https://api.github.com/repos/psf/requests/issues/4015/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4015.diff", "html_url": "https://github.com/psf/requests/pull/4015", "merged_at": "2017-05-10T19:04:04Z", "patch_url": "https://github.com/psf/requests/pull/4015.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4015" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4015?src=pr&el=h1) Report\n> Merging [#4015](https://codecov.io/gh/kennethreitz/requests/pull/4015?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/e4693eba4f429230d482ca50d0a537fc13ea6884?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/4014
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4014/labels{/name}
https://api.github.com/repos/psf/requests/issues/4014/comments
https://api.github.com/repos/psf/requests/issues/4014/events
https://github.com/psf/requests/pull/4014
227,677,833
MDExOlB1bGxSZXF1ZXN0MTE5ODgxMjc2
4,014
Remove range operators from markers.
{ "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
2
2017-05-10T13:20:58Z
2021-09-06T00:06:58Z
2017-05-10T14:02:55Z
MEMBER
resolved
Resolves #4013. It turns out that older setuptools were pretty stupid and couldn't handle range operators, but they *can* handle parentheses and the word "or". So let's do that instead.
{ "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/4014/reactions" }
https://api.github.com/repos/psf/requests/issues/4014/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4014.diff", "html_url": "https://github.com/psf/requests/pull/4014", "merged_at": "2017-05-10T14:02:55Z", "patch_url": "https://github.com/psf/requests/pull/4014.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4014" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/4014?src=pr&el=h1) Report\n> Merging [#4014](https://codecov.io/gh/kennethreitz/requests/pull/4014?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/3618f3f68ed7b4efe5a6adf6ddf2f413dc71d0e8?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/4013
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4013/labels{/name}
https://api.github.com/repos/psf/requests/issues/4013/comments
https://api.github.com/repos/psf/requests/issues/4013/events
https://github.com/psf/requests/issues/4013
227,666,894
MDU6SXNzdWUyMjc2NjY4OTQ=
4,013
Amazon Linux easy_install incompatible with 2.14.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/19824146?v=4", "events_url": "https://api.github.com/users/jfwarner/events{/privacy}", "followers_url": "https://api.github.com/users/jfwarner/followers", "following_url": "https://api.github.com/users/jfwarner/following{/other_user}", "gists_url": "https://api.github.com/users/jfwarner/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jfwarner", "id": 19824146, "login": "jfwarner", "node_id": "MDQ6VXNlcjE5ODI0MTQ2", "organizations_url": "https://api.github.com/users/jfwarner/orgs", "received_events_url": "https://api.github.com/users/jfwarner/received_events", "repos_url": "https://api.github.com/users/jfwarner/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jfwarner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jfwarner/subscriptions", "type": "User", "url": "https://api.github.com/users/jfwarner", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2017-05-10T12:43:45Z
2021-09-08T10:00:55Z
2017-05-10T14:02:55Z
NONE
resolved
I've been following #4006 #4012 and I'm aware the guidance is to update to a newer pip, and that easy_install is not supported. I just wanted to make the case that not all of us have a choice on python package manager. Take my case - I'm using Amazon Linux bootstrapped by Amazon CloudFormation. We give the CloudFormation initializer code (cfn-init for short) a list of python packages to install, and it installs them in any order it wants, using any mechanism it wants. Studying the logs, it looks like under the hood it's using easy_install. I'm not even trying to install requests. I'm getting a floating version of it transitively through trying to install docker-py. So I see: `[ERROR] easy_install failed. Output: Searching for docker-py==1.7.2` ... `Searching for requests>=2.5.2` ... `Best match: requests 2.14.1` ... ``` Running requests-2.14.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wfkGhb/requests-2.14.1/egg-dist-tmp-H3aUMy error: Setup script exited with error in requests setup command: Invalid environment marker: sys_platform == "win32" and python_version<"3.3" ``` Version information: Amazon Linux AMI release 2016.09 Python 2.7.12 ``` easy_install --version setuptools 12.2 ``` So at the moment I have a cumbersome workaround where I run cfn-init in two phases, first where I expressly install requests 2.13.0, then next where I install docker-py and it's happy with the requests already installed. But I just wanted to raise awareness that there is a category of people who are seeing this error through transitive use of requests (I didn't even know we were using it) and for which upgrading or changing package managers is non-trivial.
{ "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/4013/reactions" }
https://api.github.com/repos/psf/requests/issues/4013/timeline
null
completed
null
null
false
[ "@jfwarner Thanks for this report.\r\n\r\nIs it not possible to [upgrade the version of setuptools before you run cloudformation](https://gist.github.com/kixorz/10194688)? That will likely resolve your issue.", "Unfortunately setuptools 12.2 is the latest and greatest available from Amazon Linux's yum repo.\r\n\r...
https://api.github.com/repos/psf/requests/issues/4012
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4012/labels{/name}
https://api.github.com/repos/psf/requests/issues/4012/comments
https://api.github.com/repos/psf/requests/issues/4012/events
https://github.com/psf/requests/issues/4012
227,649,635
MDU6SXNzdWUyMjc2NDk2MzU=
4,012
Invalid environment marker
{ "avatar_url": "https://avatars.githubusercontent.com/u/1065155?v=4", "events_url": "https://api.github.com/users/atarkowska/events{/privacy}", "followers_url": "https://api.github.com/users/atarkowska/followers", "following_url": "https://api.github.com/users/atarkowska/following{/other_user}", "gists_url": "https://api.github.com/users/atarkowska/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/atarkowska", "id": 1065155, "login": "atarkowska", "node_id": "MDQ6VXNlcjEwNjUxNTU=", "organizations_url": "https://api.github.com/users/atarkowska/orgs", "received_events_url": "https://api.github.com/users/atarkowska/received_events", "repos_url": "https://api.github.com/users/atarkowska/repos", "site_admin": false, "starred_url": "https://api.github.com/users/atarkowska/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/atarkowska/subscriptions", "type": "User", "url": "https://api.github.com/users/atarkowska", "user_view_type": "public" }
[]
closed
true
null
[]
null
13
2017-05-10T11:32:28Z
2021-09-08T10:00:54Z
2017-05-10T11:56:46Z
NONE
resolved
requests 2.14+ centos7 py27 ``` omeroweb_1 | Running setup.py egg_info for package requests omeroweb_1 | error in requests setup command: Invalid environment marker: platform_system == "Windows" and python_version<"3.3" omeroweb_1 | Complete output from command python setup.py egg_info: omeroweb_1 | error in requests setup command: Invalid environment marker: platform_system == "Windows" and python_version<"3.3" ```
{ "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/4012/reactions" }
https://api.github.com/repos/psf/requests/issues/4012/timeline
null
completed
null
null
false
[ "Are you sure you receive the exact same output for 2.14 and 2.14.1? Because this appears to be a duplicate of #4006, which should have been resolved by #4007 in 2.14.1.", "yes because https://github.com/ome/omero-mapr/blob/master/requirements.txt#L1\r\n\r\nI have to `requests==2.13.0`", "@aleksandra-tarkowska ...
https://api.github.com/repos/psf/requests/issues/4011
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4011/labels{/name}
https://api.github.com/repos/psf/requests/issues/4011/comments
https://api.github.com/repos/psf/requests/issues/4011/events
https://github.com/psf/requests/issues/4011
227,611,425
MDU6SXNzdWUyMjc2MTE0MjU=
4,011
Install fails 2.14.x
{ "avatar_url": "https://avatars.githubusercontent.com/u/95203?v=4", "events_url": "https://api.github.com/users/rohityadavcloud/events{/privacy}", "followers_url": "https://api.github.com/users/rohityadavcloud/followers", "following_url": "https://api.github.com/users/rohityadavcloud/following{/other_user}", "gists_url": "https://api.github.com/users/rohityadavcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rohityadavcloud", "id": 95203, "login": "rohityadavcloud", "node_id": "MDQ6VXNlcjk1MjAz", "organizations_url": "https://api.github.com/users/rohityadavcloud/orgs", "received_events_url": "https://api.github.com/users/rohityadavcloud/received_events", "repos_url": "https://api.github.com/users/rohityadavcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rohityadavcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohityadavcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/rohityadavcloud", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2017-05-10T09:00:32Z
2021-09-08T10:00:55Z
2017-05-10T09:24:22Z
NONE
resolved
The pypi page is not loading as well: https://pypi.python.org/pypi/requests/2.14.1 Logs: 07:58:51 Processing requests-2.14.1.tar.gz 07:58:51 Writing /tmp/easy_install-WACg1D/requests-2.14.1/setup.cfg 07:58:51 Running requests-2.14.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-WACg1D/requests-2.14.1/egg-dist-tmp-MeAs3M 07:58:51 07:58:51 stderr: no previously-included directories found matching 'docs/_build' 07:58:51 warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution 07:58:51 warning: no previously-included files matching '__pycache__' found anywhere in distribution 07:58:51 warning: no previously-included files matching '*.so' found anywhere in distribution 07:58:51 warning: no previously-included files matching '*.pyd' found anywhere in distribution 07:58:51 zip_safe flag not set; analyzing archive contents... 07:58:51 error: Setup script exited with error in requests setup command: Invalid environment marker: sys_platform == "win32" and python_version<"3.3"
{ "avatar_url": "https://avatars.githubusercontent.com/u/95203?v=4", "events_url": "https://api.github.com/users/rohityadavcloud/events{/privacy}", "followers_url": "https://api.github.com/users/rohityadavcloud/followers", "following_url": "https://api.github.com/users/rohityadavcloud/following{/other_user}", "gists_url": "https://api.github.com/users/rohityadavcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rohityadavcloud", "id": 95203, "login": "rohityadavcloud", "node_id": "MDQ6VXNlcjk1MjAz", "organizations_url": "https://api.github.com/users/rohityadavcloud/orgs", "received_events_url": "https://api.github.com/users/rohityadavcloud/received_events", "repos_url": "https://api.github.com/users/rohityadavcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rohityadavcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohityadavcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/rohityadavcloud", "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/4011/reactions" }
https://api.github.com/repos/psf/requests/issues/4011/timeline
null
completed
null
null
false
[ "Thanks, I think this is an issue with your system. What OS are you running, and can you print out the version of pip you have installed please? This is almost certainly related to #4006.", "@Lukasa I just checked our Jenkins/Ansible setup, we're running `easy_install cloudmonkey` that depends on requests: https:...
https://api.github.com/repos/psf/requests/issues/4010
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4010/labels{/name}
https://api.github.com/repos/psf/requests/issues/4010/comments
https://api.github.com/repos/psf/requests/issues/4010/events
https://github.com/psf/requests/issues/4010
227,527,675
MDU6SXNzdWUyMjc1Mjc2NzU=
4,010
requests 2.14.x erroring when using a custom HTTPSConnectionPool
{ "avatar_url": "https://avatars.githubusercontent.com/u/151667?v=4", "events_url": "https://api.github.com/users/ludokx/events{/privacy}", "followers_url": "https://api.github.com/users/ludokx/followers", "following_url": "https://api.github.com/users/ludokx/following{/other_user}", "gists_url": "https://api.github.com/users/ludokx/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ludokx", "id": 151667, "login": "ludokx", "node_id": "MDQ6VXNlcjE1MTY2Nw==", "organizations_url": "https://api.github.com/users/ludokx/orgs", "received_events_url": "https://api.github.com/users/ludokx/received_events", "repos_url": "https://api.github.com/users/ludokx/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ludokx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ludokx/subscriptions", "type": "User", "url": "https://api.github.com/users/ludokx", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-09T23:34:42Z
2021-09-08T10:00:56Z
2017-05-10T00:58:38Z
NONE
resolved
This worked fine with 2.13.0 but started failing today since 2.14.0, this is the stacktrace ``` Traceback (most recent call last): File "requests_test.py", line 31, in <module> s.request(method='GET', url='https://google.com') File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 518, in request resp = self.send(prep, **send_kwargs) File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 639, in send r = adapter.send(request, **kwargs) File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/adapters.py", line 403, in send conn = self.get_connection(request.url, proxies) File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/adapters.py", line 307, in get_connection conn = self.poolmanager.connection_from_url(url) File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/packages/urllib3/poolmanager.py", line 279, in connection_from_url pool_kwargs=pool_kwargs) File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/packages/urllib3/poolmanager.py", line 227, in connection_from_host return self.connection_from_context(request_context) File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/packages/urllib3/poolmanager.py", line 240, in connection_from_context return self.connection_from_pool_key(pool_key, request_context=request_context) File "/Users/ludo/Library/Python/2.7/lib/python/site-packages/requests/packages/urllib3/poolmanager.py", line 261, in connection_from_pool_key pool = self._new_pool(scheme, host, port, request_context=request_context) TypeError: _new_pool() got an unexpected keyword argument 'request_context' ``` Here's the sample code to reproduce the issue: ``` import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.poolmanager import PoolManager, HTTPSConnectionPool class MyHTTPSConnectionPool(HTTPSConnectionPool): def __init__(self, host, port=None, **conn_kw): HTTPSConnectionPool.__init__(self, host, port, **conn_kw) class MyPoolManager(PoolManager): def __init__(self, **kw_args): PoolManager.__init__(self, **kw_args) def _new_pool(self, scheme, host, port): if scheme == 'https': kwargs = self.connection_pool_kw return MyHTTPSConnectionPool(host, port, **kwargs) return super(MyPoolManager, self)._new_pool(scheme, host, port) class MyAdapter(HTTPAdapter): def __init__(self, **kw_args): HTTPAdapter.__init__(self, **kw_args) def init_poolmanager(self, connections, maxsize, block=False): self.poolmanager = MyPoolManager(num_pools=connections, s = requests.Session() s.mount('https://', MyAdapter()) s.request(method='GET', url='https://google.com') ```
{ "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/4010/reactions" }
https://api.github.com/repos/psf/requests/issues/4010/timeline
null
completed
null
null
false
[ "I believe this is fixed with #4007 please upgrade to 2.14.1.", "I'm not sure if this is actually related to #4007. Some work was done in urllib3 1.21 to allow the use of pool_kwargs in the `connection_from_*` functions. Part of [this commit](https://github.com/shazow/urllib3/commit/7c14966fc134146223650a8393e17e...
https://api.github.com/repos/psf/requests/issues/4009
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4009/labels{/name}
https://api.github.com/repos/psf/requests/issues/4009/comments
https://api.github.com/repos/psf/requests/issues/4009/events
https://github.com/psf/requests/issues/4009
227,521,850
MDU6SXNzdWUyMjc1MjE4NTA=
4,009
OSError Tunnel connection failed: 400 Bad Request
{ "avatar_url": "https://avatars.githubusercontent.com/u/11723331?v=4", "events_url": "https://api.github.com/users/ed-biz23/events{/privacy}", "followers_url": "https://api.github.com/users/ed-biz23/followers", "following_url": "https://api.github.com/users/ed-biz23/following{/other_user}", "gists_url": "https://api.github.com/users/ed-biz23/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ed-biz23", "id": 11723331, "login": "ed-biz23", "node_id": "MDQ6VXNlcjExNzIzMzMx", "organizations_url": "https://api.github.com/users/ed-biz23/orgs", "received_events_url": "https://api.github.com/users/ed-biz23/received_events", "repos_url": "https://api.github.com/users/ed-biz23/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ed-biz23/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ed-biz23/subscriptions", "type": "User", "url": "https://api.github.com/users/ed-biz23", "user_view_type": "public" }
[]
closed
true
null
[]
null
11
2017-05-09T22:58:10Z
2019-04-03T12:58:44Z
2017-07-29T23:09:45Z
NONE
resolved
Hi, I'm using Requests version 2.14.1, but I'm having problem with HTTPS request when using proxies.(works fine with http url) *My proxies are already ip authorized.* I'm novice to programming so I cant exactly figure out what I'm doing wrong. ```python import requests, random, time proxies_list = [ '104.153.xx.xxx:xxxx', '104.153.xx.xxx:xxxx' ] while True: try: r = requests.get('https://icanhazip.com', proxies={'https': 'http://{}'.format(random.choice(proxies_list))}) print (r.text), time.sleep(0.5) except Exception as e: print(e) ```
{ "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/4009/reactions" }
https://api.github.com/repos/psf/requests/issues/4009/timeline
null
completed
null
null
false
[ "Can you give us more information about your system and the actual exception traceback? It'd be helpful to know exactly which OSError you're receiving.", "sorry, here is the trackback. and im using Mac OSX\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/Library/Frameworks/Python.framework/Versions/3...
https://api.github.com/repos/psf/requests/issues/4008
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4008/labels{/name}
https://api.github.com/repos/psf/requests/issues/4008/comments
https://api.github.com/repos/psf/requests/issues/4008/events
https://github.com/psf/requests/issues/4008
227,465,441
MDU6SXNzdWUyMjc0NjU0NDE=
4,008
[2.14.0] NameError: name 'platform_system' is not defined for pip 6.0.7
{ "avatar_url": "https://avatars.githubusercontent.com/u/6644187?v=4", "events_url": "https://api.github.com/users/moylop260/events{/privacy}", "followers_url": "https://api.github.com/users/moylop260/followers", "following_url": "https://api.github.com/users/moylop260/following{/other_user}", "gists_url": "https://api.github.com/users/moylop260/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/moylop260", "id": 6644187, "login": "moylop260", "node_id": "MDQ6VXNlcjY2NDQxODc=", "organizations_url": "https://api.github.com/users/moylop260/orgs", "received_events_url": "https://api.github.com/users/moylop260/received_events", "repos_url": "https://api.github.com/users/moylop260/repos", "site_admin": false, "starred_url": "https://api.github.com/users/moylop260/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/moylop260/subscriptions", "type": "User", "url": "https://api.github.com/users/moylop260", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-09T19:02:14Z
2021-09-08T10:00:57Z
2017-05-09T19:02:54Z
NONE
resolved
Travis use `pip 6.0.7` Today we had the following error: ```python pip install -U requests==2.14.0 Using cached requests-2.14.0-py2.py3-none-any.whl Exception: Traceback (most recent call last): File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/basecommand.py", line 232, in main status = self.run(options, args) File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/commands/install.py", line 339, in run requirement_set.prepare_files(finder) File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/req/req_set.py", line 436, in prepare_files req_to_install.extras): File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2496, in requires dm = self._dep_map File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2697, in _dep_map self.__dep_map = self._compute_dependencies() File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2730, in _compute_dependencies common = frozenset(reqs_for_extra(None)) File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2727, in reqs_for_extra if req.marker_fn(override={'extra':extra}): File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pip/_vendor/_markerlib/markers.py", line 113, in marker_fn return eval(compiled_marker, environment) File "<environment marker>", line 1, in <module> NameError: name 'platform_system' is not defined ``` We can fix it using: `pip install -U pip` `# Successfully installed pip-9.0.1` But maybe too much travis build use default pip version Could be dual compatibility this requests package? We had a similar fix for pylint: https://github.com/PyCQA/astroid/pull/360 based on https://github.com/pypa/packaging/issues/72
{ "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/4008/reactions" }
https://api.github.com/repos/psf/requests/issues/4008/timeline
null
completed
null
null
false
[ "Thanks, this is a duplicate of #4006. See that issue for more discussion." ]
https://api.github.com/repos/psf/requests/issues/4007
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4007/labels{/name}
https://api.github.com/repos/psf/requests/issues/4007/comments
https://api.github.com/repos/psf/requests/issues/4007/events
https://github.com/psf/requests/pull/4007
227,452,221
MDExOlB1bGxSZXF1ZXN0MTE5NzE5Nzg0
4,007
Use sys_platform instead of platform_system
{ "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
9
2017-05-09T18:12:19Z
2021-09-06T00:06:58Z
2017-05-09T18:55:57Z
MEMBER
resolved
This is more compatible as a marker and so will break fewer people. Potentially resolves #4006.
{ "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": 4, "laugh": 0, "rocket": 0, "total_count": 4, "url": "https://api.github.com/repos/psf/requests/issues/4007/reactions" }
https://api.github.com/repos/psf/requests/issues/4007/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4007.diff", "html_url": "https://github.com/psf/requests/pull/4007", "merged_at": "2017-05-09T18:55:57Z", "patch_url": "https://github.com/psf/requests/pull/4007.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4007" }
true
[ "I should note that this fix does not entirely remove the issue: sufficiently old pips will still fail to install Requests. We're just moving the goalposts on what counts as \"sufficiently old\".", "I'm in favor of breaking less people's builds as long as people using really old `pip` versions are the ones gettin...
https://api.github.com/repos/psf/requests/issues/4006
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4006/labels{/name}
https://api.github.com/repos/psf/requests/issues/4006/comments
https://api.github.com/repos/psf/requests/issues/4006/events
https://github.com/psf/requests/issues/4006
227,421,573
MDU6SXNzdWUyMjc0MjE1NzM=
4,006
requests 2.14.0 cannot be installed using pip < 8.1.2
{ "avatar_url": "https://avatars.githubusercontent.com/u/1050156?v=4", "events_url": "https://api.github.com/users/lmazuel/events{/privacy}", "followers_url": "https://api.github.com/users/lmazuel/followers", "following_url": "https://api.github.com/users/lmazuel/following{/other_user}", "gists_url": "https://api.github.com/users/lmazuel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lmazuel", "id": 1050156, "login": "lmazuel", "node_id": "MDQ6VXNlcjEwNTAxNTY=", "organizations_url": "https://api.github.com/users/lmazuel/orgs", "received_events_url": "https://api.github.com/users/lmazuel/received_events", "repos_url": "https://api.github.com/users/lmazuel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lmazuel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lmazuel/subscriptions", "type": "User", "url": "https://api.github.com/users/lmazuel", "user_view_type": "public" }
[]
closed
true
null
[]
null
91
2017-05-09T16:19:18Z
2021-09-08T08:00:45Z
2017-05-10T07:06:36Z
NONE
resolved
Example with pip 6.1.1 (but same with pip 8.1.1): ```console > pip install requests You are using pip version 6.1.1, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting requests Using cached requests-2.14.0-py2.py3-none-any.whl Exception: Traceback (most recent call last): File "D:\VEnvs\testpip\lib\site-packages\pip\basecommand.py", line 246, in main status = self.run(options, args) File "D:\VEnvs\testpip\lib\site-packages\pip\commands\install.py", line 342, in run requirement_set.prepare_files(finder) File "D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py", line 345, in prepare_files functools.partial(self._prepare_file, finder)) File "D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py", line 290, in _walk_req_to_install more_reqs = handler(req_to_install) File "D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py", line 557, in _prepare_file set(req_to_install.extras) - set(dist.extras) File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2758, in extras return [dep for dep in self._dep_map if dep] File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2781, in _dep_map self.__dep_map = self._compute_dependencies() File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2814, in _compute_dependencies common = frozenset(reqs_for_extra(None)) File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2811, in reqs_for_extra if req.marker_fn(override={'extra':extra}): File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\_markerlib\markers.py", line 113, in marker_fn return eval(compiled_marker, environment) File "<environment marker>", line 1, in <module> NameError: name 'platform_system' is not defined ``` So, installing requests 2.14.0 implicitly requires pip >= 9.x. Should be at least in the release note as a disclaimer, or be fixed if it's not on purpose.
{ "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": 6, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 6, "url": "https://api.github.com/repos/psf/requests/issues/4006/reactions" }
https://api.github.com/repos/psf/requests/issues/4006/timeline
null
completed
null
null
false
[ "Yeah, we can add that as a release note. That said, pip *9* is a bit newer than I thought we were going to need: @dstufft, is the `platform_system` marker not provided before then?", "I just bisect, and it works starting 8.1.2 (broken in 8.1.1).", "Ok, so that means it works with a version of pip that's a year...
https://api.github.com/repos/psf/requests/issues/4005
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4005/labels{/name}
https://api.github.com/repos/psf/requests/issues/4005/comments
https://api.github.com/repos/psf/requests/issues/4005/events
https://github.com/psf/requests/issues/4005
227,401,963
MDU6SXNzdWUyMjc0MDE5NjM=
4,005
response.apparent encoding throws error after using iter_lines
{ "avatar_url": "https://avatars.githubusercontent.com/u/157223?v=4", "events_url": "https://api.github.com/users/eka/events{/privacy}", "followers_url": "https://api.github.com/users/eka/followers", "following_url": "https://api.github.com/users/eka/following{/other_user}", "gists_url": "https://api.github.com/users/eka/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eka", "id": 157223, "login": "eka", "node_id": "MDQ6VXNlcjE1NzIyMw==", "organizations_url": "https://api.github.com/users/eka/orgs", "received_events_url": "https://api.github.com/users/eka/received_events", "repos_url": "https://api.github.com/users/eka/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eka/subscriptions", "type": "User", "url": "https://api.github.com/users/eka", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-09T15:18:10Z
2021-09-08T10:00:56Z
2017-05-09T15:31:48Z
NONE
resolved
When using iter_lines with stream=True, and later trying to get the response.apparent_encoding, I get an exception as follows: `RuntimeError: The content for this response was already consumed` So my question is: Is this the proper behavior? I mean, shouldn't I be able to get the apparent_encoding even after consuming the content using stream=True? I was thinking on running the chardet on the buffer result of consuming the iteration but I'm thinking that this beats the purpose since the result is already encoded. Am I missing something? 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/4005/reactions" }
https://api.github.com/repos/psf/requests/issues/4005/timeline
null
completed
null
null
false
[ "Thanks for opening this issue!\r\n\r\n> Is this the proper behavior?\r\n\r\nYes. :smile:\r\n\r\n> I mean, shouldn't I be able to get the apparent_encoding even after consuming the content using stream=True?\r\n\r\nNo. :smile: When you set `stream=True`, you are telling Requests that you *do not* want us to buffer ...
https://api.github.com/repos/psf/requests/issues/4004
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4004/labels{/name}
https://api.github.com/repos/psf/requests/issues/4004/comments
https://api.github.com/repos/psf/requests/issues/4004/events
https://github.com/psf/requests/pull/4004
227,290,465
MDExOlB1bGxSZXF1ZXN0MTE5NjA5NDYx
4,004
Prepare for 2.14 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
null
[]
null
11
2017-05-09T08:38:51Z
2021-09-06T00:06:59Z
2017-05-09T15:42:02Z
MEMBER
resolved
Changelog updated, vendored libraries all updated. Let's see how this goes. Looks like it'll be a good 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" }
{ "+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/4004/reactions" }
https://api.github.com/repos/psf/requests/issues/4004/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4004.diff", "html_url": "https://github.com/psf/requests/pull/4004", "merged_at": "2017-05-09T15:42:02Z", "patch_url": "https://github.com/psf/requests/pull/4004.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4004" }
true
[ "Ok, so this patch has changed the way we normalize URLs of non-HTTP schemes. Specifically, we no longer lowercase `http+x` URLs. This is because of shazow/urllib3#1089. My reading of [this discussion](https://github.com/kennethreitz/requests/pull/3738#issuecomment-268805728) is that we did this more-or-less on pur...
https://api.github.com/repos/psf/requests/issues/4003
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4003/labels{/name}
https://api.github.com/repos/psf/requests/issues/4003/comments
https://api.github.com/repos/psf/requests/issues/4003/events
https://github.com/psf/requests/issues/4003
227,202,370
MDU6SXNzdWUyMjcyMDIzNzA=
4,003
`requote_uri` changes the original URL
{ "avatar_url": "https://avatars.githubusercontent.com/u/201694?v=4", "events_url": "https://api.github.com/users/andreyfedoseev/events{/privacy}", "followers_url": "https://api.github.com/users/andreyfedoseev/followers", "following_url": "https://api.github.com/users/andreyfedoseev/following{/other_user}", "gists_url": "https://api.github.com/users/andreyfedoseev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andreyfedoseev", "id": 201694, "login": "andreyfedoseev", "node_id": "MDQ6VXNlcjIwMTY5NA==", "organizations_url": "https://api.github.com/users/andreyfedoseev/orgs", "received_events_url": "https://api.github.com/users/andreyfedoseev/received_events", "repos_url": "https://api.github.com/users/andreyfedoseev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andreyfedoseev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andreyfedoseev/subscriptions", "type": "User", "url": "https://api.github.com/users/andreyfedoseev", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-08T23:17:25Z
2021-09-08T10:00:57Z
2017-05-09T07:33:08Z
NONE
resolved
I'm trying to do something like: ```python >>> import requests >>> url = "http://beta.url2png.com/v6/P4ED6C68627746/d86b36effc2ea6862a2301273c40a2a2/png/?url=http%3A%2F%2Fwww3.geosc.psu.edu%2F%7Edmb53%2FDaveSTELLA%2FDaisyworld%2Fdaisyworld_model.htm&delay=4&fullpage=false&viewport=1280x1024" >>> response = request.get(url) >>> url 'http://beta.url2png.com/v6/P4ED6C68627746/d86b36effc2ea6862a2301273c40a2a2/png/?url=http%3A%2F%2Fwww3.geosc.psu.edu%2F%7Edmb53%2FDaveSTELLA%2FDaisyworld%2Fdaisyworld_model.htm&delay=4&fullpage=false&viewport=1280x1024' >>> response.request.url 'http://beta.url2png.com/v6/P4ED6C68627746/d86b36effc2ea6862a2301273c40a2a2/png/?url=http%3A%2F%2Fwww3.geosc.psu.edu%2F~dmb53%2FDaveSTELLA%2FDaisyworld%2Fdaisyworld_model.htm&delay=4&fullpage=false&viewport=1280x1024' ``` Note how `%7E` from the original URL is changed to `~` in the actual request. Also note the `d86b36effc2ea6862a2301273c40a2a2` part of the URL. It's a hash of the query string parameters which is required to authorize the request. Since `requests.get` changes the original URL the hash becomes invalid and thus the request can't be authorized. So, the original URL is a correct URL which you can open in a browser or download using `curl`. However the URL that `requests.get` fetches is invalid and returns `401 Unauthorized` response.
{ "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/4003/reactions" }
https://api.github.com/repos/psf/requests/issues/4003/timeline
null
completed
null
null
false
[ "The URL that `requests.get` fetches is not invalid in the sense that it's perfectly legitimate to represent the query string in this manner. The relevant portion of a specification is [RFC 3986 § 2.3](https://tools.ietf.org/html/rfc3986#section-2.3), with added emphasis on the most important section:\r\n\r\n> C...
https://api.github.com/repos/psf/requests/issues/4002
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4002/labels{/name}
https://api.github.com/repos/psf/requests/issues/4002/comments
https://api.github.com/repos/psf/requests/issues/4002/events
https://github.com/psf/requests/issues/4002
226,880,788
MDU6SXNzdWUyMjY4ODA3ODg=
4,002
redirect loop with manual host header
{ "avatar_url": "https://avatars.githubusercontent.com/u/1901770?v=4", "events_url": "https://api.github.com/users/lr1980/events{/privacy}", "followers_url": "https://api.github.com/users/lr1980/followers", "following_url": "https://api.github.com/users/lr1980/following{/other_user}", "gists_url": "https://api.github.com/users/lr1980/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lr1980", "id": 1901770, "login": "lr1980", "node_id": "MDQ6VXNlcjE5MDE3NzA=", "organizations_url": "https://api.github.com/users/lr1980/orgs", "received_events_url": "https://api.github.com/users/lr1980/received_events", "repos_url": "https://api.github.com/users/lr1980/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lr1980/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lr1980/subscriptions", "type": "User", "url": "https://api.github.com/users/lr1980", "user_view_type": "public" }
[]
closed
false
null
[]
null
10
2017-05-07T18:06:35Z
2024-05-19T18:54:33Z
2024-05-19T18:54:33Z
NONE
null
I use this for a test server: `requests.get('http://1.2.3.4', headers={'host': 'domain.de'})` But the request will loop because the "host" header will be also used for the redirect.
{ "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/4002/reactions" }
https://api.github.com/repos/psf/requests/issues/4002/timeline
null
completed
null
null
false
[ "So, this is a tricky point. Generally, when the user sets a custom Host header we have a problem: to what hosts does that custom host header apply? What about redirects?\r\n\r\nIn this case, Requests takes the easy route out and just decides to use the custom Host header for everything. That's not necessarily the ...
https://api.github.com/repos/psf/requests/issues/4001
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4001/labels{/name}
https://api.github.com/repos/psf/requests/issues/4001/comments
https://api.github.com/repos/psf/requests/issues/4001/events
https://github.com/psf/requests/pull/4001
226,818,345
MDExOlB1bGxSZXF1ZXN0MTE5MzIyMzcx
4,001
Specify that the timeout parameter is in seconds.
{ "avatar_url": "https://avatars.githubusercontent.com/u/354506?v=4", "events_url": "https://api.github.com/users/bowlofeggs/events{/privacy}", "followers_url": "https://api.github.com/users/bowlofeggs/followers", "following_url": "https://api.github.com/users/bowlofeggs/following{/other_user}", "gists_url": "https://api.github.com/users/bowlofeggs/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bowlofeggs", "id": 354506, "login": "bowlofeggs", "node_id": "MDQ6VXNlcjM1NDUwNg==", "organizations_url": "https://api.github.com/users/bowlofeggs/orgs", "received_events_url": "https://api.github.com/users/bowlofeggs/received_events", "repos_url": "https://api.github.com/users/bowlofeggs/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bowlofeggs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bowlofeggs/subscriptions", "type": "User", "url": "https://api.github.com/users/bowlofeggs", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-07T01:26:09Z
2021-09-06T00:06:59Z
2017-05-07T04:07:02Z
CONTRIBUTOR
resolved
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/psf/requests/issues/4001/reactions" }
https://api.github.com/repos/psf/requests/issues/4001/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/4001.diff", "html_url": "https://github.com/psf/requests/pull/4001", "merged_at": "2017-05-07T04:07:02Z", "patch_url": "https://github.com/psf/requests/pull/4001.patch", "url": "https://api.github.com/repos/psf/requests/pulls/4001" }
true
[ "thanks! " ]
https://api.github.com/repos/psf/requests/issues/4000
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/4000/labels{/name}
https://api.github.com/repos/psf/requests/issues/4000/comments
https://api.github.com/repos/psf/requests/issues/4000/events
https://github.com/psf/requests/issues/4000
226,807,047
MDU6SXNzdWUyMjY4MDcwNDc=
4,000
Cookies never returned in response object
{ "avatar_url": "https://avatars.githubusercontent.com/u/556503?v=4", "events_url": "https://api.github.com/users/dubhunter/events{/privacy}", "followers_url": "https://api.github.com/users/dubhunter/followers", "following_url": "https://api.github.com/users/dubhunter/following{/other_user}", "gists_url": "https://api.github.com/users/dubhunter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dubhunter", "id": 556503, "login": "dubhunter", "node_id": "MDQ6VXNlcjU1NjUwMw==", "organizations_url": "https://api.github.com/users/dubhunter/orgs", "received_events_url": "https://api.github.com/users/dubhunter/received_events", "repos_url": "https://api.github.com/users/dubhunter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dubhunter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dubhunter/subscriptions", "type": "User", "url": "https://api.github.com/users/dubhunter", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2017-05-06T21:55:39Z
2021-09-08T10:00:51Z
2017-05-15T08:04:02Z
NONE
resolved
I have been trying to get the cookies from a response, as your docs suggest (http://docs.python-requests.org/en/master/user/quickstart/#cookies [first example]), but it does not seem to be working. When I dug through the `sessions.py` (https://github.com/kennethreitz/requests/blob/master/requests/sessions.py#L655), it looks like cookies are extracted to the cookie jar on the `Session` object, but never set on the response. I had to do the following to get my intended behavior (which is probably not entirely correct, since it will copy all cookies on the `Session`, not just the ones from the most recent request): ``` >>> url = 'http://example.com/some/cookie/setting/url' >>> s = requests.Session() >>> r = s.get(url) >>> r.cookies = s.cookies >>> r.cookies['example_cookie_name'] 'example_cookie_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": 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/4000/reactions" }
https://api.github.com/repos/psf/requests/issues/4000/timeline
null
completed
null
null
false
[ "Hey @dubhunter, I'm actually unable to reproduce this in either Python 2 or 3 for Requests 2.13.0.\r\n\r\nCould you please provide the version of Requests you're using and verify for me that the script below returns `<RequestsCookieJar[]>`? No need to provide the contents if the RequestsCookieJar is populated.\r\n...
https://api.github.com/repos/psf/requests/issues/3999
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3999/labels{/name}
https://api.github.com/repos/psf/requests/issues/3999/comments
https://api.github.com/repos/psf/requests/issues/3999/events
https://github.com/psf/requests/issues/3999
226,506,430
MDU6SXNzdWUyMjY1MDY0MzA=
3,999
Install in Docker does not work as expected
{ "avatar_url": "https://avatars.githubusercontent.com/u/2445709?v=4", "events_url": "https://api.github.com/users/PetaPetaPeta/events{/privacy}", "followers_url": "https://api.github.com/users/PetaPetaPeta/followers", "following_url": "https://api.github.com/users/PetaPetaPeta/following{/other_user}", "gists_url": "https://api.github.com/users/PetaPetaPeta/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PetaPetaPeta", "id": 2445709, "login": "PetaPetaPeta", "node_id": "MDQ6VXNlcjI0NDU3MDk=", "organizations_url": "https://api.github.com/users/PetaPetaPeta/orgs", "received_events_url": "https://api.github.com/users/PetaPetaPeta/received_events", "repos_url": "https://api.github.com/users/PetaPetaPeta/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PetaPetaPeta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PetaPetaPeta/subscriptions", "type": "User", "url": "https://api.github.com/users/PetaPetaPeta", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-05-05T08:33:23Z
2021-09-08T10:00:58Z
2017-05-06T12:01:13Z
NONE
resolved
I am attempting to build a Docker image (base image ubuntu:14.04) on a Windows machine where one of the commands are: ``` RUN pip install git+https://github.com/kennethreitz/requests ``` The functionality of this is to use pip inside the container to install the latest version of requests. It has functioned correctly in the past, but it currently throws an error. ``` Step X/Y : RUN pip install git+https://github.com/kennethreitz/requests ---> Running in 33fa1f8103a0 Downloading/unpacking git+https://github.com/kennethreitz/requests Cloning https://github.com/kennethreitz/requests to /tmp/pip-ZPkqbQ-build Running setup.py (path:/tmp/pip-ZPkqbQ-build/setup.py) egg_info for package from git+https://github.com/kennethreitz/requests error in requests setup command: Invalid environment marker: platform_system == "Windows" and python_version<"3.3" Complete output from command python setup.py egg_info: error in requests setup command: Invalid environment marker: platform_system == "Windows" and python_version<"3.3" ``` The error is being triggered by the following extra requirement introduced [here]( https://github.com/kennethreitz/requests/commit/d89f8c0d70195d1ee707426ac7f3bdab870e0a18#diff-2eeaed663bd0d25b7e608891384b7298R100). The correct thing to do in this case is of course to lock the version of requests in the `pip install`-command and I have done this. I do however suspect that this could be an issue in the future if this commit is released.
{ "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/3999/reactions" }
https://api.github.com/repos/psf/requests/issues/3999/timeline
null
completed
null
null
false
[ "This error is caused because the version of `pip` and `setuptools` being used in Ubuntu 14.04 is extremely old (necessarily it's from before 2014), and so doesn't understand markers. Frankly, that doesn't bother me very much. Assuming you're using a virtualenv inside your Docker image, you can resolve this by runn...
https://api.github.com/repos/psf/requests/issues/3998
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3998/labels{/name}
https://api.github.com/repos/psf/requests/issues/3998/comments
https://api.github.com/repos/psf/requests/issues/3998/events
https://github.com/psf/requests/pull/3998
226,431,882
MDExOlB1bGxSZXF1ZXN0MTE5MDg0MDYz
3,998
Enable sessions to bypass creating/parsing cookies.
{ "avatar_url": "https://avatars.githubusercontent.com/u/808798?v=4", "events_url": "https://api.github.com/users/rowillia/events{/privacy}", "followers_url": "https://api.github.com/users/rowillia/followers", "following_url": "https://api.github.com/users/rowillia/following{/other_user}", "gists_url": "https://api.github.com/users/rowillia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rowillia", "id": 808798, "login": "rowillia", "node_id": "MDQ6VXNlcjgwODc5OA==", "organizations_url": "https://api.github.com/users/rowillia/orgs", "received_events_url": "https://api.github.com/users/rowillia/received_events", "repos_url": "https://api.github.com/users/rowillia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rowillia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rowillia/subscriptions", "type": "User", "url": "https://api.github.com/users/rowillia", "user_view_type": "public" }
[]
closed
true
null
[]
null
15
2017-05-04T23:00:12Z
2021-09-03T00:11:03Z
2018-04-29T18:58:10Z
NONE
resolved
We use requests for some service-to-service communication, neither side of which utilizes cookies. When we profiled our services, we see ~13% of the time spend sending requests is either creating cookie jars or extracting cookies to jars. This PR will enable us to disable cookies for a given `requests.Session` by setting `session.cookies = None`. If `sessions.cookies` is None, we won't create any cookies for the request nor will we parse them on the response.
{ "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/3998/reactions" }
https://api.github.com/repos/psf/requests/issues/3998/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3998.diff", "html_url": "https://github.com/psf/requests/pull/3998", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/3998.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3998" }
true
[ "# [Codecov](https://codecov.io/gh/requests/requests/pull/3998?src=pr&el=h1) Report\n> :exclamation: No coverage uploaded for pull request base (`master@5697148`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).\n> The diff coverage is `100%`.\n\n[![I...
https://api.github.com/repos/psf/requests/issues/3997
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3997/labels{/name}
https://api.github.com/repos/psf/requests/issues/3997/comments
https://api.github.com/repos/psf/requests/issues/3997/events
https://github.com/psf/requests/issues/3997
226,267,556
MDU6SXNzdWUyMjYyNjc1NTY=
3,997
ModuleNotFoundError: No module named 'email.parser'; 'email' is not a package
{ "avatar_url": "https://avatars.githubusercontent.com/u/24445418?v=4", "events_url": "https://api.github.com/users/astronaut0131/events{/privacy}", "followers_url": "https://api.github.com/users/astronaut0131/followers", "following_url": "https://api.github.com/users/astronaut0131/following{/other_user}", "gists_url": "https://api.github.com/users/astronaut0131/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/astronaut0131", "id": 24445418, "login": "astronaut0131", "node_id": "MDQ6VXNlcjI0NDQ1NDE4", "organizations_url": "https://api.github.com/users/astronaut0131/orgs", "received_events_url": "https://api.github.com/users/astronaut0131/received_events", "repos_url": "https://api.github.com/users/astronaut0131/repos", "site_admin": false, "starred_url": "https://api.github.com/users/astronaut0131/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/astronaut0131/subscriptions", "type": "User", "url": "https://api.github.com/users/astronaut0131", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-04T12:39:53Z
2021-09-08T11:00:28Z
2017-05-04T12:44:53Z
NONE
resolved
when i run : import requests i get the error as following: ~~~shell D:\python\Python36\python.exe "D:/Python Work Space/test003.py" Traceback (most recent call last): File "D:/Python Work Space/test003.py", line 1, in <module> import requests File "D:\python\Python36\lib\site-packages\requests\__init__.py", line 60, in <module> from .packages.urllib3.exceptions import DependencyWarning File "D:\python\Python36\lib\site-packages\requests\packages\__init__.py", line 29, in <module> import urllib3 File "D:\python\Python36\lib\site-packages\urllib3\__init__.py", line 8, in <module> from .connectionpool import ( File "D:\python\Python36\lib\site-packages\urllib3\connectionpool.py", line 11, in <module> from .exceptions import ( File "D:\python\Python36\lib\site-packages\urllib3\exceptions.py", line 2, in <module> from .packages.six.moves.http_client import ( File "D:\python\Python36\lib\site-packages\urllib3\packages\six.py", line 203, in load_module mod = mod._resolve() File "D:\python\Python36\lib\site-packages\urllib3\packages\six.py", line 115, in _resolve return _import_module(self.mod) File "D:\python\Python36\lib\site-packages\urllib3\packages\six.py", line 82, in _import_module __import__(name) File "D:\python\Python36\lib\http\client.py", line 71, in <module> import email.parser ModuleNotFoundError: No module named 'email.parser'; 'email' is not a package ~~~ but i have already installed it see: ~~~shell D:\Python Work Space>pip install email Requirement already satisfied: email in d:\python\python36\lib\site-packages\email-6.0.0a1-py3.6.egg ~~~
{ "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/3997/reactions" }
https://api.github.com/repos/psf/requests/issues/3997/timeline
null
completed
null
null
false
[ "Email is a standard library module that should have come with Python. I *suspect* that `pip install email` made that worse, not better. However, more likely you have a file in the same directory as your code called `email.py`, you need to change that filename." ]
https://api.github.com/repos/psf/requests/issues/3996
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3996/labels{/name}
https://api.github.com/repos/psf/requests/issues/3996/comments
https://api.github.com/repos/psf/requests/issues/3996/events
https://github.com/psf/requests/pull/3996
225,675,686
MDExOlB1bGxSZXF1ZXN0MTE4NTQxMzk3
3,996
Allowing users to override the default agent using env variable
{ "avatar_url": "https://avatars.githubusercontent.com/u/234253?v=4", "events_url": "https://api.github.com/users/amir-hadi/events{/privacy}", "followers_url": "https://api.github.com/users/amir-hadi/followers", "following_url": "https://api.github.com/users/amir-hadi/following{/other_user}", "gists_url": "https://api.github.com/users/amir-hadi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amir-hadi", "id": 234253, "login": "amir-hadi", "node_id": "MDQ6VXNlcjIzNDI1Mw==", "organizations_url": "https://api.github.com/users/amir-hadi/orgs", "received_events_url": "https://api.github.com/users/amir-hadi/received_events", "repos_url": "https://api.github.com/users/amir-hadi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amir-hadi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amir-hadi/subscriptions", "type": "User", "url": "https://api.github.com/users/amir-hadi", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-02T12:08:27Z
2021-09-06T00:07:00Z
2017-05-02T12:12:52Z
NONE
resolved
We need to override the default user agent that requests uses. I think its ok to allow overriding the default user agent using environment variables. I didn't find other options (except monkey patching default_user_agent function in utils), maybe this can help other users 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/3996/reactions" }
https://api.github.com/repos/psf/requests/issues/3996/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3996.diff", "html_url": "https://github.com/psf/requests/pull/3996", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/3996.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3996" }
true
[ "Thanks for this!\r\n\r\nI don't really understand why Requests should merge this into the tree. If you want to have this behaviour in your application, you can just use `Session` objects and set `Session.headers['User-Agent']` to whatever you like.\r\n\r\nIn fact, I'd say that having this functionality in Requests...
https://api.github.com/repos/psf/requests/issues/3995
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3995/labels{/name}
https://api.github.com/repos/psf/requests/issues/3995/comments
https://api.github.com/repos/psf/requests/issues/3995/events
https://github.com/psf/requests/issues/3995
225,568,259
MDU6SXNzdWUyMjU1NjgyNTk=
3,995
Global session
{ "avatar_url": "https://avatars.githubusercontent.com/u/17710333?v=4", "events_url": "https://api.github.com/users/hangll/events{/privacy}", "followers_url": "https://api.github.com/users/hangll/followers", "following_url": "https://api.github.com/users/hangll/following{/other_user}", "gists_url": "https://api.github.com/users/hangll/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hangll", "id": 17710333, "login": "hangll", "node_id": "MDQ6VXNlcjE3NzEwMzMz", "organizations_url": "https://api.github.com/users/hangll/orgs", "received_events_url": "https://api.github.com/users/hangll/received_events", "repos_url": "https://api.github.com/users/hangll/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hangll/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hangll/subscriptions", "type": "User", "url": "https://api.github.com/users/hangll", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-05-02T01:29:49Z
2021-09-08T11:00:28Z
2017-05-02T07:06:23Z
NONE
resolved
I'd like to have persistent connection for all my http requests to improve performance. Is it recommended to have a global session object and use it everywhere? Or should I create a session dictionary to have different session per request type? What would be the best practice here?
{ "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/3995/reactions" }
https://api.github.com/repos/psf/requests/issues/3995/timeline
null
completed
null
null
false
[ "A single global session is absolutely fine." ]
https://api.github.com/repos/psf/requests/issues/3994
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3994/labels{/name}
https://api.github.com/repos/psf/requests/issues/3994/comments
https://api.github.com/repos/psf/requests/issues/3994/events
https://github.com/psf/requests/issues/3994
225,334,047
MDU6SXNzdWUyMjUzMzQwNDc=
3,994
Add requests.Session(timeout) parameter
{ "avatar_url": "https://avatars.githubusercontent.com/u/681260?v=4", "events_url": "https://api.github.com/users/giampaolo/events{/privacy}", "followers_url": "https://api.github.com/users/giampaolo/followers", "following_url": "https://api.github.com/users/giampaolo/following{/other_user}", "gists_url": "https://api.github.com/users/giampaolo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/giampaolo", "id": 681260, "login": "giampaolo", "node_id": "MDQ6VXNlcjY4MTI2MA==", "organizations_url": "https://api.github.com/users/giampaolo/orgs", "received_events_url": "https://api.github.com/users/giampaolo/received_events", "repos_url": "https://api.github.com/users/giampaolo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/giampaolo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/giampaolo/subscriptions", "type": "User", "url": "https://api.github.com/users/giampaolo", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-04-30T15:28:41Z
2021-09-08T11:00:29Z
2017-04-30T15:58:41Z
NONE
resolved
...as a parameter which gets inherited globally by `get()` and other HTTP methods. ``` session = requests.Session(timeout=30) session.get(...) session.get(...) ``` Would be equivalent to: ``` session = requests.Session() session.get(..., timeout=30) session.get(..., timeout=30) ``` Thoughts?
{ "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": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/psf/requests/issues/3994/reactions" }
https://api.github.com/repos/psf/requests/issues/3994/timeline
null
completed
null
null
false
[ "Thanks for opening this! This is a duplicate of #3341: please read the discussion there for more.", "Oh sorry about that." ]
https://api.github.com/repos/psf/requests/issues/3993
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3993/labels{/name}
https://api.github.com/repos/psf/requests/issues/3993/comments
https://api.github.com/repos/psf/requests/issues/3993/events
https://github.com/psf/requests/issues/3993
225,222,584
MDU6SXNzdWUyMjUyMjI1ODQ=
3,993
Deadlocks when retry with pool_block=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/299649?v=4", "events_url": "https://api.github.com/users/mattbillenstein/events{/privacy}", "followers_url": "https://api.github.com/users/mattbillenstein/followers", "following_url": "https://api.github.com/users/mattbillenstein/following{/other_user}", "gists_url": "https://api.github.com/users/mattbillenstein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mattbillenstein", "id": 299649, "login": "mattbillenstein", "node_id": "MDQ6VXNlcjI5OTY0OQ==", "organizations_url": "https://api.github.com/users/mattbillenstein/orgs", "received_events_url": "https://api.github.com/users/mattbillenstein/received_events", "repos_url": "https://api.github.com/users/mattbillenstein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mattbillenstein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mattbillenstein/subscriptions", "type": "User", "url": "https://api.github.com/users/mattbillenstein", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2017-04-29T00:49:37Z
2021-09-08T11:00:29Z
2017-04-29T21:52:34Z
NONE
resolved
I created a repo with a testcase for this issue: https://github.com/mattbillenstein/requests-retry-pool-hang I can repro using gevent and threads. It seems there are a few other issues exhibiting deadlocks, so hopefully this testcase is helpful in getting to the bottom of 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/3993/reactions" }
https://api.github.com/repos/psf/requests/issues/3993/timeline
null
completed
null
null
false
[ "Ok, so I have something that fixes this for me -- retries are implemented using recursion and before recursing, the connection isn't released back to the pool, so for every retry, we would grab another connection while still holding onto the old one for no real reason afaict. See:\r\n\r\nhttps://github.com/mattbi...
https://api.github.com/repos/psf/requests/issues/3992
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3992/labels{/name}
https://api.github.com/repos/psf/requests/issues/3992/comments
https://api.github.com/repos/psf/requests/issues/3992/events
https://github.com/psf/requests/issues/3992
224,479,168
MDU6SXNzdWUyMjQ0NzkxNjg=
3,992
Invalid file object with requests >= 2.13.0 on Jython
{ "avatar_url": "https://avatars.githubusercontent.com/u/546693?v=4", "events_url": "https://api.github.com/users/LordGaav/events{/privacy}", "followers_url": "https://api.github.com/users/LordGaav/followers", "following_url": "https://api.github.com/users/LordGaav/following{/other_user}", "gists_url": "https://api.github.com/users/LordGaav/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LordGaav", "id": 546693, "login": "LordGaav", "node_id": "MDQ6VXNlcjU0NjY5Mw==", "organizations_url": "https://api.github.com/users/LordGaav/orgs", "received_events_url": "https://api.github.com/users/LordGaav/received_events", "repos_url": "https://api.github.com/users/LordGaav/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LordGaav/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LordGaav/subscriptions", "type": "User", "url": "https://api.github.com/users/LordGaav", "user_view_type": "public" }
[]
closed
true
null
[]
null
11
2017-04-26T14:03:02Z
2021-11-26T05:00:32Z
2021-08-28T04:18:22Z
NONE
resolved
I'm running into a repeatable error when testing [omniconf](https://github.com/cyso/omniconf/tree/1.1.1) on Jython with requests >= 2.13.0: ``` ====================================================================== 1) ERROR: test suite for <class 'omniconf.tests.backends.test_vault.TestVaultBackend'> ---------------------------------------------------------------------- Traceback (most recent call last): .tox/jython/Lib/site-packages/nose/suite.py line 209 in run self.setUp() .tox/jython/Lib/site-packages/nose/suite.py line 292 in setUp self.setupContext(ancestor) .tox/jython/Lib/site-packages/nose/suite.py line 315 in setupContext try_run(context, names) .tox/jython/Lib/site-packages/nose/util.py line 471 in try_run return func() omniconf/tests/backends/test_vault.py line 87 in setUpClass cls.manager.initialize() .tox/jython/Lib/site-packages/hvac/tests/util.py line 44 in initialize assert not self.client.is_initialized() .tox/jython/Lib/site-packages/hvac/v1/__init__.py line 92 in is_initialized return self._get('/v1/sys/init').json()['initialized'] .tox/jython/Lib/site-packages/hvac/v1/__init__.py line 944 in _get return self.__request('get', url, **kwargs) .tox/jython/Lib/site-packages/hvac/v1/__init__.py line 971 in _Client__request response = self.session.request(method, url, headers=headers, .tox/jython/Lib/site-packages/requests/sessions.py line 488 in request resp = self.send(prep, **send_kwargs) .tox/jython/Lib/site-packages/requests/sessions.py line 609 in send r = adapter.send(request, **kwargs) .tox/jython/Lib/site-packages/requests/adapters.py line 413 in send resp = conn.urlopen( .tox/jython/Lib/site-packages/requests/adapters.py line 413 in send resp = conn.urlopen( .tox/jython/Lib/site-packages/requests/packages/urllib3/connectionpool.py line 588 in urlopen conn = self._get_conn(timeout=pool_timeout) .tox/jython/Lib/site-packages/requests/packages/urllib3/connectionpool.py line 588 in urlopen conn = self._get_conn(timeout=pool_timeout) .tox/jython/Lib/site-packages/requests/packages/urllib3/connectionpool.py line 241 in _get_conn if conn and is_connection_dropped(conn): .tox/jython/Lib/site-packages/requests/packages/urllib3/util/connection.py line 27 in is_connection_dropped return bool(wait_for_read(sock, timeout=0.0)) .tox/jython/Lib/site-packages/requests/packages/urllib3/util/connection.py line 27 in is_connection_dropped return bool(wait_for_read(sock, timeout=0.0)) .tox/jython/Lib/site-packages/requests/packages/urllib3/util/wait.py line 33 in wait_for_read return _wait_for_io_events(socks, EVENT_READ, timeout) .tox/jython/Lib/site-packages/requests/packages/urllib3/util/wait.py line 24 in _wait_for_io_events selector.register(sock, events) .tox/jython/Lib/site-packages/requests/packages/urllib3/util/selectors.py line 314 in register key = super(PollSelector, self).register(fileobj, events, data) .tox/jython/Lib/site-packages/requests/packages/urllib3/util/selectors.py line 179 in register key = SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, data) .tox/jython/Lib/site-packages/requests/packages/urllib3/util/selectors.py line 163 in _fileobj_lookup return _fileobj_to_fd(fileobj) .tox/jython/Lib/site-packages/requests/packages/urllib3/util/selectors.py line 47 in _fileobj_to_fd raise ValueError("Invalid file object: {0!r}".format(fileobj)) ValueError: Invalid file object: <_socket._socketobject object at 0x1cc> -------------------- >> begin captured logging << -------------------- requests.packages.urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): localhost requests.packages.urllib3.connectionpool: DEBUG: http://localhost:18200 "GET /v1/sys/init HTTP/1.1" 200 22 --------------------- >> end captured logging << --------------------- ``` My test [initializes hvac](https://github.com/cyso/omniconf/blob/1.1.1/omniconf/tests/backends/test_vault.py#L78), which in turn checks if the requests client [is already initialized](https://github.com/ianunruh/hvac/blob/v0.2.17/hvac/v1/__init__.py#L92). This seems to do a GET request, but when [opening the response](https://github.com/kennethreitz/requests/blob/v2.13.0/requests/packages/urllib3/util/selectors.py#L45), the resulting file object is reported as being invalid. I can reproduce this error when running omniconf tests with `tox -e jython`, after installing Jython and Hashicorp Vault (see the [.travis-ci.yml](https://github.com/cyso/omniconf/blob/1.1.1/.travis.yml#L34) for steps). Older versions of requests work fine, specifically when specifying `requests < 1.12.0` (because of the earlier issues with `Method code too large!`).
{ "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/3992/reactions" }
https://api.github.com/repos/psf/requests/issues/3992/timeline
null
completed
null
null
false
[ "This seems extremely likely to be related to the use of selector objects in Python. This error is raised when we attempt to call the `fileno` method on the socket object, so that we can wait on it. Can you confirm that this simply doesn't work on Jython?", "Ah, nevermind, I can:\r\n\r\n```python\r\n>>> import so...
https://api.github.com/repos/psf/requests/issues/3991
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3991/labels{/name}
https://api.github.com/repos/psf/requests/issues/3991/comments
https://api.github.com/repos/psf/requests/issues/3991/events
https://github.com/psf/requests/pull/3991
224,268,510
MDExOlB1bGxSZXF1ZXN0MTE3NTc4Mzc4
3,991
Remove some unused imports.
{ "avatar_url": "https://avatars.githubusercontent.com/u/5584439?v=4", "events_url": "https://api.github.com/users/chrisgavin/events{/privacy}", "followers_url": "https://api.github.com/users/chrisgavin/followers", "following_url": "https://api.github.com/users/chrisgavin/following{/other_user}", "gists_url": "https://api.github.com/users/chrisgavin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chrisgavin", "id": 5584439, "login": "chrisgavin", "node_id": "MDQ6VXNlcjU1ODQ0Mzk=", "organizations_url": "https://api.github.com/users/chrisgavin/orgs", "received_events_url": "https://api.github.com/users/chrisgavin/received_events", "repos_url": "https://api.github.com/users/chrisgavin/repos", "site_admin": true, "starred_url": "https://api.github.com/users/chrisgavin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisgavin/subscriptions", "type": "User", "url": "https://api.github.com/users/chrisgavin", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-04-25T20:52:20Z
2021-09-06T00:07:01Z
2017-04-26T12:09:35Z
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/3991/reactions" }
https://api.github.com/repos/psf/requests/issues/3991/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3991.diff", "html_url": "https://github.com/psf/requests/pull/3991", "merged_at": "2017-04-26T12:09:35Z", "patch_url": "https://github.com/psf/requests/pull/3991.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3991" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/3991?src=pr&el=h1) Report\n> Merging [#3991](https://codecov.io/gh/kennethreitz/requests/pull/3991?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/44106f18b75bfbafa63b1a1910366d57d554bc41?src=pr&el=desc) will **decrease**...
https://api.github.com/repos/psf/requests/issues/3990
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3990/labels{/name}
https://api.github.com/repos/psf/requests/issues/3990/comments
https://api.github.com/repos/psf/requests/issues/3990/events
https://github.com/psf/requests/issues/3990
223,918,494
MDU6SXNzdWUyMjM5MTg0OTQ=
3,990
Can't get Proxy to work with https and http works only with auth, not like the Docu descripes
{ "avatar_url": "https://avatars.githubusercontent.com/u/27972108?v=4", "events_url": "https://api.github.com/users/eisbaer9/events{/privacy}", "followers_url": "https://api.github.com/users/eisbaer9/followers", "following_url": "https://api.github.com/users/eisbaer9/following{/other_user}", "gists_url": "https://api.github.com/users/eisbaer9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eisbaer9", "id": 27972108, "login": "eisbaer9", "node_id": "MDQ6VXNlcjI3OTcyMTA4", "organizations_url": "https://api.github.com/users/eisbaer9/orgs", "received_events_url": "https://api.github.com/users/eisbaer9/received_events", "repos_url": "https://api.github.com/users/eisbaer9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eisbaer9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eisbaer9/subscriptions", "type": "User", "url": "https://api.github.com/users/eisbaer9", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2017-04-24T18:57:18Z
2021-09-08T11:00:30Z
2017-04-25T08:09:44Z
NONE
resolved
I'm trying to get requests work with an Proxy. From the Documentation it should work with this Dictionary: `proxies = {'http' : 'http://username:password@proxy:8080', 'https': 'https://proxy:8080'} ` when i try: `r = requests.get('http://google.com', proxies=proxies)` i get this error: requests.exceptions.ProxyError: HTTPConnectionPool(host='username', port=80): Max retries exceeded with url: http://google.com/ (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x04755510>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))) If i use it like this: ``` auth = HTTPProxyAuth(username, password) proxies = {'http' : 'http://www-proxy2-de001.d.grp:8080'} r = requests.get('http://google.com', proxies=proxies, auth=auth) ``` Everything is fine. Now i'm trying the same with https, but most time i get an 407, with this: ``` auth = HTTPProxyAuth(username, password) proxies = {'http' : 'http://proxy:8080', 'https': 'https://proxy:8080'} r = requests.get('https://google.com', proxies=proxies, auth=auth) ``` And with this code: ` proxies = {'http' : 'www-proxy2-de001.d.grp:8080', 'https': 'http://username:password@proxy:8080'} r = requests.get('https://google.com', proxies=proxies)` i get this error: raise ProxyError(e, request=request) requests.exceptions.ProxyError: HTTPSConnectionPool(host='google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x045344D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))) I have no more idea, why it is not working. Any help are great.
{ "avatar_url": "https://avatars.githubusercontent.com/u/27972108?v=4", "events_url": "https://api.github.com/users/eisbaer9/events{/privacy}", "followers_url": "https://api.github.com/users/eisbaer9/followers", "following_url": "https://api.github.com/users/eisbaer9/following{/other_user}", "gists_url": "https://api.github.com/users/eisbaer9/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eisbaer9", "id": 27972108, "login": "eisbaer9", "node_id": "MDQ6VXNlcjI3OTcyMTA4", "organizations_url": "https://api.github.com/users/eisbaer9/orgs", "received_events_url": "https://api.github.com/users/eisbaer9/received_events", "repos_url": "https://api.github.com/users/eisbaer9/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eisbaer9/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eisbaer9/subscriptions", "type": "User", "url": "https://api.github.com/users/eisbaer9", "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/3990/reactions" }
https://api.github.com/repos/psf/requests/issues/3990/timeline
null
completed
null
null
false
[ "Forgott something:\r\n\r\ni use Python on WIndows WinPython-32bit-3.6.1.0Qt5\r\nand Requests: requests==2.10.0", "It's *extremely* likely that your proxy password contains an `@` symbol, which is causing our URL parsing to get confused. You need to urlencode your password (that is, run it through `urllib.quote`)...
https://api.github.com/repos/psf/requests/issues/3989
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3989/labels{/name}
https://api.github.com/repos/psf/requests/issues/3989/comments
https://api.github.com/repos/psf/requests/issues/3989/events
https://github.com/psf/requests/issues/3989
223,908,316
MDU6SXNzdWUyMjM5MDgzMTY=
3,989
Upload data progress
{ "avatar_url": "https://avatars.githubusercontent.com/u/987796?v=4", "events_url": "https://api.github.com/users/gladiacxtylish/events{/privacy}", "followers_url": "https://api.github.com/users/gladiacxtylish/followers", "following_url": "https://api.github.com/users/gladiacxtylish/following{/other_user}", "gists_url": "https://api.github.com/users/gladiacxtylish/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gladiacxtylish", "id": 987796, "login": "gladiacxtylish", "node_id": "MDQ6VXNlcjk4Nzc5Ng==", "organizations_url": "https://api.github.com/users/gladiacxtylish/orgs", "received_events_url": "https://api.github.com/users/gladiacxtylish/received_events", "repos_url": "https://api.github.com/users/gladiacxtylish/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gladiacxtylish/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gladiacxtylish/subscriptions", "type": "User", "url": "https://api.github.com/users/gladiacxtylish", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-04-24T18:18:00Z
2021-09-08T11:00:30Z
2017-04-25T11:52:32Z
NONE
resolved
I saw examples of using `iter_content` to get progress of the download, but I do not see a corresponding API for upload a blob. I am requesting such feature. 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/3989/reactions" }
https://api.github.com/repos/psf/requests/issues/3989/timeline
null
completed
null
null
false
[ "If you are uploading a blob of data you can provide either an iterable object (which will be uploaded using chunked encoding) or a file-like object that provides a `read` method (which, if we can determine a length, will be streamed to the server). In either case, we have to call into your code to retrieve the nex...
https://api.github.com/repos/psf/requests/issues/3988
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3988/labels{/name}
https://api.github.com/repos/psf/requests/issues/3988/comments
https://api.github.com/repos/psf/requests/issues/3988/events
https://github.com/psf/requests/pull/3988
223,896,978
MDExOlB1bGxSZXF1ZXN0MTE3MzE4NTY3
3,988
[WIP] Fix up appveyor testing.
{ "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
44
2017-04-24T17:36:21Z
2021-09-06T00:07:00Z
2017-05-03T17:25:26Z
MEMBER
resolved
This PR will track work as I try to work out where the hell `make` is on appveyor.
{ "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/3988/reactions" }
https://api.github.com/repos/psf/requests/issues/3988/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3988.diff", "html_url": "https://github.com/psf/requests/pull/3988", "merged_at": "2017-05-03T17:25:26Z", "patch_url": "https://github.com/psf/requests/pull/3988.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3988" }
true
[ "Ok, some progress has been made. We are now getting build failures due to our dependencies.\r\n\r\nPython 2.6 is failing because of click, presumably because click doesn't support Python 2.6 + Windows:\r\n\r\n```\r\npipenv lock\r\nTraceback (most recent call last):\r\n File \"c:\\python266-x64\\lib\\runpy.py\", l...
https://api.github.com/repos/psf/requests/issues/3987
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3987/labels{/name}
https://api.github.com/repos/psf/requests/issues/3987/comments
https://api.github.com/repos/psf/requests/issues/3987/events
https://github.com/psf/requests/pull/3987
223,885,370
MDExOlB1bGxSZXF1ZXN0MTE3MzExMjUx
3,987
Revert "Add appveyor testing of Requests."
{ "avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4", "events_url": "https://api.github.com/users/kennethreitz/events{/privacy}", "followers_url": "https://api.github.com/users/kennethreitz/followers", "following_url": "https://api.github.com/users/kennethreitz/following{/other_user}", "gists_url": "https://api.github.com/users/kennethreitz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kennethreitz", "id": 119893, "login": "kennethreitz", "node_id": "MDQ6VXNlcjExOTg5Mw==", "organizations_url": "https://api.github.com/users/kennethreitz/orgs", "received_events_url": "https://api.github.com/users/kennethreitz/received_events", "repos_url": "https://api.github.com/users/kennethreitz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kennethreitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kennethreitz/subscriptions", "type": "User", "url": "https://api.github.com/users/kennethreitz", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2017-04-24T16:56:10Z
2021-09-06T00:07:02Z
2017-04-24T16:56:19Z
CONTRIBUTOR
resolved
Reverts kennethreitz/requests#3983
{ "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/3987/reactions" }
https://api.github.com/repos/psf/requests/issues/3987/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3987.diff", "html_url": "https://github.com/psf/requests/pull/3987", "merged_at": null, "patch_url": "https://github.com/psf/requests/pull/3987.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3987" }
true
[]
https://api.github.com/repos/psf/requests/issues/3986
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3986/labels{/name}
https://api.github.com/repos/psf/requests/issues/3986/comments
https://api.github.com/repos/psf/requests/issues/3986/events
https://github.com/psf/requests/issues/3986
223,624,710
MDU6SXNzdWUyMjM2MjQ3MTA=
3,986
Allow empty data values in multipart form upload
{ "avatar_url": "https://avatars.githubusercontent.com/u/160010?v=4", "events_url": "https://api.github.com/users/charyorde/events{/privacy}", "followers_url": "https://api.github.com/users/charyorde/followers", "following_url": "https://api.github.com/users/charyorde/following{/other_user}", "gists_url": "https://api.github.com/users/charyorde/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/charyorde", "id": 160010, "login": "charyorde", "node_id": "MDQ6VXNlcjE2MDAxMA==", "organizations_url": "https://api.github.com/users/charyorde/orgs", "received_events_url": "https://api.github.com/users/charyorde/received_events", "repos_url": "https://api.github.com/users/charyorde/repos", "site_admin": false, "starred_url": "https://api.github.com/users/charyorde/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/charyorde/subscriptions", "type": "User", "url": "https://api.github.com/users/charyorde", "user_view_type": "public" }
[]
closed
true
null
[]
null
8
2017-04-23T09:47:32Z
2021-09-08T10:00:51Z
2017-05-14T15:33:54Z
NONE
resolved
A multipart form upload with data field such as `{'resources': []}` is transformed as `[]`, leaving out the `resources` key.
{ "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/3986/reactions" }
https://api.github.com/repos/psf/requests/issues/3986/timeline
null
completed
null
null
false
[ "Can you provide sample code that demonstrates the problem, as well as an example of what you believe the correct body should look like?", "For example, \r\n```\r\ndata = {'resources': []}\r\nfiles = {'file': open('file.zip', 'rb')}\r\nrequests.put('/upload', data=data, files=files)\r\n```", "And what is your e...
https://api.github.com/repos/psf/requests/issues/3985
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3985/labels{/name}
https://api.github.com/repos/psf/requests/issues/3985/comments
https://api.github.com/repos/psf/requests/issues/3985/events
https://github.com/psf/requests/issues/3985
223,427,350
MDU6SXNzdWUyMjM0MjczNTA=
3,985
No module named 'requests.packages.urllib3.packages.six' // requests on python3.6 Lambda
{ "avatar_url": "https://avatars.githubusercontent.com/u/139987?v=4", "events_url": "https://api.github.com/users/Miserlou/events{/privacy}", "followers_url": "https://api.github.com/users/Miserlou/followers", "following_url": "https://api.github.com/users/Miserlou/following{/other_user}", "gists_url": "https://api.github.com/users/Miserlou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Miserlou", "id": 139987, "login": "Miserlou", "node_id": "MDQ6VXNlcjEzOTk4Nw==", "organizations_url": "https://api.github.com/users/Miserlou/orgs", "received_events_url": "https://api.github.com/users/Miserlou/received_events", "repos_url": "https://api.github.com/users/Miserlou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Miserlou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Miserlou/subscriptions", "type": "User", "url": "https://api.github.com/users/Miserlou", "user_view_type": "public" }
[]
closed
true
null
[]
null
10
2017-04-21T16:02:19Z
2021-09-08T10:00:53Z
2017-04-21T16:52:20Z
NONE
resolved
Hey all! Note: This issue _may_ be out of scope for the requests project, I'm not sure, but honestly I'd really appreciate your help in explaining the rationale behind [some of the behavior](https://github.com/kennethreitz/requests/blob/master/requests/packages/__init__.py#L26-L30) related to this section of the codebase ([related PR discussion](https://github.com/kennethreitz/requests/pull/2375)). Let me know if this ticket is out of scope and we can move the discussion back downstream. I'm currently working on adding [Python3.6 support to Zappa](https://github.com/Miserlou/Zappa/issues/793) - it pretty much works, _except_ for the requests library. Any time `import requests` is called, this happens: ```javascript 'message':'An uncaught exception happened while servicing this request. You can investigate this with the `zappa tail` command.', 'traceback':[ 'Traceback (most recent call last):\n', ' File "/var/task/requests/packages/__init__.py", line 27, in <module>\n from . import urllib3\n', ' File "/var/task/requests/packages/urllib3/__init__.py", line 8, in <module>\n from .connectionpool import (\n', ' File "/var/task/requests/packages/urllib3/connectionpool.py", line 11, in <module>\n from .exceptions import (\n', ' File "/var/task/requests/packages/urllib3/exceptions.py", line 2, in <module>\n from .packages.six.moves.http_client import (\n', "ModuleNotFoundError: No module named 'requests.packages.urllib3.packages.six'\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/var/task/handler.py", line 471, in handler\n response = Response.from_app(self.wsgi_app, environ)\n', ' File "/var/task/werkzeug/wrappers.py", line 903, in from_app\n return cls(*_run_wsgi_app(app, environ, buffered))\n', ' File "/var/task/werkzeug/test.py", line 884, in run_wsgi_app\n app_rv = app(environ, start_response)\n', ' File "/var/task/zappa/middleware.py", line 66, in __call__\n response = self.application(environ, encode_response)\n', ' File "/var/task/flask/app.py", line 1997, in __call__\n return self.wsgi_app(environ, start_response)\n', ' File "/var/task/flask/app.py", line 1985, in wsgi_app\n response = self.handle_exception(e)\n', ' File "/var/task/flask/app.py", line 1540, in handle_exception\n reraise(exc_type, exc_value, tb)\n', ' File "/var/task/flask/_compat.py", line 33, in reraise\n raise value\n', ' File "/var/task/flask/app.py", line 1982, in wsgi_app\n response = self.full_dispatch_request()\n', ' File "/var/task/flask/app.py", line 1614, in full_dispatch_request\n rv = self.handle_user_exception(e)\n', ' File "/var/task/flask/app.py", line 1517, in handle_user_exception\n reraise(exc_type, exc_value, tb)\n', ' File "/var/task/flask/_compat.py", line 33, in reraise\n raise value\n', ' File "/var/task/flask/app.py", line 1612, in full_dispatch_request\n rv = self.dispatch_request()\n', ' File "/var/task/flask/app.py", line 1598, in dispatch_request\n return self.view_functions[rule.endpoint](**req.view_args)\n', ' File "/var/task/app3.py", line 10, in home\n import requests\n', ' File "/var/task/requests/__init__.py", line 60, in <module>\n from .packages.urllib3.exceptions import DependencyWarning\n', ' File "/var/task/requests/packages/__init__.py", line 29, in <module>\n import urllib3\n', ' File "/var/task/urllib3/__init__.py", line 8, in <module>\n from .connectionpool import (\n', ' File "/var/task/urllib3/connectionpool.py", line 11, in <module>\n from .exceptions import (\n', ' File "/var/task/urllib3/exceptions.py", line 2, in <module>\n from .packages.six.moves.http_client import (\n', "ModuleNotFoundError: No module named 'urllib3.packages.six'\n" ``` It looks to me like the vendoring of requests's urllib3 is conflicting with the urllib3 in the Lambda environment. I'd really prefer not to add a special case for the import of requests - is there a recommended way of packaging or configuring of requests that avoids this problem? (For some context, for those who don't know how Zappa works, we are creating a virtual environment one system, packaging it up into a zip and deploying it to another system, which may or may not be on the same operating system. For pure-python projects, this isn't usually a problem, but since there is some operating-system dependent logic here, maybe it is here, although it hasn't been a problem for the 2.7 environment.) Any ideas what's happening here? Thanks!
{ "avatar_url": "https://avatars.githubusercontent.com/u/139987?v=4", "events_url": "https://api.github.com/users/Miserlou/events{/privacy}", "followers_url": "https://api.github.com/users/Miserlou/followers", "following_url": "https://api.github.com/users/Miserlou/following{/other_user}", "gists_url": "https://api.github.com/users/Miserlou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Miserlou", "id": 139987, "login": "Miserlou", "node_id": "MDQ6VXNlcjEzOTk4Nw==", "organizations_url": "https://api.github.com/users/Miserlou/orgs", "received_events_url": "https://api.github.com/users/Miserlou/received_events", "repos_url": "https://api.github.com/users/Miserlou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Miserlou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Miserlou/subscriptions", "type": "User", "url": "https://api.github.com/users/Miserlou", "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/3985/reactions" }
https://api.github.com/repos/psf/requests/issues/3985/timeline
null
completed
null
null
false
[ "It looks extremely likely that urllib3 has been torn apart in some way. Where are you getting that urllib3 from? Does it reproduce with just the code `import urllib3`?", "Yes, the error is recreated with just `import urllib3`, if `urllib3` is included in the Lambda package. Without urllib3 in the package, I get ...
https://api.github.com/repos/psf/requests/issues/3984
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3984/labels{/name}
https://api.github.com/repos/psf/requests/issues/3984/comments
https://api.github.com/repos/psf/requests/issues/3984/events
https://github.com/psf/requests/pull/3984
223,389,060
MDExOlB1bGxSZXF1ZXN0MTE2OTg5MjU3
3,984
Fix the additional newline generated by iter_lines() caused by a '\r\n' pair being separated in two different chunks.
{ "avatar_url": "https://avatars.githubusercontent.com/u/46543?v=4", "events_url": "https://api.github.com/users/PCMan/events{/privacy}", "followers_url": "https://api.github.com/users/PCMan/followers", "following_url": "https://api.github.com/users/PCMan/following{/other_user}", "gists_url": "https://api.github.com/users/PCMan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PCMan", "id": 46543, "login": "PCMan", "node_id": "MDQ6VXNlcjQ2NTQz", "organizations_url": "https://api.github.com/users/PCMan/orgs", "received_events_url": "https://api.github.com/users/PCMan/received_events", "repos_url": "https://api.github.com/users/PCMan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PCMan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PCMan/subscriptions", "type": "User", "url": "https://api.github.com/users/PCMan", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2017-04-21T13:48:45Z
2021-09-06T00:07:01Z
2017-04-26T15:07:46Z
NONE
resolved
When a "\r\n" CRLF pair is splitted into two chunks accidentally, iter_lines() generates two line breaks instead of one. This patch fixes the incorrect behavior and closes issue #3980.
{ "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/3984/reactions" }
https://api.github.com/repos/psf/requests/issues/3984/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3984.diff", "html_url": "https://github.com/psf/requests/pull/3984", "merged_at": "2017-04-26T15:07:46Z", "patch_url": "https://github.com/psf/requests/pull/3984.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3984" }
true
[ "@Lukasa Thanks for the review and I already modified the code by following your instructions.\r\nHowever there seems to be some issues with the unit tests. I'll take a look on them.", "@Lukasa While trying to fix the unit tests, I noted that treating \"\\r\\n\" as two line breaks is actually the intended behavio...
https://api.github.com/repos/psf/requests/issues/3983
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3983/labels{/name}
https://api.github.com/repos/psf/requests/issues/3983/comments
https://api.github.com/repos/psf/requests/issues/3983/events
https://github.com/psf/requests/pull/3983
223,352,676
MDExOlB1bGxSZXF1ZXN0MTE2OTYyNjAz
3,983
Add appveyor testing of Requests.
{ "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
6
2017-04-21T11:09:03Z
2021-09-06T00:07:01Z
2017-04-24T16:49:26Z
MEMBER
resolved
In general it'd be good to have more testing, but it's also possible that via PR #3979 we'll get unexpected different behaviour on Windows than on other platforms. For this reason, we should start also testing on Windows. This PR takes the configuration used for urllib3, updates it for Requests, and then provides it. We'll still need to actually enable Appveyor so that it'll try to build, which I cannot do as I don't have admin on the repo. @kennethreitz, mind giving that a try?
{ "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/3983/reactions" }
https://api.github.com/repos/psf/requests/issues/3983/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3983.diff", "html_url": "https://github.com/psf/requests/pull/3983", "merged_at": "2017-04-24T16:49:25Z", "patch_url": "https://github.com/psf/requests/pull/3983.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3983" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/3983?src=pr&el=h1) Report\n> Merging [#3983](https://codecov.io/gh/kennethreitz/requests/pull/3983?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/f6c58ec5820e29c1214c8e3ff887f571c32ffd48?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/3982
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3982/labels{/name}
https://api.github.com/repos/psf/requests/issues/3982/comments
https://api.github.com/repos/psf/requests/issues/3982/events
https://github.com/psf/requests/pull/3982
223,347,491
MDExOlB1bGxSZXF1ZXN0MTE2OTU4NzUx
3,982
configure sudo: false on travis
{ "avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4", "events_url": "https://api.github.com/users/graingert/events{/privacy}", "followers_url": "https://api.github.com/users/graingert/followers", "following_url": "https://api.github.com/users/graingert/following{/other_user}", "gists_url": "https://api.github.com/users/graingert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/graingert", "id": 413772, "login": "graingert", "node_id": "MDQ6VXNlcjQxMzc3Mg==", "organizations_url": "https://api.github.com/users/graingert/orgs", "received_events_url": "https://api.github.com/users/graingert/received_events", "repos_url": "https://api.github.com/users/graingert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/graingert/subscriptions", "type": "User", "url": "https://api.github.com/users/graingert", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-04-21T10:44:14Z
2021-09-06T00:07:02Z
2017-04-21T10:54:33Z
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/3982/reactions" }
https://api.github.com/repos/psf/requests/issues/3982/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3982.diff", "html_url": "https://github.com/psf/requests/pull/3982", "merged_at": "2017-04-21T10:54:33Z", "patch_url": "https://github.com/psf/requests/pull/3982.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3982" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/3982?src=pr&el=h1) Report\n> Merging [#3982](https://codecov.io/gh/kennethreitz/requests/pull/3982?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/52a3526a99e0129ef239ec811a125272398a9f7c?src=pr&el=desc) will **not change...
https://api.github.com/repos/psf/requests/issues/3981
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3981/labels{/name}
https://api.github.com/repos/psf/requests/issues/3981/comments
https://api.github.com/repos/psf/requests/issues/3981/events
https://github.com/psf/requests/pull/3981
223,342,580
MDExOlB1bGxSZXF1ZXN0MTE2OTU1MTc0
3,981
enable travis pip cache
{ "avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4", "events_url": "https://api.github.com/users/graingert/events{/privacy}", "followers_url": "https://api.github.com/users/graingert/followers", "following_url": "https://api.github.com/users/graingert/following{/other_user}", "gists_url": "https://api.github.com/users/graingert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/graingert", "id": 413772, "login": "graingert", "node_id": "MDQ6VXNlcjQxMzc3Mg==", "organizations_url": "https://api.github.com/users/graingert/orgs", "received_events_url": "https://api.github.com/users/graingert/received_events", "repos_url": "https://api.github.com/users/graingert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/graingert/subscriptions", "type": "User", "url": "https://api.github.com/users/graingert", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-04-21T10:23:04Z
2021-09-06T00:07:03Z
2017-04-21T10:32:41Z
CONTRIBUTOR
resolved
null
{ "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/3981/reactions" }
https://api.github.com/repos/psf/requests/issues/3981/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3981.diff", "html_url": "https://github.com/psf/requests/pull/3981", "merged_at": "2017-04-21T10:32:41Z", "patch_url": "https://github.com/psf/requests/pull/3981.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3981" }
true
[ "Thanks @graingert!", "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/3981?src=pr&el=h1) Report\n> Merging [#3981](https://codecov.io/gh/kennethreitz/requests/pull/3981?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/524627ef21818e06a33bf4b54cd9c93a7dc35b21?src=pr&el...
https://api.github.com/repos/psf/requests/issues/3980
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3980/labels{/name}
https://api.github.com/repos/psf/requests/issues/3980/comments
https://api.github.com/repos/psf/requests/issues/3980/events
https://github.com/psf/requests/issues/3980
223,287,665
MDU6SXNzdWUyMjMyODc2NjU=
3,980
iter_lines() sometimes yields broken results when chunk_size is small
{ "avatar_url": "https://avatars.githubusercontent.com/u/46543?v=4", "events_url": "https://api.github.com/users/PCMan/events{/privacy}", "followers_url": "https://api.github.com/users/PCMan/followers", "following_url": "https://api.github.com/users/PCMan/following{/other_user}", "gists_url": "https://api.github.com/users/PCMan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PCMan", "id": 46543, "login": "PCMan", "node_id": "MDQ6VXNlcjQ2NTQz", "organizations_url": "https://api.github.com/users/PCMan/orgs", "received_events_url": "https://api.github.com/users/PCMan/received_events", "repos_url": "https://api.github.com/users/PCMan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PCMan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PCMan/subscriptions", "type": "User", "url": "https://api.github.com/users/PCMan", "user_view_type": "public" }
[]
closed
true
null
[]
null
14
2017-04-21T06:15:38Z
2021-09-04T00:06:13Z
2017-05-01T14:09:50Z
NONE
resolved
Here is a small test program to demonstrate the bug: ``` import requests url = "http://lohas.pixnet.net/blog" r = requests.get(url) iter_lines = [line for line in r.iter_lines(chunk_size=7, decode_unicode=False)] split_lines = r.content.splitlines() for index, (iline, sline) in enumerate(zip(iter_lines, split_lines)): if iline != sline: print("line {} is broken".format(index)) print(iline, len(iline)) print(sline, len(sline)) break ``` Expected behavior: r.iter_lines() should give the same result as r.content.splitlines() Actual behavior: The test program generates the following output: ``` line 275 is broken b'' 0 b'\t\t\t<tbody>' 10 ``` Changing chunk_size can break different lines.
{ "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/3980/reactions" }
https://api.github.com/repos/psf/requests/issues/3980/timeline
null
completed
null
null
false
[ "It's not caused by incorrect unicode decoding.\r\nI tested this with both `decode_unicode=True` and `decode_unicode=False`. In both cases the bug can be reproduced if chunk_size is small enough.", "I currently use the following code snip as a drop-in replacement.\r\n```\r\ndef my_iter_lines(result):\r\n ...
https://api.github.com/repos/psf/requests/issues/3979
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3979/labels{/name}
https://api.github.com/repos/psf/requests/issues/3979/comments
https://api.github.com/repos/psf/requests/issues/3979/events
https://github.com/psf/requests/pull/3979
223,071,801
MDExOlB1bGxSZXF1ZXN0MTE2Nzc0MTUw
3,979
improve proxy bypass on Windows
{ "avatar_url": "https://avatars.githubusercontent.com/u/238652?v=4", "events_url": "https://api.github.com/users/schlamar/events{/privacy}", "followers_url": "https://api.github.com/users/schlamar/followers", "following_url": "https://api.github.com/users/schlamar/following{/other_user}", "gists_url": "https://api.github.com/users/schlamar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/schlamar", "id": 238652, "login": "schlamar", "node_id": "MDQ6VXNlcjIzODY1Mg==", "organizations_url": "https://api.github.com/users/schlamar/orgs", "received_events_url": "https://api.github.com/users/schlamar/received_events", "repos_url": "https://api.github.com/users/schlamar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/schlamar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schlamar/subscriptions", "type": "User", "url": "https://api.github.com/users/schlamar", "user_view_type": "public" }
[]
closed
true
null
[]
null
19
2017-04-20T13:42:43Z
2021-09-06T00:06:59Z
2017-05-04T14:18:30Z
CONTRIBUTOR
resolved
See #3976
{ "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/3979/reactions" }
https://api.github.com/repos/psf/requests/issues/3979/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3979.diff", "html_url": "https://github.com/psf/requests/pull/3979", "merged_at": "2017-05-04T14:18:30Z", "patch_url": "https://github.com/psf/requests/pull/3979.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3979" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/3979?src=pr&el=h1) Report\n> Merging [#3979](https://codecov.io/gh/kennethreitz/requests/pull/3979?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/26ab951300d192ed3ab62fdb1f0548c961731e6a?src=pr&el=desc) will **decrease**...
https://api.github.com/repos/psf/requests/issues/3978
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3978/labels{/name}
https://api.github.com/repos/psf/requests/issues/3978/comments
https://api.github.com/repos/psf/requests/issues/3978/events
https://github.com/psf/requests/pull/3978
223,049,688
MDExOlB1bGxSZXF1ZXN0MTE2NzU4NDgw
3,978
remove seemingly redundant pyflakes references
{ "avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4", "events_url": "https://api.github.com/users/graingert/events{/privacy}", "followers_url": "https://api.github.com/users/graingert/followers", "following_url": "https://api.github.com/users/graingert/following{/other_user}", "gists_url": "https://api.github.com/users/graingert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/graingert", "id": 413772, "login": "graingert", "node_id": "MDQ6VXNlcjQxMzc3Mg==", "organizations_url": "https://api.github.com/users/graingert/orgs", "received_events_url": "https://api.github.com/users/graingert/received_events", "repos_url": "https://api.github.com/users/graingert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/graingert/subscriptions", "type": "User", "url": "https://api.github.com/users/graingert", "user_view_type": "public" }
[]
closed
true
null
[]
null
0
2017-04-20T12:23:41Z
2021-09-06T00:07:03Z
2017-04-20T13:44:20Z
CONTRIBUTOR
resolved
null
{ "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/3978/reactions" }
https://api.github.com/repos/psf/requests/issues/3978/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3978.diff", "html_url": "https://github.com/psf/requests/pull/3978", "merged_at": "2017-04-20T13:44:20Z", "patch_url": "https://github.com/psf/requests/pull/3978.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3978" }
true
[]
https://api.github.com/repos/psf/requests/issues/3977
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3977/labels{/name}
https://api.github.com/repos/psf/requests/issues/3977/comments
https://api.github.com/repos/psf/requests/issues/3977/events
https://github.com/psf/requests/issues/3977
223,012,125
MDU6SXNzdWUyMjMwMTIxMjU=
3,977
No Content-Length header when POSTing or PUTing an empty Django InMemoryUploadedFile
{ "avatar_url": "https://avatars.githubusercontent.com/u/3957868?v=4", "events_url": "https://api.github.com/users/CianciuStyles/events{/privacy}", "followers_url": "https://api.github.com/users/CianciuStyles/followers", "following_url": "https://api.github.com/users/CianciuStyles/following{/other_user}", "gists_url": "https://api.github.com/users/CianciuStyles/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CianciuStyles", "id": 3957868, "login": "CianciuStyles", "node_id": "MDQ6VXNlcjM5NTc4Njg=", "organizations_url": "https://api.github.com/users/CianciuStyles/orgs", "received_events_url": "https://api.github.com/users/CianciuStyles/received_events", "repos_url": "https://api.github.com/users/CianciuStyles/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CianciuStyles/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CianciuStyles/subscriptions", "type": "User", "url": "https://api.github.com/users/CianciuStyles", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2017-04-20T09:57:12Z
2021-09-08T11:00:30Z
2017-04-22T12:45:50Z
NONE
resolved
I'm trying to send a PUT request passing as the data kwarg an instance of a InMemoryUploadedFile (which is the model Django uses for uploaded files, see for reference https://docs.djangoproject.com/en/1.10/ref/files/uploads/#django.core.files.uploadedfile.InMemoryUploadedFile), like this: ``` files = request.FILES.getlist('file') for uploaded_file in files: [...] requests.put(upload_url, data=uploaded_file) ``` The problem is that the resulting request will not have the expected Content-Length header, but the Transfer-Encoding one. I think the problem is at https://github.com/kennethreitz/requests/blob/master/requests/models.py#L492, where requests sets one header or the other based on the `if length` check. In the case of a stream with 0 length, the check fails and the Transfer-Encoding header gets set. The snippet above works as intended when the file is non-empty (because the `if length` check passes), and also `requests.put(upload_url, data=uploaded_file.read())` works (as this is not a stream anymore, but it could cause problems when reading a huge file in memory).
{ "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/3977/reactions" }
https://api.github.com/repos/psf/requests/issues/3977/timeline
null
completed
null
null
false
[ "Why is the transfer encoding header a problem? HTTP/1.1 servers are required to understand it. ", "The problem is not in the Transfer-Encoding header, but the lack of the Content-Length header: if I try to upload the file to Amazon S3 (for example), it will reply with a 411 Content Length Missing response.", "...
https://api.github.com/repos/psf/requests/issues/3976
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3976/labels{/name}
https://api.github.com/repos/psf/requests/issues/3976/comments
https://api.github.com/repos/psf/requests/issues/3976/events
https://github.com/psf/requests/issues/3976
222,988,467
MDU6SXNzdWUyMjI5ODg0Njc=
3,976
Don't use `urllib.proxy_bypass` on Windows
{ "avatar_url": "https://avatars.githubusercontent.com/u/238652?v=4", "events_url": "https://api.github.com/users/schlamar/events{/privacy}", "followers_url": "https://api.github.com/users/schlamar/followers", "following_url": "https://api.github.com/users/schlamar/following{/other_user}", "gists_url": "https://api.github.com/users/schlamar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/schlamar", "id": 238652, "login": "schlamar", "node_id": "MDQ6VXNlcjIzODY1Mg==", "organizations_url": "https://api.github.com/users/schlamar/orgs", "received_events_url": "https://api.github.com/users/schlamar/received_events", "repos_url": "https://api.github.com/users/schlamar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/schlamar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schlamar/subscriptions", "type": "User", "url": "https://api.github.com/users/schlamar", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2017-04-20T08:30:28Z
2021-09-08T10:00:58Z
2017-05-04T16:26:48Z
CONTRIBUTOR
resolved
The `urllib.proxy_bypass` implementation on Windows is using forward and reverse DNS requests. This can result in major performance issues (I guess this depends on the DNS server, right now I have seen delays up to 15 seconds!). Additionally, this behavior is contrary to all major browser implementations. This could even be a security issue as people might rely on the proxy as a privacy feature and in this case the client shouldn't do any DNS requests as this could leak private information. I would recommend using a custom implementation which isn't doing any DNS request. References: * https://github.com/kennethreitz/requests/issues/2988 * http://bugs.python.org/issue29533 If you are in favor of this proposal I might be able to do a PR.
{ "avatar_url": "https://avatars.githubusercontent.com/u/238652?v=4", "events_url": "https://api.github.com/users/schlamar/events{/privacy}", "followers_url": "https://api.github.com/users/schlamar/followers", "following_url": "https://api.github.com/users/schlamar/following{/other_user}", "gists_url": "https://api.github.com/users/schlamar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/schlamar", "id": 238652, "login": "schlamar", "node_id": "MDQ6VXNlcjIzODY1Mg==", "organizations_url": "https://api.github.com/users/schlamar/orgs", "received_events_url": "https://api.github.com/users/schlamar/received_events", "repos_url": "https://api.github.com/users/schlamar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/schlamar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schlamar/subscriptions", "type": "User", "url": "https://api.github.com/users/schlamar", "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/3976/reactions" }
https://api.github.com/repos/psf/requests/issues/3976/timeline
null
completed
null
null
false
[ "In principle we are not attached to the specific implementation of `proxy_bypass`, only the net result. Any change away would be required to reproduce all relevant functionality and to provide complete test coverage. If you're open to doing that work we'll happily consider the PR. ", "Basically, this would be th...
https://api.github.com/repos/psf/requests/issues/3975
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3975/labels{/name}
https://api.github.com/repos/psf/requests/issues/3975/comments
https://api.github.com/repos/psf/requests/issues/3975/events
https://github.com/psf/requests/issues/3975
222,780,431
MDU6SXNzdWUyMjI3ODA0MzE=
3,975
requests.packages.urllib3.connection.HTTPConnection object at 0x00007effa13b1ec0>: Failed to establish a new connection: [Errno -11] System error
{ "avatar_url": "https://avatars.githubusercontent.com/u/5113718?v=4", "events_url": "https://api.github.com/users/steelliberty/events{/privacy}", "followers_url": "https://api.github.com/users/steelliberty/followers", "following_url": "https://api.github.com/users/steelliberty/following{/other_user}", "gists_url": "https://api.github.com/users/steelliberty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/steelliberty", "id": 5113718, "login": "steelliberty", "node_id": "MDQ6VXNlcjUxMTM3MTg=", "organizations_url": "https://api.github.com/users/steelliberty/orgs", "received_events_url": "https://api.github.com/users/steelliberty/received_events", "repos_url": "https://api.github.com/users/steelliberty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/steelliberty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/steelliberty/subscriptions", "type": "User", "url": "https://api.github.com/users/steelliberty", "user_view_type": "public" }
[]
closed
true
null
[]
null
25
2017-04-19T15:38:09Z
2021-09-08T11:00:31Z
2017-04-21T14:56:12Z
NONE
resolved
While using grequests I get the following error after running a program which repeatedly checks a batch of urls to determine if the sites are up. For simplicity say I do this : I have 50 urls. I created an httpmonitor module that is handed the urls and then the module is sent to a background/thread-with-Queue. The httpmonitor checks all the urls using standard grequests structure such as this : max_workers = 10 now but I have tried from 50 down to 3 r = (grequests.head(url, callback=timeme, timeout=3, allow_redirects=False, stream = False) for url in urls) results = grequests.map(r, size=max_workers, exception_handler=handle_errors) I deal with the results, update a database and then the thread finishes and independently a new one is added to the Queue (for this example, with the same 50 urls) -- and this goes on and on.. Note. I explicitly close connections after each url is processed with either a Response.close() or a AsyncRequest.session.close() so I believe all connections are closed after each block of urls is processed. Then I set it running and it runs until approximately 1500 requests are processed ( 30 blocks of 50 urls ) and then for a period of time all of the grequests fail with the error above Errno -11, System Error ( which I believe means OUT OF RESOURCES) .. Sometimes it will return to normal operation for a period, most of the time . it fails on all further attempts to access a connection. 1) Is there anymore information on this error that someone might share ? 2) Is there a way to ensure all resources are released outside of grequests? 3) Is there something else I have might have missed? Note: I was able to increase the number times the blocks of urls could be checked by explicitly closing connections -- gaining an addition 400+ url checks -- but then the same error returned. It would seem some resource is not closing and accumulating over the batch runs.. Here is the exact error (url does not matter) HTTPConnectionPool(host='www.yahoo.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x00007effa13b1ec0>: Failed to establish a new connection: [Errno -11] System error',))" Any help or ideas would be appreciated, Thank you
{ "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/3975/reactions" }
https://api.github.com/repos/psf/requests/issues/3975/timeline
null
completed
null
null
false
[ "It seems likely that this is an FD limit. If you raise the ulimit of the process does it delay the error?", "Thank you for the response .. I have not changed the ulimit -- currently at 1024 -- Is there a standard procedure for how to do this and have it remain across reboots.. sorry I have not ventured down that...
https://api.github.com/repos/psf/requests/issues/3974
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3974/labels{/name}
https://api.github.com/repos/psf/requests/issues/3974/comments
https://api.github.com/repos/psf/requests/issues/3974/events
https://github.com/psf/requests/issues/3974
222,688,600
MDU6SXNzdWUyMjI2ODg2MDA=
3,974
'headers' field does not allow multiple headers with the same name
{ "avatar_url": "https://avatars.githubusercontent.com/u/9937444?v=4", "events_url": "https://api.github.com/users/ugultopu/events{/privacy}", "followers_url": "https://api.github.com/users/ugultopu/followers", "following_url": "https://api.github.com/users/ugultopu/following{/other_user}", "gists_url": "https://api.github.com/users/ugultopu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ugultopu", "id": 9937444, "login": "ugultopu", "node_id": "MDQ6VXNlcjk5Mzc0NDQ=", "organizations_url": "https://api.github.com/users/ugultopu/orgs", "received_events_url": "https://api.github.com/users/ugultopu/received_events", "repos_url": "https://api.github.com/users/ugultopu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ugultopu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ugultopu/subscriptions", "type": "User", "url": "https://api.github.com/users/ugultopu", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-04-19T10:16:37Z
2021-09-08T11:00:32Z
2017-04-19T10:56:59Z
NONE
resolved
A response returns multiple `Set-Cookie` headers. When I wanted to see these using `response.headers`, only a single `Set-Cookie` header is shown. I have expected all `Set-Cookie` headers to be shown. Is it intentional to show only one header key-value pair per header key?
{ "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/3974/reactions" }
https://api.github.com/repos/psf/requests/issues/3974/timeline
null
completed
null
null
false
[ "Requests does show multiples, but it joins them into a single header field. This allows users to get a slightly more intuitive behaviour than returning lists, though it does reduce fidelity slightly. " ]
https://api.github.com/repos/psf/requests/issues/3973
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3973/labels{/name}
https://api.github.com/repos/psf/requests/issues/3973/comments
https://api.github.com/repos/psf/requests/issues/3973/events
https://github.com/psf/requests/issues/3973
222,489,923
MDU6SXNzdWUyMjI0ODk5MjM=
3,973
ETA on 2.14? + docs request on release schedule
{ "avatar_url": "https://avatars.githubusercontent.com/u/204779?v=4", "events_url": "https://api.github.com/users/jvanasco/events{/privacy}", "followers_url": "https://api.github.com/users/jvanasco/followers", "following_url": "https://api.github.com/users/jvanasco/following{/other_user}", "gists_url": "https://api.github.com/users/jvanasco/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jvanasco", "id": 204779, "login": "jvanasco", "node_id": "MDQ6VXNlcjIwNDc3OQ==", "organizations_url": "https://api.github.com/users/jvanasco/orgs", "received_events_url": "https://api.github.com/users/jvanasco/received_events", "repos_url": "https://api.github.com/users/jvanasco/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jvanasco/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jvanasco/subscriptions", "type": "User", "url": "https://api.github.com/users/jvanasco", "user_view_type": "public" }
[]
closed
true
null
[]
null
4
2017-04-18T17:31:40Z
2021-09-08T11:00:31Z
2017-04-19T16:35:33Z
CONTRIBUTOR
resolved
1. Is there an ETA on 2.14? I couldn't find any milestone info and there seems to be a few dozen PRs merged since January. 2. There should probably be a line about the release schedule in the contributors guide or elsewhere, so I people like me don't ask annoying questions. I don't mean to prod for a release, but just get a general idea of when one will likely be made. I've got a couple of tiny open source projects that rely on a handful of the forthcoming changes and just want to know when I should schedule an afternoon for packaging and updates.
{ "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/3973/reactions" }
https://api.github.com/repos/psf/requests/issues/3973/timeline
null
completed
null
null
false
[ "Heh, there is no schedule. The schedule is \"whenever the core devs feel that a release is warranted\". In this case, I have an OmniFocus task for this but am currently on holiday, so would expect that we'll release next week. \r\n\r\nGenerally speaking I'd say that a schedule doesn't work for a project like this ...
https://api.github.com/repos/psf/requests/issues/3972
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3972/labels{/name}
https://api.github.com/repos/psf/requests/issues/3972/comments
https://api.github.com/repos/psf/requests/issues/3972/events
https://github.com/psf/requests/issues/3972
222,472,324
MDU6SXNzdWUyMjI0NzIzMjQ=
3,972
Custom Handler
{ "avatar_url": "https://avatars.githubusercontent.com/u/5131271?v=4", "events_url": "https://api.github.com/users/achapkowski/events{/privacy}", "followers_url": "https://api.github.com/users/achapkowski/followers", "following_url": "https://api.github.com/users/achapkowski/following{/other_user}", "gists_url": "https://api.github.com/users/achapkowski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/achapkowski", "id": 5131271, "login": "achapkowski", "node_id": "MDQ6VXNlcjUxMzEyNzE=", "organizations_url": "https://api.github.com/users/achapkowski/orgs", "received_events_url": "https://api.github.com/users/achapkowski/received_events", "repos_url": "https://api.github.com/users/achapkowski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/achapkowski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/achapkowski/subscriptions", "type": "User", "url": "https://api.github.com/users/achapkowski", "user_view_type": "public" }
[]
closed
true
null
[]
null
6
2017-04-18T16:24:53Z
2021-09-08T11:00:32Z
2017-04-19T12:32:41Z
NONE
resolved
How do you extend requests to use a custom handler for a security scheme? I'm looking for documentation on how to extend the API basically. Thanks
{ "avatar_url": "https://avatars.githubusercontent.com/u/5131271?v=4", "events_url": "https://api.github.com/users/achapkowski/events{/privacy}", "followers_url": "https://api.github.com/users/achapkowski/followers", "following_url": "https://api.github.com/users/achapkowski/following{/other_user}", "gists_url": "https://api.github.com/users/achapkowski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/achapkowski", "id": 5131271, "login": "achapkowski", "node_id": "MDQ6VXNlcjUxMzEyNzE=", "organizations_url": "https://api.github.com/users/achapkowski/orgs", "received_events_url": "https://api.github.com/users/achapkowski/received_events", "repos_url": "https://api.github.com/users/achapkowski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/achapkowski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/achapkowski/subscriptions", "type": "User", "url": "https://api.github.com/users/achapkowski", "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/3972/reactions" }
https://api.github.com/repos/psf/requests/issues/3972/timeline
null
completed
null
null
false
[ "What specific kind of API extension do you have in mind? Generally speaking you'd do it by subclassing the Session object.", "I have a site that is token based security, and I want to create a handler to work with this. So I know the username, password, expiration, and token url, and I want the authentication h...
https://api.github.com/repos/psf/requests/issues/3971
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3971/labels{/name}
https://api.github.com/repos/psf/requests/issues/3971/comments
https://api.github.com/repos/psf/requests/issues/3971/events
https://github.com/psf/requests/issues/3971
222,419,006
MDU6SXNzdWUyMjI0MTkwMDY=
3,971
Requests.Get Response Includes Unexpected Values
{ "avatar_url": "https://avatars.githubusercontent.com/u/26935905?v=4", "events_url": "https://api.github.com/users/skyfxl/events{/privacy}", "followers_url": "https://api.github.com/users/skyfxl/followers", "following_url": "https://api.github.com/users/skyfxl/following{/other_user}", "gists_url": "https://api.github.com/users/skyfxl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/skyfxl", "id": 26935905, "login": "skyfxl", "node_id": "MDQ6VXNlcjI2OTM1OTA1", "organizations_url": "https://api.github.com/users/skyfxl/orgs", "received_events_url": "https://api.github.com/users/skyfxl/received_events", "repos_url": "https://api.github.com/users/skyfxl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/skyfxl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skyfxl/subscriptions", "type": "User", "url": "https://api.github.com/users/skyfxl", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-04-18T13:35:31Z
2021-09-08T10:00:44Z
2017-05-22T15:34:23Z
NONE
resolved
Hi, I encountered an issue when using the requests.get command with Python 3.5.1. I described the issue in [this Stack Overflow post](http://stackoverflow.com/questions/43218259/python-requests-get-response-includes-unexpected-values). The solution was to use Python 2.7.13, so I'm not 100% sure whether the issue is related to the base Python package or how the requests library works with the base packages, but I thought I would post the issue just in case. Hope that helps!
{ "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/3971/reactions" }
https://api.github.com/repos/psf/requests/issues/3971/timeline
null
completed
null
null
false
[ "That looks very much like a bug in httplib. If it's possible for us to recreate the bad request from our own machines we can work out exactly what's going on: otherwise we'll need to wait for a good repro. ", "LUCKIEST HUMAN BEING NOW!!!. After setting the HTTP on the same server, Requests was able to return res...
https://api.github.com/repos/psf/requests/issues/3970
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3970/labels{/name}
https://api.github.com/repos/psf/requests/issues/3970/comments
https://api.github.com/repos/psf/requests/issues/3970/events
https://github.com/psf/requests/issues/3970
222,361,541
MDU6SXNzdWUyMjIzNjE1NDE=
3,970
requests.exceptions.ConnectionError
{ "avatar_url": "https://avatars.githubusercontent.com/u/26059420?v=4", "events_url": "https://api.github.com/users/srikanth-chandaluri/events{/privacy}", "followers_url": "https://api.github.com/users/srikanth-chandaluri/followers", "following_url": "https://api.github.com/users/srikanth-chandaluri/following{/other_user}", "gists_url": "https://api.github.com/users/srikanth-chandaluri/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/srikanth-chandaluri", "id": 26059420, "login": "srikanth-chandaluri", "node_id": "MDQ6VXNlcjI2MDU5NDIw", "organizations_url": "https://api.github.com/users/srikanth-chandaluri/orgs", "received_events_url": "https://api.github.com/users/srikanth-chandaluri/received_events", "repos_url": "https://api.github.com/users/srikanth-chandaluri/repos", "site_admin": false, "starred_url": "https://api.github.com/users/srikanth-chandaluri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/srikanth-chandaluri/subscriptions", "type": "User", "url": "https://api.github.com/users/srikanth-chandaluri", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2017-04-18T09:53:10Z
2021-02-11T14:22:11Z
2017-04-18T16:05:04Z
NONE
off-topic
`response = requests.post(url, data=payload ,verify=False, timeout=(3.05, 6.05))` works fine in python shell but not in python manage.py shell (django) I am getting below error 'requests.exceptions.ConnectionError: HTTPConnectionPool(host='ggk-wrl-win1', port=9090): Max retries exceeded with url: /home/trusted/token (Caused by NewConnectionError('<requests.packages.urllib3.connec)'
{ "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/3970/reactions" }
https://api.github.com/repos/psf/requests/issues/3970/timeline
null
completed
null
null
false
[ "You have truncated the exception message so I can't see what it is, do you mind providing the full exception string?", "![screenshot from 2017-04-18 17 16 40](https://cloud.githubusercontent.com/assets/26059420/25129293/fcf012f2-245a-11e7-9918-2411e7178104.png)\r\n![image](https://cloud.githubusercontent.com/ass...
https://api.github.com/repos/psf/requests/issues/3969
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3969/labels{/name}
https://api.github.com/repos/psf/requests/issues/3969/comments
https://api.github.com/repos/psf/requests/issues/3969/events
https://github.com/psf/requests/pull/3969
222,195,637
MDExOlB1bGxSZXF1ZXN0MTE2MTc3NTM4
3,969
fix handle of non-ascii location on redirects issue #3888
{ "avatar_url": "https://avatars.githubusercontent.com/u/23416546?v=4", "events_url": "https://api.github.com/users/shmuelamar/events{/privacy}", "followers_url": "https://api.github.com/users/shmuelamar/followers", "following_url": "https://api.github.com/users/shmuelamar/following{/other_user}", "gists_url": "https://api.github.com/users/shmuelamar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shmuelamar", "id": 23416546, "login": "shmuelamar", "node_id": "MDQ6VXNlcjIzNDE2NTQ2", "organizations_url": "https://api.github.com/users/shmuelamar/orgs", "received_events_url": "https://api.github.com/users/shmuelamar/received_events", "repos_url": "https://api.github.com/users/shmuelamar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shmuelamar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shmuelamar/subscriptions", "type": "User", "url": "https://api.github.com/users/shmuelamar", "user_view_type": "public" }
[]
closed
true
null
[]
null
5
2017-04-17T18:34:45Z
2021-09-06T00:07:03Z
2017-04-18T16:20:23Z
CONTRIBUTOR
resolved
fix for #3888
{ "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/3969/reactions" }
https://api.github.com/repos/psf/requests/issues/3969/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3969.diff", "html_url": "https://github.com/psf/requests/pull/3969", "merged_at": "2017-04-18T16:20:23Z", "patch_url": "https://github.com/psf/requests/pull/3969.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3969" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/3969?src=pr&el=h1) Report\n> Merging [#3969](https://codecov.io/gh/kennethreitz/requests/pull/3969?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/fd7dcd278557c517a0df6f6a4415c4922e6bd0d5?src=pr&el=desc) will **increase**...
https://api.github.com/repos/psf/requests/issues/3968
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3968/labels{/name}
https://api.github.com/repos/psf/requests/issues/3968/comments
https://api.github.com/repos/psf/requests/issues/3968/events
https://github.com/psf/requests/issues/3968
222,060,438
MDU6SXNzdWUyMjIwNjA0Mzg=
3,968
URLs with Square Brackets []
{ "avatar_url": "https://avatars.githubusercontent.com/u/3072436?v=4", "events_url": "https://api.github.com/users/apollodatasolutions/events{/privacy}", "followers_url": "https://api.github.com/users/apollodatasolutions/followers", "following_url": "https://api.github.com/users/apollodatasolutions/following{/other_user}", "gists_url": "https://api.github.com/users/apollodatasolutions/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/apollodatasolutions", "id": 3072436, "login": "apollodatasolutions", "node_id": "MDQ6VXNlcjMwNzI0MzY=", "organizations_url": "https://api.github.com/users/apollodatasolutions/orgs", "received_events_url": "https://api.github.com/users/apollodatasolutions/received_events", "repos_url": "https://api.github.com/users/apollodatasolutions/repos", "site_admin": false, "starred_url": "https://api.github.com/users/apollodatasolutions/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/apollodatasolutions/subscriptions", "type": "User", "url": "https://api.github.com/users/apollodatasolutions", "user_view_type": "public" }
[]
closed
true
null
[]
null
3
2017-04-17T03:55:19Z
2021-09-08T11:00:33Z
2017-04-17T22:27:51Z
NONE
resolved
We were using Requests with FileStack without issues until we ran into this URL format: **https://process.filestackapi.com/store=l:S3,p:"/watermarked/"/watermark=f:wUaFDoPfRAiT50LQZWs9,p:[bottom,right],s:63/p2aaZ8pzS8md1vLzY7V2** the **p:[bottom,right]** part seems to be causing issues (the request doesn't properly make it to their end). FileStack's documentation suggests using curl with the -g option: > -g, --globoff > > This option switches off the "URL globbing parser". When you set this option, you can specify URLs that contain the letters {}[] without having them being interpreted by curl itself. Note that these letters are not normal legal URL contents but they should be encoded according to the URI standard. > https://curl.haxx.se/docs/manpage.html Is there a similar option for Requests? I saw that it's not a valid URI, so I am also talking to FileStack to be able to resolve this but I am wondering if there is a temporary solution while I wait for them. Looking at the response URL, it seems the quotes are encoded but not the brackets? **https://process.filestackapi.com/store=l:S3,p:%22/watermarked/%22/watermark=f:9shDBUAMSMm58i5r3Ujr,p:[bottom,right],s:17/uj16GiSQa2bzDCVY34vw** but the same happens in the p:center case which works just fine.
{ "avatar_url": "https://avatars.githubusercontent.com/u/3072436?v=4", "events_url": "https://api.github.com/users/apollodatasolutions/events{/privacy}", "followers_url": "https://api.github.com/users/apollodatasolutions/followers", "following_url": "https://api.github.com/users/apollodatasolutions/following{/other_user}", "gists_url": "https://api.github.com/users/apollodatasolutions/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/apollodatasolutions", "id": 3072436, "login": "apollodatasolutions", "node_id": "MDQ6VXNlcjMwNzI0MzY=", "organizations_url": "https://api.github.com/users/apollodatasolutions/orgs", "received_events_url": "https://api.github.com/users/apollodatasolutions/received_events", "repos_url": "https://api.github.com/users/apollodatasolutions/repos", "site_admin": false, "starred_url": "https://api.github.com/users/apollodatasolutions/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/apollodatasolutions/subscriptions", "type": "User", "url": "https://api.github.com/users/apollodatasolutions", "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/3968/reactions" }
https://api.github.com/repos/psf/requests/issues/3968/timeline
null
completed
null
null
false
[ "Are you sure you need it? Requests won't treat them as globs, so that's not a concern. We will encode them, but the snippet of documentation you provided suggested that that is fine. Have you actually tried the request at all?", "Yes, I tried it without the square brackets, no luck. And yes, I tried the request...
https://api.github.com/repos/psf/requests/issues/3967
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3967/labels{/name}
https://api.github.com/repos/psf/requests/issues/3967/comments
https://api.github.com/repos/psf/requests/issues/3967/events
https://github.com/psf/requests/issues/3967
222,057,659
MDU6SXNzdWUyMjIwNTc2NTk=
3,967
waiting for a very long time for the reponse
{ "avatar_url": "https://avatars.githubusercontent.com/u/10825713?v=4", "events_url": "https://api.github.com/users/etiaxie/events{/privacy}", "followers_url": "https://api.github.com/users/etiaxie/followers", "following_url": "https://api.github.com/users/etiaxie/following{/other_user}", "gists_url": "https://api.github.com/users/etiaxie/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/etiaxie", "id": 10825713, "login": "etiaxie", "node_id": "MDQ6VXNlcjEwODI1NzEz", "organizations_url": "https://api.github.com/users/etiaxie/orgs", "received_events_url": "https://api.github.com/users/etiaxie/received_events", "repos_url": "https://api.github.com/users/etiaxie/repos", "site_admin": false, "starred_url": "https://api.github.com/users/etiaxie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/etiaxie/subscriptions", "type": "User", "url": "https://api.github.com/users/etiaxie", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-04-17T03:24:43Z
2021-09-08T10:00:50Z
2017-05-15T16:15:42Z
NONE
resolved
python version:2.7 requests version:2.11.1 when the response expected to be redirect(301),after I send out the request.get message, it will take a long time to get response. however in the wireshark can see the response is immediately returned.it seems like somewhere in code after get the response takes the time out
{ "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/3967/reactions" }
https://api.github.com/repos/psf/requests/issues/3967/timeline
null
completed
null
null
false
[ "Is the response body complete immediately? Can you provide a URL to reproduce this error?", "This has been stale for nearly a month. We can reopen this if we get more information and can determine that this is actually a bug in Request." ]
https://api.github.com/repos/psf/requests/issues/3966
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3966/labels{/name}
https://api.github.com/repos/psf/requests/issues/3966/comments
https://api.github.com/repos/psf/requests/issues/3966/events
https://github.com/psf/requests/issues/3966
222,045,805
MDU6SXNzdWUyMjIwNDU4MDU=
3,966
_ssl.c:510: error:14077438
{ "avatar_url": "https://avatars.githubusercontent.com/u/13785009?v=4", "events_url": "https://api.github.com/users/Elias-gg/events{/privacy}", "followers_url": "https://api.github.com/users/Elias-gg/followers", "following_url": "https://api.github.com/users/Elias-gg/following{/other_user}", "gists_url": "https://api.github.com/users/Elias-gg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Elias-gg", "id": 13785009, "login": "Elias-gg", "node_id": "MDQ6VXNlcjEzNzg1MDA5", "organizations_url": "https://api.github.com/users/Elias-gg/orgs", "received_events_url": "https://api.github.com/users/Elias-gg/received_events", "repos_url": "https://api.github.com/users/Elias-gg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Elias-gg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Elias-gg/subscriptions", "type": "User", "url": "https://api.github.com/users/Elias-gg", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-04-17T01:10:09Z
2021-09-08T11:00:33Z
2017-04-17T12:20:27Z
NONE
resolved
I am currently running python 2.7.6 on C9.io
{ "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/3966/reactions" }
https://api.github.com/repos/psf/requests/issues/3966/timeline
null
completed
null
null
false
[ "This is nowhere near enough information. Please let us know the installed version of Requests, all other packages installed in your environment, what host you're connecting to, and what the Python startup version data is." ]
https://api.github.com/repos/psf/requests/issues/3965
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3965/labels{/name}
https://api.github.com/repos/psf/requests/issues/3965/comments
https://api.github.com/repos/psf/requests/issues/3965/events
https://github.com/psf/requests/issues/3965
221,865,041
MDU6SXNzdWUyMjE4NjUwNDE=
3,965
OpenSSL.SSL.SysCallError: (-1, 'Unexpected EOF')
{ "avatar_url": "https://avatars.githubusercontent.com/u/17933013?v=4", "events_url": "https://api.github.com/users/ShepherdTsai/events{/privacy}", "followers_url": "https://api.github.com/users/ShepherdTsai/followers", "following_url": "https://api.github.com/users/ShepherdTsai/following{/other_user}", "gists_url": "https://api.github.com/users/ShepherdTsai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ShepherdTsai", "id": 17933013, "login": "ShepherdTsai", "node_id": "MDQ6VXNlcjE3OTMzMDEz", "organizations_url": "https://api.github.com/users/ShepherdTsai/orgs", "received_events_url": "https://api.github.com/users/ShepherdTsai/received_events", "repos_url": "https://api.github.com/users/ShepherdTsai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ShepherdTsai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShepherdTsai/subscriptions", "type": "User", "url": "https://api.github.com/users/ShepherdTsai", "user_view_type": "public" }
[]
closed
true
null
[]
null
12
2017-04-14T18:35:36Z
2021-09-08T11:00:31Z
2017-04-14T18:56:30Z
NONE
resolved
I'm on Windows 10 with OpenSSL 1.0.1l 15 Jan 2015, python 3.4.3, Requests 2.13.10, and when attempting to connect to a website with the following code: ``` import requests s = requests.Session() res = s.get('https://ma.mohw.gov.tw/masearch/SearchBAS-101-1.aspx', verify=True) ``` It throws the following error: ``` Traceback (most recent call last): File "C:\Python34\lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py", line 436, in wrap_socket cnx.do_handshake() File "C:\Python34\lib\site-packages\OpenSSL\SSL.py", line 1426, in do_handshake self._raise_ssl_error(self._ssl, result) File "C:\Python34\lib\site-packages\OpenSSL\SSL.py", line 1167, in _raise_ssl_error raise SysCallError(-1, "Unexpected EOF") OpenSSL.SSL.SysCallError: (-1, 'Unexpected EOF') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 600, in urlopen chunked=chunked) File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 345, in _make_request self._validate_conn(conn) File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 844, in _validate_conn conn.connect() File "C:\Python34\lib\site-packages\requests\packages\urllib3\connection.py", line 326, in connect ssl_context=context) File "C:\Python34\lib\site-packages\requests\packages\urllib3\util\ssl_.py", line 324, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "C:\Python34\lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py", line 443, in wrap_socket raise ssl.SSLError('bad handshake: %r' % e) ssl.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python34\lib\site-packages\requests\adapters.py", line 423, in send timeout=timeout File "C:\Python34\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 630, in urlopen raise SSLError(e) requests.packages.urllib3.exceptions.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/XXX/Desktop/MOHWcrawler/demo2.py", line 14, in <module> res = s.get('https://ma.mohw.gov.tw/masearch/SearchBAS-101-1.aspx', verify=True) File "C:\Python34\lib\site-packages\requests\sessions.py", line 501, in get return self.request('GET', url, **kwargs) File "C:\Python34\lib\site-packages\requests\sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "C:\Python34\lib\site-packages\requests\sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "C:\Python34\lib\site-packages\requests\adapters.py", line 497, in send raise SSLError(e, request=request) requests.exceptions.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",) ``` I have tried the following method: ``` import requests # import ssl s = requests.Session() # s.mount('https://', SSLAdapter(ssl.PROTOCOL_TLSv1_2)) res = s.get('https://ma.mohw.gov.tw/masearch/SearchBAS-101-1.aspx', verify=True) ``` and already installed pyasn1 and ndg-httpsclient, but doesn't work but if I use urllib package, then I can connect to the server ``` from urllib.request import urlopen res = urlopen('https://ma.mohw.gov.tw/masearch/SearchBAS-101-1.aspx') ``` but I want to use requests package to do further work, Is there any way I can solve this problem? 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/3965/reactions" }
https://api.github.com/repos/psf/requests/issues/3965/timeline
null
completed
null
null
false
[ "As you can see from the warnings [here](https://www.ssllabs.com/ssltest/analyze.html?d=ma.mohw.gov.tw&s=203.65.42.166&hideResults=on), this server has a pretty bad TLS config. In particular, the only cipher suite it supports was removed from the default Requests config because it is insecure in some uses. \r\n\r\n...
https://api.github.com/repos/psf/requests/issues/3964
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3964/labels{/name}
https://api.github.com/repos/psf/requests/issues/3964/comments
https://api.github.com/repos/psf/requests/issues/3964/events
https://github.com/psf/requests/issues/3964
221,757,931
MDU6SXNzdWUyMjE3NTc5MzE=
3,964
when i import requests, UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 1: ordinal not in range(128),how to solve this?
{ "avatar_url": "https://avatars.githubusercontent.com/u/16998719?v=4", "events_url": "https://api.github.com/users/BigFishhhh/events{/privacy}", "followers_url": "https://api.github.com/users/BigFishhhh/followers", "following_url": "https://api.github.com/users/BigFishhhh/following{/other_user}", "gists_url": "https://api.github.com/users/BigFishhhh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BigFishhhh", "id": 16998719, "login": "BigFishhhh", "node_id": "MDQ6VXNlcjE2OTk4NzE5", "organizations_url": "https://api.github.com/users/BigFishhhh/orgs", "received_events_url": "https://api.github.com/users/BigFishhhh/received_events", "repos_url": "https://api.github.com/users/BigFishhhh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BigFishhhh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BigFishhhh/subscriptions", "type": "User", "url": "https://api.github.com/users/BigFishhhh", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-04-14T07:26:33Z
2021-09-08T11:00:33Z
2017-04-14T10:32:43Z
NONE
resolved
>>> import requests Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python2713\lib\site-packages\requests\__init__.py", line 52, in <module> from .packages.urllib3.contrib import pyopenssl File "C:\Python2713\lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py", line 47, in <module> from cryptography import x509 File "C:\Python2713\lib\site-packages\cryptography\x509\__init__.py", line 7, in <module> from cryptography.x509.base import ( File "C:\Python2713\lib\site-packages\cryptography\x509\base.py", line 16, in <module> from cryptography.x509.extensions import Extension, ExtensionType File "C:\Python2713\lib\site-packages\cryptography\x509\extensions.py", line 14, in <module> from asn1crypto.keys import PublicKeyInfo File "C:\Python2713\lib\site-packages\asn1crypto\keys.py", line 22, in <module> from ._elliptic_curve import ( File "C:\Python2713\lib\site-packages\asn1crypto\_elliptic_curve.py", line 51, in <module> from ._int import inverse_mod File "C:\Python2713\lib\site-packages\asn1crypto\_int.py", line 56, in <module> from ._perf._big_num_ctypes import libcrypto File "C:\Python2713\lib\site-packages\asn1crypto\_perf\_big_num_ctypes.py", line 31, in <module> libcrypto_path = find_library('crypto') File "C:\Python2713\lib\ctypes\util.py", line 53, in find_library fname = os.path.join(directory, name) File "C:\Python2713\lib\ntpath.py", line 85, in join result_path = result_path + p_path UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 1: ordinal not in range(128)
{ "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/3964/reactions" }
https://api.github.com/repos/psf/requests/issues/3964/timeline
null
completed
null
null
false
[ "Hey there. You have raised this issue before, [here](https://github.com/kennethreitz/requests/issues/1252#issuecomment-291438569), and so I will give the same advice again: this appears to be a problem with asn1crypto, not Requests: please open an issue on their repository." ]
https://api.github.com/repos/psf/requests/issues/3963
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3963/labels{/name}
https://api.github.com/repos/psf/requests/issues/3963/comments
https://api.github.com/repos/psf/requests/issues/3963/events
https://github.com/psf/requests/pull/3963
221,324,803
MDExOlB1bGxSZXF1ZXN0MTE1NTg3NDIy
3,963
fix unicode decode error on py2 when handling redirect without scheme
{ "avatar_url": "https://avatars.githubusercontent.com/u/23416546?v=4", "events_url": "https://api.github.com/users/shmuelamar/events{/privacy}", "followers_url": "https://api.github.com/users/shmuelamar/followers", "following_url": "https://api.github.com/users/shmuelamar/following{/other_user}", "gists_url": "https://api.github.com/users/shmuelamar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shmuelamar", "id": 23416546, "login": "shmuelamar", "node_id": "MDQ6VXNlcjIzNDE2NTQ2", "organizations_url": "https://api.github.com/users/shmuelamar/orgs", "received_events_url": "https://api.github.com/users/shmuelamar/received_events", "repos_url": "https://api.github.com/users/shmuelamar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shmuelamar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shmuelamar/subscriptions", "type": "User", "url": "https://api.github.com/users/shmuelamar", "user_view_type": "public" }
[]
closed
true
null
[]
null
2
2017-04-12T16:49:28Z
2021-09-06T00:07:04Z
2017-04-14T20:13:50Z
CONTRIBUTOR
resolved
as discussed on #3959 , fix the UnicodeDecodeError happening because implicit decoding of str string into unicode while using python2. This issue happens when handling redirection without scheme (i.e. Location: //URL) on python2 and only if the location is unicode. First time applying a PR on GitHub so let me know if there is something I can do to make it better :). Thanks, Shmulik
{ "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/3963/reactions" }
https://api.github.com/repos/psf/requests/issues/3963/timeline
null
null
false
{ "diff_url": "https://github.com/psf/requests/pull/3963.diff", "html_url": "https://github.com/psf/requests/pull/3963", "merged_at": "2017-04-14T20:13:50Z", "patch_url": "https://github.com/psf/requests/pull/3963.patch", "url": "https://api.github.com/repos/psf/requests/pulls/3963" }
true
[ "# [Codecov](https://codecov.io/gh/kennethreitz/requests/pull/3963?src=pr&el=h1) Report\n> Merging [#3963](https://codecov.io/gh/kennethreitz/requests/pull/3963?src=pr&el=desc) into [master](https://codecov.io/gh/kennethreitz/requests/commit/84a60407628e83c004e3ea24a2d856a55d7a5c59?src=pr&el=desc) will **increase**...
https://api.github.com/repos/psf/requests/issues/3962
https://api.github.com/repos/psf/requests
https://api.github.com/repos/psf/requests/issues/3962/labels{/name}
https://api.github.com/repos/psf/requests/issues/3962/comments
https://api.github.com/repos/psf/requests/issues/3962/events
https://github.com/psf/requests/issues/3962
220,832,727
MDU6SXNzdWUyMjA4MzI3Mjc=
3,962
Set-Cookie header didn't handled
{ "avatar_url": "https://avatars.githubusercontent.com/u/4250691?v=4", "events_url": "https://api.github.com/users/tutorial0/events{/privacy}", "followers_url": "https://api.github.com/users/tutorial0/followers", "following_url": "https://api.github.com/users/tutorial0/following{/other_user}", "gists_url": "https://api.github.com/users/tutorial0/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tutorial0", "id": 4250691, "login": "tutorial0", "node_id": "MDQ6VXNlcjQyNTA2OTE=", "organizations_url": "https://api.github.com/users/tutorial0/orgs", "received_events_url": "https://api.github.com/users/tutorial0/received_events", "repos_url": "https://api.github.com/users/tutorial0/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tutorial0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tutorial0/subscriptions", "type": "User", "url": "https://api.github.com/users/tutorial0", "user_view_type": "public" }
[]
closed
true
null
[]
null
1
2017-04-11T03:56:52Z
2021-09-08T11:00:34Z
2017-04-11T06:30:29Z
NONE
resolved
Test code: ``` In [2]: rq = requests.get('http://httpbin.org/cookies/delete?k2=&k1=', cookies={'k2':'1'}) In [3]: rq.content Out[3]: '{\n "cookies": {\n "k2": "1"\n }\n}\n' ``` requests should delete `k2` and return `"cookies": {}`, but it didn't. Should act like: ``` ➜ ~ http http://httpbin.org/cookies/delete\?k1\=\&k1\=2 'Cookie: k1=1' -p Hb GET /cookies/delete?k1=&k1=2 HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate Connection: keep-alive Cookie: k1=1 Host: httpbin.org User-Agent: HTTPie/0.9.4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>Redirecting...</title> <h1>Redirecting...</h1> <p>You should be redirected automatically to target URL: <a href="/cookies">/cookies</a>. If not click the link. ➜ ~ http -F http://httpbin.org/cookies/delete\?k1\=\&k1\=2 'Cookie: k1=1' -p Hb GET /cookies HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate Connection: keep-alive Host: httpbin.org User-Agent: HTTPie/0.9.4 { "cookies": {} } ```
{ "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/3962/reactions" }
https://api.github.com/repos/psf/requests/issues/3962/timeline
null
completed
null
null
false
[ "Yes, this is somewhat intended behaviour. For setting cookies like this Requests isn't really sure what the scope of the cookie is: is it only the scope of the single request domain and path? The whole domain? The domain and subdomains? All hosts?\r\n\r\nFor that reason, given that the remote site didn't set it, w...