url stringlengths 50 53 | repository_url stringclasses 1
value | labels_url stringlengths 64 67 | comments_url stringlengths 59 62 | events_url stringlengths 57 60 | html_url stringlengths 38 43 | id int64 597k 2.65B | node_id stringlengths 18 32 | number int64 1 6.83k | title stringlengths 1 296 | user dict | labels listlengths 0 5 | state stringclasses 2
values | locked bool 2
classes | assignee dict | assignees listlengths 0 4 | milestone dict | comments int64 0 211 | created_at stringlengths 20 20 | updated_at stringlengths 20 20 | closed_at stringlengths 20 20 ⌀ | author_association stringclasses 3
values | active_lock_reason stringclasses 4
values | body stringlengths 0 65.6k ⌀ | closed_by dict | reactions dict | timeline_url stringlengths 59 62 | performed_via_github_app null | state_reason stringclasses 3
values | draft bool 2
classes | pull_request dict | is_pull_request bool 2
classes | issue_comments listlengths 0 30 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/psf/requests/issues/2931 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2931/labels{/name} | https://api.github.com/repos/psf/requests/issues/2931/comments | https://api.github.com/repos/psf/requests/issues/2931/events | https://github.com/psf/requests/pull/2931 | 122,521,762 | MDExOlB1bGxSZXF1ZXN0NTM4NTEyODM= | 2,931 | Fix regression from #2844 regarding binary bodies. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 5 | 2015-12-16T14:57:00Z | 2021-09-08T05:01:08Z | 2015-12-16T15:20:26Z | MEMBER | resolved | Resolves #2930.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2931/reactions"
} | https://api.github.com/repos/psf/requests/issues/2931/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2931.diff",
"html_url": "https://github.com/psf/requests/pull/2931",
"merged_at": "2015-12-16T15:20:26Z",
"patch_url": "https://github.com/psf/requests/pull/2931.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2931"
} | true | [
"@untitaker has confirmed this fix works for them.\n",
":+1: from me.\n",
":100: \n",
"Version bump, please.\n",
"@nfnty we've planned the next release for Monday.\n"
] |
https://api.github.com/repos/psf/requests/issues/2930 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2930/labels{/name} | https://api.github.com/repos/psf/requests/issues/2930/comments | https://api.github.com/repos/psf/requests/issues/2930/events | https://github.com/psf/requests/issues/2930 | 122,521,389 | MDU6SXNzdWUxMjI1MjEzODk= | 2,930 | Request with binary payload fails due to calling to_native_string | {
"avatar_url": "https://avatars.githubusercontent.com/u/837573?v=4",
"events_url": "https://api.github.com/users/untitaker/events{/privacy}",
"followers_url": "https://api.github.com/users/untitaker/followers",
"following_url": "https://api.github.com/users/untitaker/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 0 | 2015-12-16T14:55:08Z | 2021-09-08T20:00:57Z | 2015-12-16T15:20:26Z | CONTRIBUTOR | resolved | Introduced with https://github.com/kennethreitz/requests/issues/2844
```
import requests
requests.put("http://httpbin.org/put", data=u"ööö".encode("utf-8"))
```
This works with 2.8.1, but not with 2.9.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2930/reactions"
} | https://api.github.com/repos/psf/requests/issues/2930/timeline | null | completed | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/2929 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2929/labels{/name} | https://api.github.com/repos/psf/requests/issues/2929/comments | https://api.github.com/repos/psf/requests/issues/2929/events | https://github.com/psf/requests/issues/2929 | 122,504,590 | MDU6SXNzdWUxMjI1MDQ1OTA= | 2,929 | Uploading packages via twine fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/2492836?v=4",
"events_url": "https://api.github.com/users/nrvnrvn/events{/privacy}",
"followers_url": "https://api.github.com/users/nrvnrvn/followers",
"following_url": "https://api.github.com/users/nrvnrvn/following{/other_user}",
"gists_url": "https:/... | [] | closed | true | null | [] | null | 3 | 2015-12-16T13:35:53Z | 2021-09-08T20:00:56Z | 2015-12-16T18:09:42Z | NONE | resolved | Using latest 2.9.0
```
$ twine upload dist/*.whl
Uploading somepkg-15.12.16-py3-none-any.whl
ConnectionError: ('Connection aborted.', BadStatusLine("''",))
$
```
rollback to 2.8.1 solves the issue.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2929/reactions"
} | https://api.github.com/repos/psf/requests/issues/2929/timeline | null | completed | null | null | false | [
"@sigmavirus24 You're probably best placed to look at this, but my suspicion is that there's an unexpected interaction between the toolbelt's MultipartEncoder and the fix we put in for calculating the actual length of file-like objects that are not seeked to the beginning. That said, I can't find anything in that.\... |
https://api.github.com/repos/psf/requests/issues/2928 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2928/labels{/name} | https://api.github.com/repos/psf/requests/issues/2928/comments | https://api.github.com/repos/psf/requests/issues/2928/events | https://github.com/psf/requests/pull/2928 | 122,306,527 | MDExOlB1bGxSZXF1ZXN0NTM3MjQxMTE= | 2,928 | make setup.py upload happy | {
"avatar_url": "https://avatars.githubusercontent.com/u/76932?v=4",
"events_url": "https://api.github.com/users/heni/events{/privacy}",
"followers_url": "https://api.github.com/users/heni/followers",
"following_url": "https://api.github.com/users/heni/following{/other_user}",
"gists_url": "https://api.github... | [] | closed | true | null | [] | null | 4 | 2015-12-15T16:10:53Z | 2021-09-08T05:01:09Z | 2015-12-15T17:22:06Z | NONE | resolved | distutils brokes when we use tuple based meta values
canonic way is define classifiers as list not a tuple
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2928/reactions"
} | https://api.github.com/repos/psf/requests/issues/2928/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2928.diff",
"html_url": "https://github.com/psf/requests/pull/2928",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2928.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2928"
} | true | [
"@heni We've been using a tuple here since [literally the start of the project](https://github.com/kennethreitz/requests/commit/0477018761c67152cdcc0b83d56f27e701e65b9e), which _used_ distutils. I do not believe this can possibly be the problem you're experiencing.\n",
"I want to redistribute this package into pr... |
https://api.github.com/repos/psf/requests/issues/2927 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2927/labels{/name} | https://api.github.com/repos/psf/requests/issues/2927/comments | https://api.github.com/repos/psf/requests/issues/2927/events | https://github.com/psf/requests/pull/2927 | 122,287,925 | MDExOlB1bGxSZXF1ZXN0NTM3MTIxMTU= | 2,927 | Prepare 2.9.0 release. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}... | null | 4 | 2015-12-15T14:48:11Z | 2021-09-08T05:01:09Z | 2015-12-15T15:26:56Z | MEMBER | resolved | This should contain the set of changes required for us to push 2.9.0 out the door.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2927/reactions"
} | https://api.github.com/repos/psf/requests/issues/2927/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2927.diff",
"html_url": "https://github.com/psf/requests/pull/2927",
"merged_at": "2015-12-15T15:26:56Z",
"patch_url": "https://github.com/psf/requests/pull/2927.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2927"
} | true | [
"@sigmavirus24 Can you confirm for me that you're happy with these release notes?\n",
"You also need to bump `__version__` and `__build__`. :)\n",
"@sigmavirus24 I intentionally did not do that, so that we have a single commit entitled `v2.9.0`, rather than a merge commit that hits it. =D\n",
"Got it. Well th... |
https://api.github.com/repos/psf/requests/issues/2926 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2926/labels{/name} | https://api.github.com/repos/psf/requests/issues/2926/comments | https://api.github.com/repos/psf/requests/issues/2926/events | https://github.com/psf/requests/pull/2926 | 121,768,348 | MDExOlB1bGxSZXF1ZXN0NTM0MjkxMzg= | 2,926 | Refactor default params | {
"avatar_url": "https://avatars.githubusercontent.com/u/624531?v=4",
"events_url": "https://api.github.com/users/bsamek/events{/privacy}",
"followers_url": "https://api.github.com/users/bsamek/followers",
"following_url": "https://api.github.com/users/bsamek/following{/other_user}",
"gists_url": "https://api... | [] | closed | true | null | [] | null | 7 | 2015-12-11T18:48:38Z | 2021-09-08T05:01:09Z | 2015-12-11T22:13:53Z | CONTRIBUTOR | resolved | Specified the default argument for params that have a default in the docstring
so that the default is easier to see from the code. Modified the docstring in
api.py to match the docstring in sessions.py.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2926/reactions"
} | https://api.github.com/repos/psf/requests/issues/2926/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2926.diff",
"html_url": "https://github.com/psf/requests/pull/2926",
"merged_at": "2015-12-11T22:13:53Z",
"patch_url": "https://github.com/psf/requests/pull/2926.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2926"
} | true | [
"I also noticed that there may be a problem in test_requests.py. Lines 524-5 reference the httpbin_ca_bundle fixture, but there is no fixture by that name. If I am reading this correctly, this means that the test is passing in None instead of a cert path. Does this make sense?\n",
"Hey @bsamek! Thanks for the PR.... |
https://api.github.com/repos/psf/requests/issues/2925 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2925/labels{/name} | https://api.github.com/repos/psf/requests/issues/2925/comments | https://api.github.com/repos/psf/requests/issues/2925/events | https://github.com/psf/requests/issues/2925 | 121,766,203 | MDU6SXNzdWUxMjE3NjYyMDM= | 2,925 | Deadlock caused by local import in different thread. | {
"avatar_url": "https://avatars.githubusercontent.com/u/568697?v=4",
"events_url": "https://api.github.com/users/guojh/events{/privacy}",
"followers_url": "https://api.github.com/users/guojh/followers",
"following_url": "https://api.github.com/users/guojh/following{/other_user}",
"gists_url": "https://api.gi... | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 29,
"created_at": "2024-05-19T18:29:04Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/18519037?v=4",
"events_url": "https://api.github.com/users/sethmlarson/events{/privacy}",
"followers_url": "https://api.github.com/users/sethmlarson/fol... | 16 | 2015-12-11T18:35:38Z | 2024-05-20T14:35:55Z | 2024-05-20T14:35:55Z | NONE | null | requests version 2.8.1, installed from pip.
Code to reproduce:
``` bash
#!/bin/bash
cat > test_module.py <<EOF
import threading
import requests
def make_request():
print('before requests.get')
requests.get('https://github.com/kennethreitz/requests') # <-- program will get stuck here
print('after reques... | {
"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_u... | {
"+1": 0,
"-1": 0,
"confused": 1,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/psf/requests/issues/2925/reactions"
} | https://api.github.com/repos/psf/requests/issues/2925/timeline | null | completed | null | null | false | [
"Why are you acquiring the import lock?\n",
"## You've provided none of the information requested in our contributing documentation.\n\nSent from my Android device with K-9 Mail. Please excuse my brevity.\n",
"I edited original post, and added some information.\n",
"> Why are you acquiring the import lock?\n\... |
https://api.github.com/repos/psf/requests/issues/2924 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2924/labels{/name} | https://api.github.com/repos/psf/requests/issues/2924/comments | https://api.github.com/repos/psf/requests/issues/2924/events | https://github.com/psf/requests/issues/2924 | 121,574,861 | MDU6SXNzdWUxMjE1NzQ4NjE= | 2,924 | Connections not recycled when stream=True and body not consumed | {
"avatar_url": "https://avatars.githubusercontent.com/u/1315417?v=4",
"events_url": "https://api.github.com/users/mirosval/events{/privacy}",
"followers_url": "https://api.github.com/users/mirosval/followers",
"following_url": "https://api.github.com/users/mirosval/following{/other_user}",
"gists_url": "http... | [] | closed | true | null | [] | null | 1 | 2015-12-10T20:53:14Z | 2021-09-08T20:00:57Z | 2015-12-10T21:10:21Z | NONE | resolved | Calling `response.close()` does not seem to release the connection back to the pool. I'm only using the headers or even just `status_code`, so the content doesn't get downloaded, I call `response.close()` but then the next request opens up a new connection.
Is there a reason for this? It seems that the documentation ... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2924/reactions"
} | https://api.github.com/repos/psf/requests/issues/2924/timeline | null | completed | null | null | false | [
"If you don't consume all the data from the underlying connection, the connection actually _cannot_ be re-used. This is because requests has no way of signalling to the operating system that it doesn't care about the data already received except by closing the socket and throwing the connection away.\n\nDocumenting... |
https://api.github.com/repos/psf/requests/issues/2923 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2923/labels{/name} | https://api.github.com/repos/psf/requests/issues/2923/comments | https://api.github.com/repos/psf/requests/issues/2923/events | https://github.com/psf/requests/pull/2923 | 121,284,960 | MDExOlB1bGxSZXF1ZXN0NTMxNDIzODU= | 2,923 | Add hint to :param verify. | {
"avatar_url": "https://avatars.githubusercontent.com/u/624531?v=4",
"events_url": "https://api.github.com/users/bsamek/events{/privacy}",
"followers_url": "https://api.github.com/users/bsamek/followers",
"following_url": "https://api.github.com/users/bsamek/following{/other_user}",
"gists_url": "https://api... | [] | closed | true | null | [] | null | 1 | 2015-12-09T16:27:44Z | 2021-09-08T05:01:10Z | 2015-12-09T16:33:09Z | CONTRIBUTOR | resolved | It is not clear that :param verify defaults to True. The way the verify
portion of the docstring is written it looks like it defaults to False, and
you have to pass in True if you'd like the SSL cert to be verified, but the
opposite is the case.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2923/reactions"
} | https://api.github.com/repos/psf/requests/issues/2923/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2923.diff",
"html_url": "https://github.com/psf/requests/pull/2923",
"merged_at": "2015-12-09T16:33:09Z",
"patch_url": "https://github.com/psf/requests/pull/2923.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2923"
} | true | [
"Thanks @bsamek! :sparkles: :cake: :sparkles:\n"
] |
https://api.github.com/repos/psf/requests/issues/2922 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2922/labels{/name} | https://api.github.com/repos/psf/requests/issues/2922/comments | https://api.github.com/repos/psf/requests/issues/2922/events | https://github.com/psf/requests/issues/2922 | 121,229,016 | MDU6SXNzdWUxMjEyMjkwMTY= | 2,922 | Feature: please add a "status" field to response object which confirms to PEP 0333 | {
"avatar_url": "https://avatars.githubusercontent.com/u/2693414?v=4",
"events_url": "https://api.github.com/users/et304383/events{/privacy}",
"followers_url": "https://api.github.com/users/et304383/followers",
"following_url": "https://api.github.com/users/et304383/following{/other_user}",
"gists_url": "http... | [] | closed | true | null | [] | null | 5 | 2015-12-09T12:44:12Z | 2021-09-08T20:00:58Z | 2015-12-09T12:47:23Z | NONE | resolved | According to this:
https://www.python.org/dev/peps/pep-0333/#the-start-response-callable
The response object must contain a status field with string values such as "200 OK" or "403 Forbidden" and so forth. If one is developing a Python WSGI compliant API then any framework used (such as falcon) is going to require a ... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2922/reactions"
} | https://api.github.com/repos/psf/requests/issues/2922/timeline | null | completed | null | null | false | [
"Thanks for this request @eric-tucker!\n\nUnfortunately, Requests is in feature-freeze for the foreseeable future, which means that we're generally not implementing new features unless they represent a really compelling loss of function. Given that all the information you require is present, and that a helper funct... |
https://api.github.com/repos/psf/requests/issues/2921 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2921/labels{/name} | https://api.github.com/repos/psf/requests/issues/2921/comments | https://api.github.com/repos/psf/requests/issues/2921/events | https://github.com/psf/requests/issues/2921 | 121,055,364 | MDU6SXNzdWUxMjEwNTUzNjQ= | 2,921 | Non-descript error: Gevent + Connection Pooling + SSL | {
"avatar_url": "https://avatars.githubusercontent.com/u/505616?v=4",
"events_url": "https://api.github.com/users/jgoldberg/events{/privacy}",
"followers_url": "https://api.github.com/users/jgoldberg/followers",
"following_url": "https://api.github.com/users/jgoldberg/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 7 | 2015-12-08T17:19:07Z | 2021-09-08T18:00:56Z | 2016-04-16T00:05:16Z | NONE | resolved | We're getting this error randomly from our production environment. I can't seem to reproduce locally yet. We use requests w/ Gevent, and I'm wondering if it's some kind of race condition where the socket isn't ready to use, but gets handed out by the connection pool. Still investigating, but figured I'd post this anywa... | {
"avatar_url": "https://avatars.githubusercontent.com/u/505616?v=4",
"events_url": "https://api.github.com/users/jgoldberg/events{/privacy}",
"followers_url": "https://api.github.com/users/jgoldberg/followers",
"following_url": "https://api.github.com/users/jgoldberg/following{/other_user}",
"gists_url": "ht... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2921/reactions"
} | https://api.github.com/repos/psf/requests/issues/2921/timeline | null | completed | null | null | false | [
"Hi there! Please provide additional information as requested in our [Contributing.md file](https://github.com/kennethreitz/requests/blob/master/CONTRIBUTING.md): specifically, **what version of Requests** you're using and **how you installed it**.\n",
"You've updated your original post to say requests 2.8.1 from... |
https://api.github.com/repos/psf/requests/issues/2920 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2920/labels{/name} | https://api.github.com/repos/psf/requests/issues/2920/comments | https://api.github.com/repos/psf/requests/issues/2920/events | https://github.com/psf/requests/issues/2920 | 120,875,099 | MDU6SXNzdWUxMjA4NzUwOTk= | 2,920 | POST to S3 Bucket Returning 403 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7862740?v=4",
"events_url": "https://api.github.com/users/JKulakofsky/events{/privacy}",
"followers_url": "https://api.github.com/users/JKulakofsky/followers",
"following_url": "https://api.github.com/users/JKulakofsky/following{/other_user}",
"gists_ur... | [] | closed | true | null | [] | null | 17 | 2015-12-07T21:45:21Z | 2021-09-08T20:00:58Z | 2015-12-07T23:40:47Z | NONE | resolved | I am writing a program that will POST a file to a website that is making me go through a few steps to get the file properly uploaded. In the first step, I perform a simple POST which alerts the site that a file will be uploaded and returns a URL to an S3 bucket, along with some more response content. The next step is... | {
"avatar_url": "https://avatars.githubusercontent.com/u/7862740?v=4",
"events_url": "https://api.github.com/users/JKulakofsky/events{/privacy}",
"followers_url": "https://api.github.com/users/JKulakofsky/followers",
"following_url": "https://api.github.com/users/JKulakofsky/following{/other_user}",
"gists_ur... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2920/reactions"
} | https://api.github.com/repos/psf/requests/issues/2920/timeline | null | completed | null | null | false | [
"I _suspect_ that Amazon is returning a 4XX status code and then getting mad when we keep sending the data.\n\nDo you need to multipart encode this data, or do you just want to post only the bytes of the file?\n",
"I only need to post the file. I only tried the multipart encoder because the requests documentatio... |
https://api.github.com/repos/psf/requests/issues/2919 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2919/labels{/name} | https://api.github.com/repos/psf/requests/issues/2919/comments | https://api.github.com/repos/psf/requests/issues/2919/events | https://github.com/psf/requests/pull/2919 | 120,694,413 | MDExOlB1bGxSZXF1ZXN0NTI4MDQwNDA= | 2,919 | [DRAFT] WIP in finding a solution to data encoding check | {
"avatar_url": "https://avatars.githubusercontent.com/u/954858?v=4",
"events_url": "https://api.github.com/users/ArcTanSusan/events{/privacy}",
"followers_url": "https://api.github.com/users/ArcTanSusan/followers",
"following_url": "https://api.github.com/users/ArcTanSusan/following{/other_user}",
"gists_url... | [] | closed | true | null | [] | null | 2 | 2015-12-07T04:10:39Z | 2021-09-08T04:01:09Z | 2016-04-06T19:13:48Z | CONTRIBUTOR | resolved | Use existing method `to_native_string()` as a check.
This is a first attempt to resolve https://github.com/kennethreitz/requests/issues/2638, so marking this PR as [DRAFT]. I'd appreciate feedback on this.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2919/reactions"
} | https://api.github.com/repos/psf/requests/issues/2919/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2919.diff",
"html_url": "https://github.com/psf/requests/pull/2919",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2919.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2919"
} | true | [
"Yeah, so how we approach this is basically dependent on whether we think it's acceptable for `to_native_string()` to go in `encode_params`. I personally think that's the best place for it, because it allows us to avoid duplicating the large amount of knowledge `encode_params` has about how this variable is structu... |
https://api.github.com/repos/psf/requests/issues/2918 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2918/labels{/name} | https://api.github.com/repos/psf/requests/issues/2918/comments | https://api.github.com/repos/psf/requests/issues/2918/events | https://github.com/psf/requests/issues/2918 | 120,598,566 | MDU6SXNzdWUxMjA1OTg1NjY= | 2,918 | Wrong content type on request.head() only | {
"avatar_url": "https://avatars.githubusercontent.com/u/6280042?v=4",
"events_url": "https://api.github.com/users/bestofothers/events{/privacy}",
"followers_url": "https://api.github.com/users/bestofothers/followers",
"following_url": "https://api.github.com/users/bestofothers/following{/other_user}",
"gists... | [] | closed | true | null | [] | null | 2 | 2015-12-06T00:42:32Z | 2021-09-08T20:00:59Z | 2015-12-06T02:16:01Z | NONE | resolved | Using request.head() I want to get the content-type of a page before proceeding. Unfortunately for me, the request header content-type returns text/html. But if after completing the requests using request.get()
the content type is application/octet-stream.
I have suspected the web server but using urllib2 with a head... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2918/reactions"
} | https://api.github.com/repos/psf/requests/issues/2918/timeline | null | completed | null | null | false | [
"Please review the [CONTRIBUTING](https://github.com/kennethreitz/requests/blob/master/CONTRIBUTING.md#good-bug-reports) file that GitHub prompted you to review prior to filing this bug.\n\nYou've not told us what version of requests you're using or how you've installed it.\n",
"So in spite of not having the info... |
https://api.github.com/repos/psf/requests/issues/2917 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2917/labels{/name} | https://api.github.com/repos/psf/requests/issues/2917/comments | https://api.github.com/repos/psf/requests/issues/2917/events | https://github.com/psf/requests/pull/2917 | 120,569,330 | MDExOlB1bGxSZXF1ZXN0NTI3NTgwMjM= | 2,917 | requests/auth: Handle an empty 'qop' attribute in an Authenticate challenge | {
"avatar_url": "https://avatars.githubusercontent.com/u/2288718?v=4",
"events_url": "https://api.github.com/users/matt-jordan/events{/privacy}",
"followers_url": "https://api.github.com/users/matt-jordan/followers",
"following_url": "https://api.github.com/users/matt-jordan/following{/other_user}",
"gists_ur... | [] | closed | true | null | [] | null | 5 | 2015-12-05T16:21:42Z | 2021-09-08T05:01:10Z | 2015-12-06T04:48:52Z | CONTRIBUTOR | resolved | Some malfunctioning HTTP servers may return a qop directive with no token, as
opposed to correctly omitting the qop directive completely. For example:
```
header: WWW-Authenticate: Digest realm="foobar_api_auth", qop="",
nonce="a12059eaaad0b86ece8f62f04cbafed6", algorithm="MD5",
stale="false"
```
Prio... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2917/reactions"
} | https://api.github.com/repos/psf/requests/issues/2917/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2917.diff",
"html_url": "https://github.com/psf/requests/pull/2917",
"merged_at": "2015-12-06T04:48:52Z",
"patch_url": "https://github.com/psf/requests/pull/2917.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2917"
} | true | [
"Thanks for this!\n\nI think this change is more aggressive than we need actually. Is there any reason you didn't take the simpler path and just change the conditional to look for falsy values of `qop`?\n",
"Just got a bit trigger happy on trying to handle unrecognized values in the `qop` attribute. A much simple... |
https://api.github.com/repos/psf/requests/issues/2916 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2916/labels{/name} | https://api.github.com/repos/psf/requests/issues/2916/comments | https://api.github.com/repos/psf/requests/issues/2916/events | https://github.com/psf/requests/issues/2916 | 120,522,857 | MDU6SXNzdWUxMjA1MjI4NTc= | 2,916 | HTTPDigestAuth: Empty qop header in server challenge results in Authorization: None | {
"avatar_url": "https://avatars.githubusercontent.com/u/2288718?v=4",
"events_url": "https://api.github.com/users/matt-jordan/events{/privacy}",
"followers_url": "https://api.github.com/users/matt-jordan/followers",
"following_url": "https://api.github.com/users/matt-jordan/following{/other_user}",
"gists_ur... | [] | closed | true | null | [] | null | 4 | 2015-12-05T02:22:21Z | 2021-09-08T20:00:59Z | 2015-12-06T04:48:52Z | CONTRIBUTOR | resolved | This is a bit of a weird one, and I'm fairly certain the server is misbehaving slightly, but since I have less control over that:
When issuing a request with the following:
```
response = requests.post(url,
auth=HTTPDigestAuth('admin', 'foobar'))
```
The server returns back a challenge with the f... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2916/reactions"
} | https://api.github.com/repos/psf/requests/issues/2916/timeline | null | completed | null | null | false | [
"Yeah, so the server is wrong here. However, I think we can get to a place where we roughly DTRT here, by assuming that if `qop` is any falsy value then we should enter the first block. That'll cover this case as well.\n\nI'd accept a PR that makes this change.\n",
"Awesome! I'll have something up this weekend.\n... |
https://api.github.com/repos/psf/requests/issues/2915 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2915/labels{/name} | https://api.github.com/repos/psf/requests/issues/2915/comments | https://api.github.com/repos/psf/requests/issues/2915/events | https://github.com/psf/requests/pull/2915 | 120,354,789 | MDExOlB1bGxSZXF1ZXN0NTI2NDEyOTQ= | 2,915 | Switch to alabaster sphinx theme in the docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/954858?v=4",
"events_url": "https://api.github.com/users/ArcTanSusan/events{/privacy}",
"followers_url": "https://api.github.com/users/ArcTanSusan/followers",
"following_url": "https://api.github.com/users/ArcTanSusan/following{/other_user}",
"gists_url... | [] | 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_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}... | null | 20 | 2015-12-04T08:22:53Z | 2021-09-08T05:01:04Z | 2016-01-15T23:35:03Z | CONTRIBUTOR | resolved | Feedback is welcome! :grinning:
## Before with @kennethreitz's sphinx theme

## After with alabaster sphinx theme
] | {
"avatar_url": "https://avatars.githubusercontent.com/u/182938?v=4",
"events_url": "https://api.github.com/users/nkhalasi/events{/privacy}",
"followers_url": "https://api.github.com/users/nkhalasi/followers",
"following_url": "https://api.github.com/users/nkhalasi/following{/other_user}",
"gists_url": "https... | [] | closed | true | null | [] | null | 5 | 2015-12-02T12:13:48Z | 2021-09-08T20:00:57Z | 2015-12-02T12:16:59Z | NONE | resolved | We upgrade our production systems to requests==2.8.1 today and ran into <pre> File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
body=body, headers=headers)
File "/home/xxxxxx/penv/local/lib/python2.7/site-packages/requests/packages/urllib... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2914/reactions"
} | https://api.github.com/repos/psf/requests/issues/2914/timeline | null | completed | null | null | false | [
"Per our [release policy](http://docs.python-requests.org/en/latest/community/release-process/), we upgrade urllib3 on major releases, and only to active releases of urllib3. There has been no release of urllib3 since the last release of requests, and until such a release happens we cannot bring in urllib3. Note th... |
https://api.github.com/repos/psf/requests/issues/2913 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2913/labels{/name} | https://api.github.com/repos/psf/requests/issues/2913/comments | https://api.github.com/repos/psf/requests/issues/2913/events | https://github.com/psf/requests/issues/2913 | 119,841,152 | MDU6SXNzdWUxMTk4NDExNTI= | 2,913 | If socket is none requests started creating a new connection | {
"avatar_url": "https://avatars.githubusercontent.com/u/13664257?v=4",
"events_url": "https://api.github.com/users/vkosuri/events{/privacy}",
"followers_url": "https://api.github.com/users/vkosuri/followers",
"following_url": "https://api.github.com/users/vkosuri/following{/other_user}",
"gists_url": "https:... | [] | closed | true | null | [] | null | 7 | 2015-12-02T00:37:21Z | 2016-04-20T13:24:46Z | 2015-12-02T08:08:58Z | NONE | null | Hi,
I am constantly seeing Resetting dropped connection for every URL,
Could you please let me know Why i am getting and how do i avoid such error message?
Here is python snippet
``` python
def __init__(self, base_url, username, password):
self.session = requests.Session()
self.session.auth = (user... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2913/reactions"
} | https://api.github.com/repos/psf/requests/issues/2913/timeline | null | completed | null | null | false | [
"I further debugged and I came to the socket information has, If socket is none, requests started creating a new connection\n\n``` Python\ndef is_connection_dropped(conn): # Platform-specific\n \"\"\"\n Returns True if the connection is dropped and should be closed.\n :param conn:\n :class:`httplib... |
https://api.github.com/repos/psf/requests/issues/2912 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2912/labels{/name} | https://api.github.com/repos/psf/requests/issues/2912/comments | https://api.github.com/repos/psf/requests/issues/2912/events | https://github.com/psf/requests/issues/2912 | 119,840,302 | MDU6SXNzdWUxMTk4NDAzMDI= | 2,912 | Question mark eaten from request URL if no params specified | {
"avatar_url": "https://avatars.githubusercontent.com/u/80741?v=4",
"events_url": "https://api.github.com/users/mloskot/events{/privacy}",
"followers_url": "https://api.github.com/users/mloskot/followers",
"following_url": "https://api.github.com/users/mloskot/following{/other_user}",
"gists_url": "https://a... | [
{
"color": "02e10c",
"default": false,
"description": null,
"id": 76800,
"name": "Feature Request",
"node_id": "MDU6TGFiZWw3NjgwMA==",
"url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request"
},
{
"color": "e102d8",
"default": false,
"description": null... | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url... | {
"closed_at": null,
"closed_issues": 29,
"created_at": "2013-11-17T11:29:34Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
... | 22 | 2015-12-02T00:30:13Z | 2017-10-21T12:30:07Z | 2017-05-11T22:36:57Z | NONE | null | Here is an URL with question mark included, but without any parameters:
```
url='http://server.com/api/item.json?'
```
That URL (w/ question mark) controls server response in such way that it allows to request certain metadata about an item, instead of representation of an item iteself:
```
import urllib3
http = url... | {
"avatar_url": "https://avatars.githubusercontent.com/u/80741?v=4",
"events_url": "https://api.github.com/users/mloskot/events{/privacy}",
"followers_url": "https://api.github.com/users/mloskot/followers",
"following_url": "https://api.github.com/users/mloskot/following{/other_user}",
"gists_url": "https://a... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2912/reactions"
} | https://api.github.com/repos/psf/requests/issues/2912/timeline | null | completed | null | null | false | [
"This is not a bug in URL parsing: quite the opposite.\n\nRequests does its best to normalise URLs where it is safe to do so. This is necessary to ensure that various stages of URL building work appropriately, and that we don't accidentally end up with invalid headers (e.g. multiple question marks or none at all wh... |
https://api.github.com/repos/psf/requests/issues/2911 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2911/labels{/name} | https://api.github.com/repos/psf/requests/issues/2911/comments | https://api.github.com/repos/psf/requests/issues/2911/events | https://github.com/psf/requests/issues/2911 | 119,794,371 | MDU6SXNzdWUxMTk3OTQzNzE= | 2,911 | Can't use session proxy in its request for HTTPS protocol | {
"avatar_url": "https://avatars.githubusercontent.com/u/3279314?v=4",
"events_url": "https://api.github.com/users/FabriceSh44/events{/privacy}",
"followers_url": "https://api.github.com/users/FabriceSh44/followers",
"following_url": "https://api.github.com/users/FabriceSh44/following{/other_user}",
"gists_ur... | [] | closed | true | null | [] | null | 39 | 2015-12-01T19:55:01Z | 2021-09-08T20:01:01Z | 2015-12-02T21:38:31Z | NONE | resolved | I've been struggling with my company proxy to make an https request.
import requests
from requests.auth import HTTPProxyAuth
proxy_string = 'http://user:password@url_proxt:port_proxy'
s = requests.Session()
s.proxies = {"http": proxy_string , "https": proxy_string}
s.auth = HTTPProxyAuth(user,password)
r = s.get('h... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2911/reactions"
} | https://api.github.com/repos/psf/requests/issues/2911/timeline | null | completed | null | null | false | [
"Have you tried the same request without setting `s.auth`?\n",
"Just did. Same result : KO\n",
"Hmm. I wonder if this is connection pooling related. @Bl4ckc4t, are you comfortable with wireshark?\n",
"I would like to avoid that. Being in a corporate environment and not knowing Wireshark that well, I'm afraid ... |
https://api.github.com/repos/psf/requests/issues/2910 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2910/labels{/name} | https://api.github.com/repos/psf/requests/issues/2910/comments | https://api.github.com/repos/psf/requests/issues/2910/events | https://github.com/psf/requests/issues/2910 | 119,755,535 | MDU6SXNzdWUxMTk3NTU1MzU= | 2,910 | Expired SSL certificates don't raise an error | {
"avatar_url": "https://avatars.githubusercontent.com/u/62745?v=4",
"events_url": "https://api.github.com/users/spookylukey/events{/privacy}",
"followers_url": "https://api.github.com/users/spookylukey/followers",
"following_url": "https://api.github.com/users/spookylukey/following{/other_user}",
"gists_url"... | [] | closed | true | null | [] | null | 8 | 2015-12-01T16:32:34Z | 2021-09-08T20:01:02Z | 2015-12-01T19:26:59Z | NONE | resolved | ```
>>> requests.get('https://expired.badssl.com/', verify=True)
<Response [200]>
```
I'm expecting an SSL exception of some kind here, like it does for https://wrong.host.badssl.com/
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2910/reactions"
} | https://api.github.com/repos/psf/requests/issues/2910/timeline | null | completed | null | null | false | [
"Please have a read of our [contributing file](https://github.com/kennethreitz/requests/blob/master/CONTRIBUTING.md), which GitHub already asked you to do. Please then provide the information requested within: particularly, tell us **what version of Requests you're using** and **how you installed it**. Please also ... |
https://api.github.com/repos/psf/requests/issues/2909 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2909/labels{/name} | https://api.github.com/repos/psf/requests/issues/2909/comments | https://api.github.com/repos/psf/requests/issues/2909/events | https://github.com/psf/requests/pull/2909 | 119,697,263 | MDExOlB1bGxSZXF1ZXN0NTIyNDYxMzM= | 2,909 | Fix typos | {
"avatar_url": "https://avatars.githubusercontent.com/u/141546?v=4",
"events_url": "https://api.github.com/users/jwilk/events{/privacy}",
"followers_url": "https://api.github.com/users/jwilk/followers",
"following_url": "https://api.github.com/users/jwilk/following{/other_user}",
"gists_url": "https://api.gi... | [] | closed | true | null | [] | null | 1 | 2015-12-01T11:26:59Z | 2021-09-08T04:01:15Z | 2015-12-01T11:28:06Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2909/reactions"
} | https://api.github.com/repos/psf/requests/issues/2909/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2909.diff",
"html_url": "https://github.com/psf/requests/pull/2909",
"merged_at": "2015-12-01T11:28:06Z",
"patch_url": "https://github.com/psf/requests/pull/2909.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2909"
} | true | [
"Thanks @jwilk! :sparkles: :cake: :sparkles:\n"
] | |
https://api.github.com/repos/psf/requests/issues/2908 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2908/labels{/name} | https://api.github.com/repos/psf/requests/issues/2908/comments | https://api.github.com/repos/psf/requests/issues/2908/events | https://github.com/psf/requests/issues/2908 | 119,489,960 | MDU6SXNzdWUxMTk0ODk5NjA= | 2,908 | set_default_verify_paths not implemented for SSLContext class | {
"avatar_url": "https://avatars.githubusercontent.com/u/1087183?v=4",
"events_url": "https://api.github.com/users/rjschwei/events{/privacy}",
"followers_url": "https://api.github.com/users/rjschwei/followers",
"following_url": "https://api.github.com/users/rjschwei/following{/other_user}",
"gists_url": "http... | [] | closed | true | null | [] | null | 4 | 2015-11-30T13:18:38Z | 2021-09-08T20:01:04Z | 2015-11-30T13:34:56Z | NONE | resolved | It is possible to end up in a situation where set_default_verify_paths() is called on the SSLContext but the SSLContext instance is an instance of the implementation of SSLContext implemented in requests/packages/urllib3/util/ssl_.py This implementation does not provide the set_default_verify_paths() method. Thus resul... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2908/reactions"
} | https://api.github.com/repos/psf/requests/issues/2908/timeline | null | completed | null | null | false | [
"@rjschwei Where did you install requests from? urllib3 (and by extension requests) have _never_ called `set_default_verify_paths` in any version we shipped, at least according to a quick search of our git history. The only place we've ever called it is inside the PyOpenSSL contrib module, which of course could not... |
https://api.github.com/repos/psf/requests/issues/2907 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2907/labels{/name} | https://api.github.com/repos/psf/requests/issues/2907/comments | https://api.github.com/repos/psf/requests/issues/2907/events | https://github.com/psf/requests/issues/2907 | 119,447,209 | MDU6SXNzdWUxMTk0NDcyMDk= | 2,907 | Support arguments whose values are None | {
"avatar_url": "https://avatars.githubusercontent.com/u/10276811?v=4",
"events_url": "https://api.github.com/users/rohithpr/events{/privacy}",
"followers_url": "https://api.github.com/users/rohithpr/followers",
"following_url": "https://api.github.com/users/rohithpr/following{/other_user}",
"gists_url": "htt... | [] | closed | true | null | [] | null | 10 | 2015-11-30T09:06:32Z | 2021-09-08T20:01:03Z | 2015-11-30T14:15:41Z | NONE | resolved | The docs say: `Note that any dictionary key whose value is None will not be added to the URL’s query string.`
Is there a chance that this could be controlled by the user to include None values as well? Perhaps with the help of a flag.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2907/reactions"
} | https://api.github.com/repos/psf/requests/issues/2907/timeline | null | completed | null | null | false | [
"@rohithpr What would a `None` value be turned into?\n",
"@Lukasa - `null` perhaps?\n\n```\n>>> json.dumps({'val':None})\n'{\"val\": null}'\n```\n",
"@rohithpr The only place we turn dictionaries into JSON is the `json=` keyword argument, and that is not put into the URL's query string. Query strings in URLs ar... |
https://api.github.com/repos/psf/requests/issues/2906 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2906/labels{/name} | https://api.github.com/repos/psf/requests/issues/2906/comments | https://api.github.com/repos/psf/requests/issues/2906/events | https://github.com/psf/requests/issues/2906 | 119,266,350 | MDU6SXNzdWUxMTkyNjYzNTA= | 2,906 | requests.packages.urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:646) | {
"avatar_url": "https://avatars.githubusercontent.com/u/2891235?v=4",
"events_url": "https://api.github.com/users/caizixian/events{/privacy}",
"followers_url": "https://api.github.com/users/caizixian/followers",
"following_url": "https://api.github.com/users/caizixian/following{/other_user}",
"gists_url": "h... | [] | closed | true | null | [] | null | 7 | 2015-11-28T02:45:30Z | 2021-09-08T12:00:53Z | 2015-11-28T08:05:55Z | NONE | resolved | Mac OS X 10.11.1
Python 3.5.0 from https://www.python.org/downloads/
requests (2.8.1)
``` python
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 0.9.8zg 14 July 2015'
```
URL https://api.telegram.org/
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2906/reactions"
} | https://api.github.com/repos/psf/requests/issues/2906/timeline | null | completed | null | null | false | [
"That version of OpenSSL is absolutely _ancient_. I suspect it's the cause of your problem.\n\nI have OS X 10.11.2 Beta, Python 3.5.0 linked against a newer version of OpenSSL (1.0.2d), and the same version of requests, and I can reach that URL fine. I highly encourage you to use a newer version of OpenSSL.\n\nYou ... |
https://api.github.com/repos/psf/requests/issues/2905 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2905/labels{/name} | https://api.github.com/repos/psf/requests/issues/2905/comments | https://api.github.com/repos/psf/requests/issues/2905/events | https://github.com/psf/requests/issues/2905 | 119,206,445 | MDU6SXNzdWUxMTkyMDY0NDU= | 2,905 | response.request.headers does not contain the Hosts Header | {
"avatar_url": "https://avatars.githubusercontent.com/u/16048186?v=4",
"events_url": "https://api.github.com/users/GreenBattery/events{/privacy}",
"followers_url": "https://api.github.com/users/GreenBattery/followers",
"following_url": "https://api.github.com/users/GreenBattery/following{/other_user}",
"gist... | [] | closed | true | null | [] | null | 1 | 2015-11-27T14:42:16Z | 2021-09-08T20:01:05Z | 2015-11-27T14:57:17Z | NONE | resolved | if you iterate over the headers of the response objects request, you do not get the complete set. The Host Header is missing.
``` python
sending_headers = {"Accept-Encoding": "identity"}
method = "GET"
url = "http://192.168.205.65/poster.php"
resp = requests.request(method, url, headers = sending_headers)
rh = resp.r... | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2905/reactions"
} | https://api.github.com/repos/psf/requests/issues/2905/timeline | null | completed | null | null | false | [
"This is because, ordinarily, requests does not set the `Host` header at all: `httplib` does. We generally don't get in the way of that because httplib wants to set it.\n\nIn general, requests does not (and indeed cannot) claim that the headers variables (on both requests and responses) represent the full set of he... |
https://api.github.com/repos/psf/requests/issues/2904 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2904/labels{/name} | https://api.github.com/repos/psf/requests/issues/2904/comments | https://api.github.com/repos/psf/requests/issues/2904/events | https://github.com/psf/requests/issues/2904 | 119,110,699 | MDU6SXNzdWUxMTkxMTA2OTk= | 2,904 | Feature Request: Format reponse as HTTP Response Message Format | {
"avatar_url": "https://avatars.githubusercontent.com/u/2363105?v=4",
"events_url": "https://api.github.com/users/CrazyPython/events{/privacy}",
"followers_url": "https://api.github.com/users/CrazyPython/followers",
"following_url": "https://api.github.com/users/CrazyPython/following{/other_user}",
"gists_ur... | [] | closed | true | null | [] | null | 1 | 2015-11-26T23:36:56Z | 2021-09-08T20:01:05Z | 2015-11-27T04:51:37Z | NONE | resolved | http://www.tcpipguide.com/free/t_HTTPResponseMessageFormat.htm
A helper method to format a response as shown in the URL above would be useful.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2904/reactions"
} | https://api.github.com/repos/psf/requests/issues/2904/timeline | null | completed | null | null | false | [
"Requests is currently in a feature freeze. As such we aren't going to be implementing this. That said, if you wanted to implement this yourself, you would probably get 90% of the way there with [dump_response](https://toolbelt.readthedocs.org/en/latest/dumputils.html#requests_toolbelt.utils.dump.dump_response) fro... |
https://api.github.com/repos/psf/requests/issues/2903 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2903/labels{/name} | https://api.github.com/repos/psf/requests/issues/2903/comments | https://api.github.com/repos/psf/requests/issues/2903/events | https://github.com/psf/requests/pull/2903 | 119,106,123 | MDExOlB1bGxSZXF1ZXN0NTE5NDgxMTI= | 2,903 | Support SSL_CERT_FILE and SSL_CERT_DIR env vars | {
"avatar_url": "https://avatars.githubusercontent.com/u/4051912?v=4",
"events_url": "https://api.github.com/users/thoger/events{/privacy}",
"followers_url": "https://api.github.com/users/thoger/followers",
"following_url": "https://api.github.com/users/thoger/following{/other_user}",
"gists_url": "https://ap... | [
{
"color": "e102d8",
"default": false,
"description": null,
"id": 117745,
"name": "Planned",
"node_id": "MDU6TGFiZWwxMTc3NDU=",
"url": "https://api.github.com/repos/psf/requests/labels/Planned"
}
] | closed | true | null | [] | {
"closed_at": null,
"closed_issues": 29,
"created_at": "2013-11-17T11:29:34Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
... | 21 | 2015-11-26T22:15:14Z | 2021-09-04T00:06:35Z | 2017-02-10T17:44:57Z | NONE | resolved | A proposed fix for issue #2899.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/119893?v=4",
"events_url": "https://api.github.com/users/kennethreitz/events{/privacy}",
"followers_url": "https://api.github.com/users/kennethreitz/followers",
"following_url": "https://api.github.com/users/kennethreitz/following{/other_user}",
"gists_... | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/psf/requests/issues/2903/reactions"
} | https://api.github.com/repos/psf/requests/issues/2903/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2903.diff",
"html_url": "https://github.com/psf/requests/pull/2903",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2903.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2903"
} | true | [
"At a certain point this will get clearer if we use a for loop, but for now I think we're still ok. Thanks @thoger!\n",
"Hey, this would be really helpful for me. Can you merge this, please?\n",
"@standaloneSA This has been tagged for the 3.0.0 release. =)\n",
"All the +1s. You rock @Lukasa thanks! \n",
"@L... |
https://api.github.com/repos/psf/requests/issues/2902 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2902/labels{/name} | https://api.github.com/repos/psf/requests/issues/2902/comments | https://api.github.com/repos/psf/requests/issues/2902/events | https://github.com/psf/requests/pull/2902 | 119,055,909 | MDExOlB1bGxSZXF1ZXN0NTE5MTkxMTU= | 2,902 | Include a link to my GitHub profile. | {
"avatar_url": "https://avatars.githubusercontent.com/u/10311?v=4",
"events_url": "https://api.github.com/users/jparise/events{/privacy}",
"followers_url": "https://api.github.com/users/jparise/followers",
"following_url": "https://api.github.com/users/jparise/following{/other_user}",
"gists_url": "https://a... | [] | closed | true | null | [] | null | 0 | 2015-11-26T14:35:23Z | 2021-09-08T05:01:11Z | 2015-11-26T14:57:10Z | CONTRIBUTOR | resolved | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2902/reactions"
} | https://api.github.com/repos/psf/requests/issues/2902/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2902.diff",
"html_url": "https://github.com/psf/requests/pull/2902",
"merged_at": "2015-11-26T14:57:10Z",
"patch_url": "https://github.com/psf/requests/pull/2902.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2902"
} | true | [] | |
https://api.github.com/repos/psf/requests/issues/2901 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2901/labels{/name} | https://api.github.com/repos/psf/requests/issues/2901/comments | https://api.github.com/repos/psf/requests/issues/2901/events | https://github.com/psf/requests/issues/2901 | 119,043,831 | MDU6SXNzdWUxMTkwNDM4MzE= | 2,901 | Does iter_content sometimes emit empty chunks | {
"avatar_url": "https://avatars.githubusercontent.com/u/189580?v=4",
"events_url": "https://api.github.com/users/LinusU/events{/privacy}",
"followers_url": "https://api.github.com/users/LinusU/followers",
"following_url": "https://api.github.com/users/LinusU/following{/other_user}",
"gists_url": "https://api... | [] | closed | true | null | [] | null | 2 | 2015-11-26T13:24:21Z | 2021-09-08T20:01:06Z | 2015-11-26T13:34:48Z | NONE | resolved | I've seen a lot of code on stackoverflow that guards the loop-body with an `if chunk:` when using `iter_content`. Is this really necessary, I don't see it anywhere in the documentation.
If it is, could we fix it? Or if not, document it.
``` python
for chunk in r.iter_content():
if chunk: # <- why this?
output.w... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2901/reactions"
} | https://api.github.com/repos/psf/requests/issues/2901/timeline | null | completed | null | null | false | [
"`iter_content` should not emit empty chunks. Historically it _could_, however with the current logic that should not be possible. If anyone encounters this problem I'd consider it a bug.\n",
"Perfect, that's what I'd hoped for! Thanks\n"
] |
https://api.github.com/repos/psf/requests/issues/2900 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2900/labels{/name} | https://api.github.com/repos/psf/requests/issues/2900/comments | https://api.github.com/repos/psf/requests/issues/2900/events | https://github.com/psf/requests/issues/2900 | 119,042,802 | MDU6SXNzdWUxMTkwNDI4MDI= | 2,900 | Feature requests: iter_chunks([max_size]) | {
"avatar_url": "https://avatars.githubusercontent.com/u/189580?v=4",
"events_url": "https://api.github.com/users/LinusU/events{/privacy}",
"followers_url": "https://api.github.com/users/LinusU/followers",
"following_url": "https://api.github.com/users/LinusU/following{/other_user}",
"gists_url": "https://api... | [] | closed | true | null | [] | null | 12 | 2015-11-26T13:18:16Z | 2021-09-08T20:01:06Z | 2015-11-26T13:20:34Z | NONE | resolved | I would love to have a function that would iterate over the chunks that are received, as they are received on the socket. It would work like [`socket.recv()`](https://docs.python.org/2/library/socket.html#socket.socket.recv) works in the python standard library.
This would be very good for an easy way to consume the s... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2900/reactions"
} | https://api.github.com/repos/psf/requests/issues/2900/timeline | null | completed | null | null | false | [
"This already works. Use `iter_content(None)`, as [discussed in the documentation](http://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests).\n",
"That's awesome \\o/\n\nIs there any reason why `__iter__` on `Response` doesn't use it?\n\nWould it be possible to add it to the documentation s... |
https://api.github.com/repos/psf/requests/issues/2899 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2899/labels{/name} | https://api.github.com/repos/psf/requests/issues/2899/comments | https://api.github.com/repos/psf/requests/issues/2899/events | https://github.com/psf/requests/issues/2899 | 119,003,692 | MDU6SXNzdWUxMTkwMDM2OTI= | 2,899 | requests: Support SSL_CERT_FILE environment variable | {
"avatar_url": "https://avatars.githubusercontent.com/u/4051912?v=4",
"events_url": "https://api.github.com/users/thoger/events{/privacy}",
"followers_url": "https://api.github.com/users/thoger/followers",
"following_url": "https://api.github.com/users/thoger/following{/other_user}",
"gists_url": "https://ap... | [
{
"color": "02e10c",
"default": false,
"description": null,
"id": 76800,
"name": "Feature Request",
"node_id": "MDU6TGFiZWw3NjgwMA==",
"url": "https://api.github.com/repos/psf/requests/labels/Feature%20Request"
},
{
"color": "0b02e1",
"default": false,
"description": null... | closed | true | null | [] | null | 22 | 2015-11-26T09:25:04Z | 2021-09-08T09:00:44Z | 2017-05-29T20:08:52Z | NONE | resolved | Requests allows setting path to a CA certificate bundle that should be used instead of the default system one using the following environment variables: `REQUESTS_CA_BUNDLE` and `CURL_CA_BUNDLE`.
https://github.com/kennethreitz/requests/blob/v2.8.1/requests/sessions.py#L621
Please make it also check `SSL_CERT_FILE` e... | {
"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_... | {
"+1": 6,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 4,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 10,
"url": "https://api.github.com/repos/psf/requests/issues/2899/reactions"
} | https://api.github.com/repos/psf/requests/issues/2899/timeline | null | completed | null | null | false | [
"This seems reasonable enough to me. I'd be happy to accept a patch that does this. We should also accept `SSL_CERT_DIR`.\n",
"This seems harmless enough.\n",
"Is this still an issue ? If so I would like to give it a shot.\n",
"@Keops92 The work has been done, sadly: see #2903.\n",
"Thanks ! \n",
"What ab... |
https://api.github.com/repos/psf/requests/issues/2898 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2898/labels{/name} | https://api.github.com/repos/psf/requests/issues/2898/comments | https://api.github.com/repos/psf/requests/issues/2898/events | https://github.com/psf/requests/pull/2898 | 118,736,560 | MDExOlB1bGxSZXF1ZXN0NTE3NDAwMDA= | 2,898 | Update adapters.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/90185?v=4",
"events_url": "https://api.github.com/users/lndbrg/events{/privacy}",
"followers_url": "https://api.github.com/users/lndbrg/followers",
"following_url": "https://api.github.com/users/lndbrg/following{/other_user}",
"gists_url": "https://api.... | [] | closed | true | null | [] | null | 1 | 2015-11-25T01:02:47Z | 2021-09-08T05:01:11Z | 2015-11-25T02:44:51Z | CONTRIBUTOR | resolved | Remove duplicate word.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2898/reactions"
} | https://api.github.com/repos/psf/requests/issues/2898/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2898.diff",
"html_url": "https://github.com/psf/requests/pull/2898",
"merged_at": "2015-11-25T02:44:51Z",
"patch_url": "https://github.com/psf/requests/pull/2898.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2898"
} | true | [
"Thanks @lndbrg!\n"
] |
https://api.github.com/repos/psf/requests/issues/2897 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2897/labels{/name} | https://api.github.com/repos/psf/requests/issues/2897/comments | https://api.github.com/repos/psf/requests/issues/2897/events | https://github.com/psf/requests/pull/2897 | 118,724,897 | MDExOlB1bGxSZXF1ZXN0NTE3MzIwMzk= | 2,897 | Test socket server | {
"avatar_url": "https://avatars.githubusercontent.com/u/715372?v=4",
"events_url": "https://api.github.com/users/BraulioVM/events{/privacy}",
"followers_url": "https://api.github.com/users/BraulioVM/followers",
"following_url": "https://api.github.com/users/BraulioVM/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 44 | 2015-11-24T23:20:45Z | 2021-09-08T04:01:07Z | 2016-04-11T20:29:02Z | CONTRIBUTOR | resolved | Fixes #2866.
### What is this?
This is an implementation of a basic socket server that is able to run concurrently with the main thread. This might be useful for testing our 'Transfer-Encoding: chunked' functionality as pytest-httpbin isn't able to handle this kind of encoding.
### How does it work?
You provide the S... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2897/reactions"
} | https://api.github.com/repos/psf/requests/issues/2897/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2897.diff",
"html_url": "https://github.com/psf/requests/pull/2897",
"merged_at": "2016-04-11T20:29:02Z",
"patch_url": "https://github.com/psf/requests/pull/2897.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2897"
} | true | [
"Can we perhaps not call it dummyserver? Maybe something more accurate, e.g., testserver?\n",
"Calling it a testserver feels like a good idea. As to the approach, this is definitely going in the right general direction, at least as far as I'm concerned. Obviously you need to replace the test that's currently ther... |
https://api.github.com/repos/psf/requests/issues/2896 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2896/labels{/name} | https://api.github.com/repos/psf/requests/issues/2896/comments | https://api.github.com/repos/psf/requests/issues/2896/events | https://github.com/psf/requests/pull/2896 | 118,459,467 | MDExOlB1bGxSZXF1ZXN0NTE1NzE2NTQ= | 2,896 | Set 'Transfer-Encoding: chunked' if data is a file with length 0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/715372?v=4",
"events_url": "https://api.github.com/users/BraulioVM/events{/privacy}",
"followers_url": "https://api.github.com/users/BraulioVM/followers",
"following_url": "https://api.github.com/users/BraulioVM/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 8 | 2015-11-23T19:55:37Z | 2021-09-08T05:01:11Z | 2015-12-02T14:35:41Z | CONTRIBUTOR | resolved | Fixes #2215
This is the first time I contribute to the project so I am not sure at all I put that code where it belongs. I know I have to add tests for this, but wanted to show you this beforehand.
Did I do this right?
Thank you
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2896/reactions"
} | https://api.github.com/repos/psf/requests/issues/2896/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2896.diff",
"html_url": "https://github.com/psf/requests/pull/2896",
"merged_at": "2015-12-02T14:35:41Z",
"patch_url": "https://github.com/psf/requests/pull/2896.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2896"
} | true | [
"@BraulioVM This is a good first pass! I have a draft of this fix sitting around on my laptop, so when I get home I'll show you how I approached it and let you take the ideas you like best. \n",
"@Lukasa Thanks!\n\nI have just seen #2866, which won't allow me to implement the tests I want, so I might as well thin... |
https://api.github.com/repos/psf/requests/issues/2895 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2895/labels{/name} | https://api.github.com/repos/psf/requests/issues/2895/comments | https://api.github.com/repos/psf/requests/issues/2895/events | https://github.com/psf/requests/pull/2895 | 118,021,604 | MDExOlB1bGxSZXF1ZXN0NTEzNDU4Nzc= | 2,895 | Add basic CONTRIBUTING.md file | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 5 | 2015-11-20T11:30:20Z | 2021-09-08T05:01:12Z | 2015-11-20T14:14:59Z | MEMBER | resolved | It's beginning to get frustrating to have to keep dealing with questions on this issue tracker. Let's see if we can dissuade them.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2895/reactions"
} | https://api.github.com/repos/psf/requests/issues/2895/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2895.diff",
"html_url": "https://github.com/psf/requests/pull/2895",
"merged_at": "2015-11-20T14:14:59Z",
"patch_url": "https://github.com/psf/requests/pull/2895.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2895"
} | true | [
"That looks great!\n",
"One addition to what makes a good bug report for us.\n",
"Updated. =)\n",
"I'm not confident people will read this before filing a bug, but we can at least point them to it when closing a bug now.\n",
"More importantly, because GitHub prompts people to look at it first we can be sure... |
https://api.github.com/repos/psf/requests/issues/2894 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2894/labels{/name} | https://api.github.com/repos/psf/requests/issues/2894/comments | https://api.github.com/repos/psf/requests/issues/2894/events | https://github.com/psf/requests/issues/2894 | 118,018,074 | MDU6SXNzdWUxMTgwMTgwNzQ= | 2,894 | How can I detect encoding after I streamed only few pieces of response? | {
"avatar_url": "https://avatars.githubusercontent.com/u/621269?v=4",
"events_url": "https://api.github.com/users/adibalcan/events{/privacy}",
"followers_url": "https://api.github.com/users/adibalcan/followers",
"following_url": "https://api.github.com/users/adibalcan/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 5 | 2015-11-20T11:12:27Z | 2021-09-08T20:01:06Z | 2015-11-20T11:38:46Z | NONE | resolved | ```
size = 0
start = time.time()
for chunk in r.iter_content(1024):
if time.time() - start > max_time:
r.reason = 'timeout riched'
raise ValueError(r.reason)
size += len(chunk)
if size > max_size:
r.reason = 'response too large'
raise V... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2894/reactions"
} | https://api.github.com/repos/psf/requests/issues/2894/timeline | null | completed | null | null | false | [
"When you say \"encoding\", what kind of encoding do you mean?\n",
"After stream ends (finish, or I interrupt), I want to use r.content (decoded response). Who can I do this?\n",
"If you use `iter_content` manually, it does not save into `r.content`. You should simply save off the data directly yourself.\n",
... |
https://api.github.com/repos/psf/requests/issues/2893 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2893/labels{/name} | https://api.github.com/repos/psf/requests/issues/2893/comments | https://api.github.com/repos/psf/requests/issues/2893/events | https://github.com/psf/requests/issues/2893 | 118,008,797 | MDU6SXNzdWUxMTgwMDg3OTc= | 2,893 | Ability to use requests as a web server | {
"avatar_url": "https://avatars.githubusercontent.com/u/105927?v=4",
"events_url": "https://api.github.com/users/valerianrossigneux/events{/privacy}",
"followers_url": "https://api.github.com/users/valerianrossigneux/followers",
"following_url": "https://api.github.com/users/valerianrossigneux/following{/other... | [] | closed | true | null | [] | null | 3 | 2015-11-20T10:15:36Z | 2021-09-08T20:01:07Z | 2015-11-20T10:35:42Z | NONE | resolved | Hi, I was wondering if a wrapper was existing around requests so that it could be used as a web server ?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2893/reactions"
} | https://api.github.com/repos/psf/requests/issues/2893/timeline | null | completed | null | null | false | [
"@cyberval When you say \"used as a web server\", what does that mean exactly? What would requests do?\n",
"Sorry it's not very clear. I want to access requests through a web server rather than the CLI, something like:\nhttp://mydomain/requests?get=http://foo.com&authuser=a&authpass=b\n\nBecause of thrid party to... |
https://api.github.com/repos/psf/requests/issues/2892 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2892/labels{/name} | https://api.github.com/repos/psf/requests/issues/2892/comments | https://api.github.com/repos/psf/requests/issues/2892/events | https://github.com/psf/requests/issues/2892 | 117,994,464 | MDU6SXNzdWUxMTc5OTQ0NjQ= | 2,892 | capath support in requests | {
"avatar_url": "https://avatars.githubusercontent.com/u/7211278?v=4",
"events_url": "https://api.github.com/users/mariayh1/events{/privacy}",
"followers_url": "https://api.github.com/users/mariayh1/followers",
"following_url": "https://api.github.com/users/mariayh1/following{/other_user}",
"gists_url": "http... | [] | closed | true | null | [] | null | 1 | 2015-11-20T08:47:06Z | 2021-09-08T20:01:07Z | 2015-11-20T08:48:37Z | NONE | resolved | We are currently using pycurl, but we would like to migrate to requests in order to independent of NSS.
However, we could see that we can only provide a ca_bundle instead of a capath. In urllib2.urlopen you can provide cafile and capath options, however that is not the case in the requests module.
Also we tried to us... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2892/reactions"
} | https://api.github.com/repos/psf/requests/issues/2892/timeline | null | completed | null | null | false | [
"Support for directories of CAs is in the current master, and will be released as part of the 2.9.0 release. See also #2858 and #2659.\n"
] |
https://api.github.com/repos/psf/requests/issues/2891 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2891/labels{/name} | https://api.github.com/repos/psf/requests/issues/2891/comments | https://api.github.com/repos/psf/requests/issues/2891/events | https://github.com/psf/requests/pull/2891 | 117,885,102 | MDExOlB1bGxSZXF1ZXN0NTEyNjYzMzI= | 2,891 | Specify minimum pyOpenSSL version | {
"avatar_url": "https://avatars.githubusercontent.com/u/790805?v=4",
"events_url": "https://api.github.com/users/lorenzph/events{/privacy}",
"followers_url": "https://api.github.com/users/lorenzph/followers",
"following_url": "https://api.github.com/users/lorenzph/following{/other_user}",
"gists_url": "https... | [] | closed | true | null | [] | null | 2 | 2015-11-19T19:09:27Z | 2021-09-08T05:01:13Z | 2015-11-19T19:11:34Z | CONTRIBUTOR | resolved | urllib3 requires "set_tlsext_host_name" which was only added in
pyOpenSSL 0.13. As some distributions (e.g. Ubuntu 12.04) still ship an
older version enforce the correct minimum version during installation.
I will submit a similar pull requests to the urllib3 project.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2891/reactions"
} | https://api.github.com/repos/psf/requests/issues/2891/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2891.diff",
"html_url": "https://github.com/psf/requests/pull/2891",
"merged_at": "2015-11-19T19:11:34Z",
"patch_url": "https://github.com/psf/requests/pull/2891.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2891"
} | true | [
"It's mind-boggling to me that anyone is shipping a PyOpenSSL that old. Amusingly, the reason we need set_tlsext_host_name is to enable SNI, which is literally the point of using PyOpenSSL with requests, so any earlier version of PyOpenSSL wouldn't do what we need it to do anyway. What a world we live in. Thanks fo... |
https://api.github.com/repos/psf/requests/issues/2890 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2890/labels{/name} | https://api.github.com/repos/psf/requests/issues/2890/comments | https://api.github.com/repos/psf/requests/issues/2890/events | https://github.com/psf/requests/issues/2890 | 117,683,020 | MDU6SXNzdWUxMTc2ODMwMjA= | 2,890 | Deleted cookies should be included in response.cookies | {
"avatar_url": "https://avatars.githubusercontent.com/u/1221480?v=4",
"events_url": "https://api.github.com/users/Bekt/events{/privacy}",
"followers_url": "https://api.github.com/users/Bekt/followers",
"following_url": "https://api.github.com/users/Bekt/following{/other_user}",
"gists_url": "https://api.gith... | [] | closed | true | null | [] | null | 8 | 2015-11-18T21:16:22Z | 2021-09-08T21:00:41Z | 2015-11-19T19:04:46Z | NONE | resolved | ``` py
s = requests.Session()
r = s.get('https://httpbin.org/cookies/set?k2=v2&k1=v1', allow_redirects=False)
r.headers['set-cookie']
# 'k2=v2; Path=/, k1=v1; Path=/'
r.cookies.keys()
# ['k1', 'k2']
r = s.get('https://httpbin.org/cookies/delete?k1', allow_redirects=False)
r.headers['set-cookie']
# 'k1=; Expires=Thu, 0... | {
"avatar_url": "https://avatars.githubusercontent.com/u/1221480?v=4",
"events_url": "https://api.github.com/users/Bekt/events{/privacy}",
"followers_url": "https://api.github.com/users/Bekt/followers",
"following_url": "https://api.github.com/users/Bekt/following{/other_user}",
"gists_url": "https://api.gith... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2890/reactions"
} | https://api.github.com/repos/psf/requests/issues/2890/timeline | null | completed | null | null | false | [
"Sorry, it's not clear to me: _why_ should deleted cookies be included in `r.cookies`?\n",
"Well, why _shouldn't_ they be?\n\nSay, you have an endpoint that logs out a user. A log-out usually clears out browser cookies by specifying an empty key-value `set-cookie` header (like in the example above). If I'm using ... |
https://api.github.com/repos/psf/requests/issues/2889 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2889/labels{/name} | https://api.github.com/repos/psf/requests/issues/2889/comments | https://api.github.com/repos/psf/requests/issues/2889/events | https://github.com/psf/requests/issues/2889 | 117,662,679 | MDU6SXNzdWUxMTc2NjI2Nzk= | 2,889 | Cannot Upload a large package on Windows 7 32 bit OS, with requests | {
"avatar_url": "https://avatars.githubusercontent.com/u/15913535?v=4",
"events_url": "https://api.github.com/users/srujanayreddy/events{/privacy}",
"followers_url": "https://api.github.com/users/srujanayreddy/followers",
"following_url": "https://api.github.com/users/srujanayreddy/following{/other_user}",
"g... | [] | closed | true | null | [] | null | 9 | 2015-11-18T19:30:43Z | 2021-09-08T21:00:41Z | 2015-11-18T19:33:56Z | NONE | resolved | Cannot Upload from a Windows 7 32 bit OS. It works fine on Windows 7 64 bit OS with 32/64 bit Python.
I am using Python 3.4.3 with latest requests API.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2889/reactions"
} | https://api.github.com/repos/psf/requests/issues/2889/timeline | null | completed | null | null | false | [
"This is likely a duplicate of https://github.com/kennethreitz/requests/issues/2510 (in the sense that you're reading the exception improperly) and you've given us no detail on what you're code does or what the _full_ traceback is.\n\nPlease post questions to [StackOverflow](https://stackoverflow.com/questions/tagg... |
https://api.github.com/repos/psf/requests/issues/2888 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2888/labels{/name} | https://api.github.com/repos/psf/requests/issues/2888/comments | https://api.github.com/repos/psf/requests/issues/2888/events | https://github.com/psf/requests/issues/2888 | 117,593,602 | MDU6SXNzdWUxMTc1OTM2MDI= | 2,888 | I try 10000 concurrent tcp requests | {
"avatar_url": "https://avatars.githubusercontent.com/u/546738?v=4",
"events_url": "https://api.github.com/users/berkantaydin/events{/privacy}",
"followers_url": "https://api.github.com/users/berkantaydin/followers",
"following_url": "https://api.github.com/users/berkantaydin/following{/other_user}",
"gists_... | [] | closed | true | null | [] | null | 1 | 2015-11-18T14:06:11Z | 2021-09-08T21:00:41Z | 2015-11-18T14:08:20Z | NONE | resolved | I try 10000 concurrent tcp requests but i have max exceed error. How to solve this ? About TCP Poolsize ?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2888/reactions"
} | https://api.github.com/repos/psf/requests/issues/2888/timeline | null | completed | null | null | false | [
"Questions and support requests belong on [StackOverflow](https://stackoverflow.com/questions/tagged/python-requests).\n"
] |
https://api.github.com/repos/psf/requests/issues/2887 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2887/labels{/name} | https://api.github.com/repos/psf/requests/issues/2887/comments | https://api.github.com/repos/psf/requests/issues/2887/events | https://github.com/psf/requests/issues/2887 | 117,473,777 | MDU6SXNzdWUxMTc0NzM3Nzc= | 2,887 | On requests 2.8.0+ chunked requests can cause an unhandled urllib3.exceptions.NewConnectionError | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | [] | closed | true | null | [] | null | 8 | 2015-11-17T23:15:58Z | 2021-09-08T18:00:58Z | 2015-11-18T09:10:33Z | CONTRIBUTOR | resolved | When we perform a chunked request, we cause a call to `HTTPConnection._new_conn` through `HTTPConnection.connect` which can raise an instance of `urllib3.exceptions.NewConnectionError`.
Code to reproduce
``` py
import requests
requests.post('https://is.invalid', data=(str(i) for i in range(2)))
```
cc @stevelle
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2887/reactions"
} | https://api.github.com/repos/psf/requests/issues/2887/timeline | null | completed | null | null | false | [
"Yup, this looks wrong. Lemme get a patch up and running.\n",
"Hmm. Interestingly, I can't reproduce this on the current master.\n",
"Yup, so this appears to be fixed in master but I can't work out why. I'll close until someone else can verify that I'm losing my mind.\n",
"Huh, so this raises the proper excep... |
https://api.github.com/repos/psf/requests/issues/2886 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2886/labels{/name} | https://api.github.com/repos/psf/requests/issues/2886/comments | https://api.github.com/repos/psf/requests/issues/2886/events | https://github.com/psf/requests/issues/2886 | 117,375,358 | MDU6SXNzdWUxMTczNzUzNTg= | 2,886 | Failure while formatting an error for incorrect SSL CA file | {
"avatar_url": "https://avatars.githubusercontent.com/u/45051?v=4",
"events_url": "https://api.github.com/users/traut/events{/privacy}",
"followers_url": "https://api.github.com/users/traut/followers",
"following_url": "https://api.github.com/users/traut/following{/other_user}",
"gists_url": "https://api.git... | [] | closed | true | null | [] | null | 3 | 2015-11-17T15:13:14Z | 2021-09-08T21:00:42Z | 2015-11-17T15:24:28Z | NONE | resolved | Requests fail while trying to format exception related to non-existent CA file.
Code to reproduce:
```
import requests
requests.get('https://google.com', verify='/some/some')
```
results in:
```
File "/Users/traut/.p/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2886/reactions"
} | https://api.github.com/repos/psf/requests/issues/2886/timeline | null | completed | null | null | false | [
"This is definitely a duplicate but I don't have the time to find the exact bug right now. The fix is already merged in urllib3 iirc but @Lukasa can correct me.\n",
"Yup, this is a duplicate of shazow/urllib3#556.\n",
"cool. thanks for looking into it\n"
] |
https://api.github.com/repos/psf/requests/issues/2885 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2885/labels{/name} | https://api.github.com/repos/psf/requests/issues/2885/comments | https://api.github.com/repos/psf/requests/issues/2885/events | https://github.com/psf/requests/issues/2885 | 117,320,647 | MDU6SXNzdWUxMTczMjA2NDc= | 2,885 | sending post request data nested object | {
"avatar_url": "https://avatars.githubusercontent.com/u/9910819?v=4",
"events_url": "https://api.github.com/users/wiryonolau/events{/privacy}",
"followers_url": "https://api.github.com/users/wiryonolau/followers",
"following_url": "https://api.github.com/users/wiryonolau/following{/other_user}",
"gists_url":... | [] | closed | true | null | [] | null | 11 | 2015-11-17T10:00:37Z | 2019-04-18T12:26:01Z | 2015-11-17T10:13:49Z | NONE | resolved | Unable to send post data from nested object, some of the data is truncated
``` python
payload = {
"config": {
"data" : "test"
}
}
r = request.post('http://httpbin.org/post', data=payload)
print(r.text)
{
"args": {},
"data": "",
"files": {},
"form": {
"config": "data"
},
"headers": {
... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2885/reactions"
} | https://api.github.com/repos/psf/requests/issues/2885/timeline | null | completed | null | null | false | [
"What are you expecting the result to be here?\n",
"the post data that send become config : data instead of the full object\n",
"I'm sorry, I wasn't clear enough.\n\nWhen you use the `data` keyword, we encode the data using HTTP form-encoding. This is not capable of representing nested data structures, only fla... |
https://api.github.com/repos/psf/requests/issues/2884 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2884/labels{/name} | https://api.github.com/repos/psf/requests/issues/2884/comments | https://api.github.com/repos/psf/requests/issues/2884/events | https://github.com/psf/requests/issues/2884 | 117,081,445 | MDU6SXNzdWUxMTcwODE0NDU= | 2,884 | SSLError: [Errno 185090050] _ssl.c:336: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib | {
"avatar_url": "https://avatars.githubusercontent.com/u/15173749?v=4",
"events_url": "https://api.github.com/users/AraHaan/events{/privacy}",
"followers_url": "https://api.github.com/users/AraHaan/followers",
"following_url": "https://api.github.com/users/AraHaan/following{/other_user}",
"gists_url": "https:... | [] | closed | true | null | [] | null | 7 | 2015-11-16T09:21:47Z | 2021-09-08T20:01:03Z | 2015-11-19T15:46:14Z | NONE | resolved | I am seeing this when compiling with requests in Python 2.7.10 with py2exe.
Everything goes just fine till I test the exe it generates.
My setup.py I used to create it is this.
``` Python
from distutils.core import setup
import py2exe
setup(console=['Decorater.py'])
```
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2884/reactions"
} | https://api.github.com/repos/psf/requests/issues/2884/timeline | null | completed | null | null | false | [
"This is almost certainly a py2exe problem. It seems like py2exe is not handling the ssl module correctly. \n",
"I think that missing 3 dependencies could cause this as well although it still happens even when I just solved the \"Insecure Platform Warning\".\n",
"looking closer it seems to be similar to the one... |
https://api.github.com/repos/psf/requests/issues/2883 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2883/labels{/name} | https://api.github.com/repos/psf/requests/issues/2883/comments | https://api.github.com/repos/psf/requests/issues/2883/events | https://github.com/psf/requests/issues/2883 | 116,984,180 | MDU6SXNzdWUxMTY5ODQxODA= | 2,883 | Posting files with unicode file names | {
"avatar_url": "https://avatars.githubusercontent.com/u/6841988?v=4",
"events_url": "https://api.github.com/users/DeepSpace2/events{/privacy}",
"followers_url": "https://api.github.com/users/DeepSpace2/followers",
"following_url": "https://api.github.com/users/DeepSpace2/following{/other_user}",
"gists_url":... | [] | closed | true | null | [] | null | 3 | 2015-11-15T09:59:43Z | 2021-09-08T21:00:42Z | 2015-11-15T10:29:24Z | NONE | resolved | Hi all. I'm having issues with posting files with UTF-8 file names.
I've thoroughly read these 2 issues:
https://github.com/kennethreitz/requests/issues/2505
https://github.com/mitsuhiko/flask/issues/1384
Please also refer to my question on SO:
http://stackoverflow.com/questions/33717690/python-requests-post-with-un... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2883/reactions"
} | https://api.github.com/repos/psf/requests/issues/2883/timeline | null | completed | null | null | false | [
"Sorry, you've said you're \"having trouble\", but haven't actually specified what's happening that you aren't expecting. Could you elaborate?\n",
"I'm sorry it was not clear but the problem is that the server doesn't\nreceive the file (request.files is empty).\nOn Nov 15, 2015 12:23, \"Cory Benfield\" notificati... |
https://api.github.com/repos/psf/requests/issues/2882 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2882/labels{/name} | https://api.github.com/repos/psf/requests/issues/2882/comments | https://api.github.com/repos/psf/requests/issues/2882/events | https://github.com/psf/requests/pull/2882 | 116,908,035 | MDExOlB1bGxSZXF1ZXN0NTA3MTg2MDY= | 2,882 | Please add a Session.close() | {
"avatar_url": "https://avatars.githubusercontent.com/u/14113854?v=4",
"events_url": "https://api.github.com/users/fzzo/events{/privacy}",
"followers_url": "https://api.github.com/users/fzzo/followers",
"following_url": "https://api.github.com/users/fzzo/following{/other_user}",
"gists_url": "https://api.git... | [] | closed | true | null | [] | null | 1 | 2015-11-14T07:28:04Z | 2021-09-08T05:01:13Z | 2015-11-14T07:31:51Z | NONE | resolved | Is there a reason why the .close() has yet to be implemented, the equivalent of the .close() from the original requests library? To ensure the session is closed, without leaving any open/dead/hanging/zombie sockets, would a Session.close() be the way to avoid having socket nightmares on a multi-threaded crawler utilizi... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2882/reactions"
} | https://api.github.com/repos/psf/requests/issues/2882/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2882.diff",
"html_url": "https://github.com/psf/requests/pull/2882",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2882.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2882"
} | true | [
"Uh...this is the repository for the original requests library. We _do_ have a close method. \n"
] |
https://api.github.com/repos/psf/requests/issues/2881 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2881/labels{/name} | https://api.github.com/repos/psf/requests/issues/2881/comments | https://api.github.com/repos/psf/requests/issues/2881/events | https://github.com/psf/requests/issues/2881 | 116,875,853 | MDU6SXNzdWUxMTY4NzU4NTM= | 2,881 | No Session.close() ? | {
"avatar_url": "https://avatars.githubusercontent.com/u/14113854?v=4",
"events_url": "https://api.github.com/users/fzzo/events{/privacy}",
"followers_url": "https://api.github.com/users/fzzo/followers",
"following_url": "https://api.github.com/users/fzzo/following{/other_user}",
"gists_url": "https://api.git... | [] | closed | true | null | [] | null | 0 | 2015-11-13T23:36:49Z | 2021-09-08T21:00:43Z | 2015-11-14T07:21:01Z | NONE | resolved | Oops! Intended to post this on requesocks, closing
| {
"avatar_url": "https://avatars.githubusercontent.com/u/14113854?v=4",
"events_url": "https://api.github.com/users/fzzo/events{/privacy}",
"followers_url": "https://api.github.com/users/fzzo/followers",
"following_url": "https://api.github.com/users/fzzo/following{/other_user}",
"gists_url": "https://api.git... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2881/reactions"
} | https://api.github.com/repos/psf/requests/issues/2881/timeline | null | completed | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/2880 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2880/labels{/name} | https://api.github.com/repos/psf/requests/issues/2880/comments | https://api.github.com/repos/psf/requests/issues/2880/events | https://github.com/psf/requests/pull/2880 | 116,642,479 | MDExOlB1bGxSZXF1ZXN0NTA1NjkyODA= | 2,880 | cache Response.text | {
"avatar_url": "https://avatars.githubusercontent.com/u/118963?v=4",
"events_url": "https://api.github.com/users/j0hnsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/j0hnsmith/followers",
"following_url": "https://api.github.com/users/j0hnsmith/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 1 | 2015-11-12T21:19:12Z | 2021-09-08T05:01:13Z | 2015-11-12T23:05:17Z | NONE | resolved | `Response.text` is a pure function, seems pointless doing the same conversions in repeated calls.
Cached
```
In [4]: %timeit any(word in resp.text for word in words)
The slowest run took 6.20 times longer than the fastest. This could mean that an intermediate result is being cached
100000 loops, best of 3: 17.4 µs ... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2880/reactions"
} | https://api.github.com/repos/psf/requests/issues/2880/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2880.diff",
"html_url": "https://github.com/psf/requests/pull/2880",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2880.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2880"
} | true | [
"Thanks for this! However, `Response.text` is _not_ a pure function, and cannot be safely cached. This is actually explicitly called out [in the docs](http://docs.python-requests.org/en/latest/user/quickstart/#response-content):\n\n> If you change the encoding, Requests will use the new value of `r.encoding` whenev... |
https://api.github.com/repos/psf/requests/issues/2879 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2879/labels{/name} | https://api.github.com/repos/psf/requests/issues/2879/comments | https://api.github.com/repos/psf/requests/issues/2879/events | https://github.com/psf/requests/issues/2879 | 116,582,947 | MDU6SXNzdWUxMTY1ODI5NDc= | 2,879 | SSL error when using Requests 2.8.1 and SHA-1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/13770313?v=4",
"events_url": "https://api.github.com/users/datarup/events{/privacy}",
"followers_url": "https://api.github.com/users/datarup/followers",
"following_url": "https://api.github.com/users/datarup/following{/other_user}",
"gists_url": "https:... | [] | closed | true | null | [] | null | 15 | 2015-11-12T16:16:26Z | 2021-09-08T21:00:43Z | 2015-11-13T16:02:56Z | NONE | resolved | I'm trying to connect to a site which uses TLS 1.2 using reqests package in Python 3.5. In Chrome I get the warning that the certificate chain for the website contains atleast one certificate that was signed by using SHA-1.
I get the following error:
```
Traceback (most recent call last):
File "<ipython-input-51-e... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2879/reactions"
} | https://api.github.com/repos/psf/requests/issues/2879/timeline | null | completed | null | null | false | [
"EOF in violation of protocol suggests that the remote peer has rejected the connection for some reason and, rather than terminate it cleanly, has decided to tear the connection down. Do you have PyOpenSSL installed?\n",
"But I'm able to hit the same server from a browser or PostMan. There's no authentication for... |
https://api.github.com/repos/psf/requests/issues/2878 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2878/labels{/name} | https://api.github.com/repos/psf/requests/issues/2878/comments | https://api.github.com/repos/psf/requests/issues/2878/events | https://github.com/psf/requests/pull/2878 | 116,552,991 | MDExOlB1bGxSZXF1ZXN0NTA1MTMwNjc= | 2,878 | Remove redundant json import. | {
"avatar_url": "https://avatars.githubusercontent.com/u/9250239?v=4",
"events_url": "https://api.github.com/users/kiddten/events{/privacy}",
"followers_url": "https://api.github.com/users/kiddten/followers",
"following_url": "https://api.github.com/users/kiddten/following{/other_user}",
"gists_url": "https:/... | [] | closed | true | null | [] | null | 1 | 2015-11-12T13:55:57Z | 2021-09-08T05:01:14Z | 2015-11-12T13:56:55Z | CONTRIBUTOR | resolved | related to https://github.com/kennethreitz/requests/issues/2877
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2878/reactions"
} | https://api.github.com/repos/psf/requests/issues/2878/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2878.diff",
"html_url": "https://github.com/psf/requests/pull/2878",
"merged_at": "2015-11-12T13:56:55Z",
"patch_url": "https://github.com/psf/requests/pull/2878.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2878"
} | true | [
"\\o/ Thanks so much! :sparkles: :cake: :sparkles:\n"
] |
https://api.github.com/repos/psf/requests/issues/2877 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2877/labels{/name} | https://api.github.com/repos/psf/requests/issues/2877/comments | https://api.github.com/repos/psf/requests/issues/2877/events | https://github.com/psf/requests/issues/2877 | 116,547,548 | MDU6SXNzdWUxMTY1NDc1NDg= | 2,877 | Redundant import in docs? | {
"avatar_url": "https://avatars.githubusercontent.com/u/9250239?v=4",
"events_url": "https://api.github.com/users/kiddten/events{/privacy}",
"followers_url": "https://api.github.com/users/kiddten/followers",
"following_url": "https://api.github.com/users/kiddten/following{/other_user}",
"gists_url": "https:/... | [] | closed | true | null | [] | null | 3 | 2015-11-12T13:21:00Z | 2021-09-08T21:00:43Z | 2015-11-12T14:11:11Z | CONTRIBUTOR | resolved | I am talking about this doc.
https://github.com/kennethreitz/requests/blob/master/docs/user/quickstart.rst
Here:
``` python
>>> import json
>>> url = 'https://api.github.com/some/endpoint'
>>> payload = {'some': 'data'}
>>> r = requests.post(url, json=payload)
```
json parameter is optional.
Is there any reason to ... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2877/reactions"
} | https://api.github.com/repos/psf/requests/issues/2877/timeline | null | completed | null | null | false | [
"@kiddick You're entirely right: that import of the `json` module is from an old version of the documentation. Would you like to open a pull request to remove it?\n",
"@Lukasa Thanks for reply. Yep I'll open pull request!\n",
"Thanks for fixing this @kiddick \n"
] |
https://api.github.com/repos/psf/requests/issues/2876 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2876/labels{/name} | https://api.github.com/repos/psf/requests/issues/2876/comments | https://api.github.com/repos/psf/requests/issues/2876/events | https://github.com/psf/requests/issues/2876 | 116,447,926 | MDU6SXNzdWUxMTY0NDc5MjY= | 2,876 | Exception messages | {
"avatar_url": "https://avatars.githubusercontent.com/u/1687238?v=4",
"events_url": "https://api.github.com/users/KenKundert/events{/privacy}",
"followers_url": "https://api.github.com/users/KenKundert/followers",
"following_url": "https://api.github.com/users/KenKundert/following{/other_user}",
"gists_url":... | [
{
"color": "fbca04",
"default": false,
"description": null,
"id": 44501249,
"name": "Needs BDFL Input",
"node_id": "MDU6TGFiZWw0NDUwMTI0OQ==",
"url": "https://api.github.com/repos/psf/requests/labels/Needs%20BDFL%20Input"
},
{
"color": "f7c6c7",
"default": false,
"descrip... | closed | true | null | [] | null | 15 | 2015-11-11T23:55:59Z | 2021-09-08T07:00:41Z | 2017-07-30T00:22:54Z | NONE | resolved | As a user I would like it to be easy to generate simple helpful messages upon an exception. A common way this is done in is to simply cast the exception to a string. However, with requests, the result is often something you don't want to show an end user. For example:
``` python
try:
downloaded = requests.... | {
"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_... | {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/psf/requests/issues/2876/reactions"
} | https://api.github.com/repos/psf/requests/issues/2876/timeline | null | completed | null | null | false | [
"So a little introspection shows this:\n\n``` py\n>>> import requests\n>>> try:\n... r = requests.get('https://httpbin.org/delay/5', timeout=2)\n... except requests.Timeout as terr:\n... pass\n...\n>>> terr\nReadTimeout(ReadTimeoutError(\"HTTPSConnectionPool(host='httpbin.org', port=443): Read timed out. (read ... |
https://api.github.com/repos/psf/requests/issues/2875 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2875/labels{/name} | https://api.github.com/repos/psf/requests/issues/2875/comments | https://api.github.com/repos/psf/requests/issues/2875/events | https://github.com/psf/requests/issues/2875 | 116,433,178 | MDU6SXNzdWUxMTY0MzMxNzg= | 2,875 | Failed to establish a new connection: [Errno 11001] getaddrinfo failed | {
"avatar_url": "https://avatars.githubusercontent.com/u/6819843?v=4",
"events_url": "https://api.github.com/users/patjones80/events{/privacy}",
"followers_url": "https://api.github.com/users/patjones80/followers",
"following_url": "https://api.github.com/users/patjones80/following{/other_user}",
"gists_url":... | [] | closed | true | null | [] | null | 16 | 2015-11-11T22:16:44Z | 2017-12-06T02:03:04Z | 2015-11-12T14:11:49Z | NONE | null | Hello all. I'm using requests 2.8.1 as part of a Flask 0.10.1 installation with Python 3.4 on Windows 8.1, and getting the following traceback upon attempting to run my code:
```
File "c:\Python34\atweather\lib\site-packages\requests-2.8.1-py3.4.egg\requests\api.py", line 69, in get return request('get', url, params=p... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2875/reactions"
} | https://api.github.com/repos/psf/requests/issues/2875/timeline | null | completed | null | null | false | [
"Hey @patjones80,\n\nCan you try doing\n\n``` py\n>>> import socket\n>>> s = socket.socket()\n>>> s.connect(('www.google.com', 80))\n```\n\nTo see what happens?\n",
"Oh, I just noticed this snippet from your issue:\n\n```\nHTTPConnectionPool(host='proxy.server', port=3128)\n```\n\nDo you have proxies properly con... |
https://api.github.com/repos/psf/requests/issues/2874 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2874/labels{/name} | https://api.github.com/repos/psf/requests/issues/2874/comments | https://api.github.com/repos/psf/requests/issues/2874/events | https://github.com/psf/requests/issues/2874 | 116,346,023 | MDU6SXNzdWUxMTYzNDYwMjM= | 2,874 | urlib3.HTTPResponse.stream would confuse gzip content originally not encoded utf8 | {
"avatar_url": "https://avatars.githubusercontent.com/u/741544?v=4",
"events_url": "https://api.github.com/users/yupbank/events{/privacy}",
"followers_url": "https://api.github.com/users/yupbank/followers",
"following_url": "https://api.github.com/users/yupbank/following{/other_user}",
"gists_url": "https://... | [] | closed | true | null | [] | null | 4 | 2015-11-11T14:34:13Z | 2021-09-08T21:00:44Z | 2015-11-11T14:49:18Z | NONE | resolved | Hi, i was using requests for get gziped web page which originally encoded in gbk.
as requests would try their best decoding gziped pages but as originally not by utf-8 would make the result weried and hard to debug :(
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2874/reactions"
} | https://api.github.com/repos/psf/requests/issues/2874/timeline | null | completed | null | null | false | [
"@yupbank Sorry, I didn't fully understand this message. Can you post some code that demonstrates the problem?\n",
"basically \ni figured the correct way:\n\n```\nzlib.decompress(requests.get('http://zhongyanghuachengzs.fang.com/', stream=True).raw.read(), \n zlib.MAX_WBITS|32).decode('gbk'))\n```\n\nas ... |
https://api.github.com/repos/psf/requests/issues/2873 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2873/labels{/name} | https://api.github.com/repos/psf/requests/issues/2873/comments | https://api.github.com/repos/psf/requests/issues/2873/events | https://github.com/psf/requests/pull/2873 | 116,256,838 | MDExOlB1bGxSZXF1ZXN0NTAzNDM5Njg= | 2,873 | Fix super_len for partially read files | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | [] | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url... | null | 1 | 2015-11-11T03:22:53Z | 2021-09-08T05:01:14Z | 2015-11-11T07:52:47Z | CONTRIBUTOR | resolved | See #2872
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2873/reactions"
} | https://api.github.com/repos/psf/requests/issues/2873/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2873.diff",
"html_url": "https://github.com/psf/requests/pull/2873",
"merged_at": "2015-11-11T07:52:47Z",
"patch_url": "https://github.com/psf/requests/pull/2873.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2873"
} | true | [
"LGTM. :sparkles: :cake: :sparkles:\n"
] |
https://api.github.com/repos/psf/requests/issues/2872 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2872/labels{/name} | https://api.github.com/repos/psf/requests/issues/2872/comments | https://api.github.com/repos/psf/requests/issues/2872/events | https://github.com/psf/requests/issues/2872 | 116,211,092 | MDU6SXNzdWUxMTYyMTEwOTI= | 2,872 | Post request hangs in certain cases when body is a StringIO | {
"avatar_url": "https://avatars.githubusercontent.com/u/4674965?v=4",
"events_url": "https://api.github.com/users/braincore/events{/privacy}",
"followers_url": "https://api.github.com/users/braincore/followers",
"following_url": "https://api.github.com/users/braincore/following{/other_user}",
"gists_url": "h... | [] | closed | true | null | [] | null | 9 | 2015-11-10T21:56:24Z | 2021-09-08T21:00:44Z | 2015-11-11T07:52:49Z | NONE | resolved | This is related to a report for the [Dropbox Python SDK](https://github.com/dropbox/dropbox-sdk-python/issues/27).
The following hangs:
```
from StringIO import StringIO
s = StringIO()
s.write('hello') # This is seeked to the end
requests.post('http://www.google.com', data=s) # Hangs: A success would be a 405 error... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2872/reactions"
} | https://api.github.com/repos/psf/requests/issues/2872/timeline | null | completed | null | null | false | [
"Thanks for this report. This comes because we calculate the length of the StringIO, but don't account for where it is seeked to. \n\nAs I see it we have two options: we can either always `seek(0)` before sending a body, or we can use `tell()` to adjust the content length. \n\nOn balance, I think the first is proba... |
https://api.github.com/repos/psf/requests/issues/2871 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2871/labels{/name} | https://api.github.com/repos/psf/requests/issues/2871/comments | https://api.github.com/repos/psf/requests/issues/2871/events | https://github.com/psf/requests/issues/2871 | 116,122,060 | MDU6SXNzdWUxMTYxMjIwNjA= | 2,871 | GitHub release page lists the "latest release" as v2.5.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/501702?v=4",
"events_url": "https://api.github.com/users/edmorley/events{/privacy}",
"followers_url": "https://api.github.com/users/edmorley/followers",
"following_url": "https://api.github.com/users/edmorley/following{/other_user}",
"gists_url": "https... | [] | closed | true | null | [] | null | 6 | 2015-11-10T14:54:43Z | 2021-09-08T21:00:45Z | 2015-11-10T15:53:30Z | CONTRIBUTOR | resolved | On https://github.com/kennethreitz/requests/releases , the "latest release" label is next to v2.5.1, whereas the newest release is v2.8.1, which is hidden under the "Show 8 newer tags" link.
If newer release entries are missing because it's a hassle to transpose the release notes into each, perhaps just linking to the... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2871/reactions"
} | https://api.github.com/repos/psf/requests/issues/2871/timeline | null | completed | null | null | false | [
"Yeah, it's mostly annoying to transpose the notes. I'll do it now anyway. =)\n",
"@Lukasa let's just remove them. This is a hassle and we've had .... 4 bugs about this? It's worthless and it doesn't provide real value.\n",
"Removing them works for me; at least GitHub then defaults to just showing the tags, whi... |
https://api.github.com/repos/psf/requests/issues/2870 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2870/labels{/name} | https://api.github.com/repos/psf/requests/issues/2870/comments | https://api.github.com/repos/psf/requests/issues/2870/events | https://github.com/psf/requests/issues/2870 | 116,100,502 | MDU6SXNzdWUxMTYxMDA1MDI= | 2,870 | Unbundling logic still breaks downstream. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 29 | 2015-11-10T12:49:34Z | 2021-09-08T07:00:37Z | 2017-07-30T14:02:09Z | MEMBER | resolved | Originally reported by @fasaxc. Interested parties: @sigmavirus24 @dcramer @eriol @ralphbean @warsaw
We added support for a new form of unbundling logic in #2567. Unfortunately, this seems not to work properly. Specifically, the presence of requests in a system makes it impossible to catch urllib3 exceptions correctl... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2870/reactions"
} | https://api.github.com/repos/psf/requests/issues/2870/timeline | null | completed | null | null | false | [
"The issue I'm seeing is that, after importing first `urllib3.exceptions` then `requests.package.urllib3.exceptions`\n\n```\nsys.modules[\"urllib3\"].exceptions is not sys.modules[\"urllib3.exceptions\"]\nsys.modules[\"urllib3\"].exceptions is sys.modules[\"requests.packages.urllib3.exceptions\"]\n```\n\nImporting ... |
https://api.github.com/repos/psf/requests/issues/2869 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2869/labels{/name} | https://api.github.com/repos/psf/requests/issues/2869/comments | https://api.github.com/repos/psf/requests/issues/2869/events | https://github.com/psf/requests/pull/2869 | 116,090,030 | MDExOlB1bGxSZXF1ZXN0NTAyNDM3MDA= | 2,869 | unnest deep loop | {
"avatar_url": "https://avatars.githubusercontent.com/u/1508133?v=4",
"events_url": "https://api.github.com/users/miroli/events{/privacy}",
"followers_url": "https://api.github.com/users/miroli/followers",
"following_url": "https://api.github.com/users/miroli/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 7 | 2015-11-10T11:40:58Z | 2021-09-08T05:01:14Z | 2015-11-10T13:21:01Z | CONTRIBUTOR | resolved | Flat is better than nested. Instead of nesting `if` statements, check for the opposite early in the loop and `continue` if the opposite is the case.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2869/reactions"
} | https://api.github.com/repos/psf/requests/issues/2869/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2869.diff",
"html_url": "https://github.com/psf/requests/pull/2869",
"merged_at": "2015-11-10T13:21:01Z",
"patch_url": "https://github.com/psf/requests/pull/2869.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2869"
} | true | [
"Good idea @vienno!\n\nIf we're going to un-nest this, let's un-nest it the whole way. Want to break out the next nested couplet as well and use the same logic?\n",
"How about now @Lukasa ? I rewrote the third `if` statement as well, for consistency.\n",
"Thanks, much better! I have one small note, inline on th... |
https://api.github.com/repos/psf/requests/issues/2868 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2868/labels{/name} | https://api.github.com/repos/psf/requests/issues/2868/comments | https://api.github.com/repos/psf/requests/issues/2868/events | https://github.com/psf/requests/issues/2868 | 115,786,189 | MDU6SXNzdWUxMTU3ODYxODk= | 2,868 | Can't modify cookies from auth plugin | {
"avatar_url": "https://avatars.githubusercontent.com/u/416057?v=4",
"events_url": "https://api.github.com/users/jamielennox/events{/privacy}",
"followers_url": "https://api.github.com/users/jamielennox/followers",
"following_url": "https://api.github.com/users/jamielennox/following{/other_user}",
"gists_url... | [] | closed | true | null | [] | null | 7 | 2015-11-09T03:50:40Z | 2021-09-08T15:00:53Z | 2016-09-06T00:09:19Z | NONE | resolved | HI,
I'm writing an auth plugin in which I want to manipulate the cookies set by a response. Specifically in this case I need to use cookies for the auth exchange but i don't want them added to the session. When the response hooks and similar are finished the response is returned, the history examined and cookies merge... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2868/reactions"
} | https://api.github.com/repos/psf/requests/issues/2868/timeline | null | completed | null | null | false | [
"I'm sorry, it's not clear what exactly the bug is here. What function would you like that you don't have?\n",
"If I know @jamielennox, they're working on SAML auth plugin. Part of (some of) the SAML authentication flow(s) includes cookies being sent that aren't meant to be persisted on the session.\n\nI think wh... |
https://api.github.com/repos/psf/requests/issues/2867 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2867/labels{/name} | https://api.github.com/repos/psf/requests/issues/2867/comments | https://api.github.com/repos/psf/requests/issues/2867/events | https://github.com/psf/requests/issues/2867 | 115,776,920 | MDU6SXNzdWUxMTU3NzY5MjA= | 2,867 | How to deal with using requests and urllib3 together | {
"avatar_url": "https://avatars.githubusercontent.com/u/12321?v=4",
"events_url": "https://api.github.com/users/sjmh/events{/privacy}",
"followers_url": "https://api.github.com/users/sjmh/followers",
"following_url": "https://api.github.com/users/sjmh/following{/other_user}",
"gists_url": "https://api.github... | [] | closed | true | null | [] | null | 7 | 2015-11-09T01:37:31Z | 2021-09-08T21:00:46Z | 2015-11-09T03:09:21Z | NONE | resolved | Ran into an interesting issue in the past week while testing things out with SaltStack. ( SaltStack is a remote execution engine / cfg mgmt tool ). SaltStack uses requests internally.
However, one of the 'modules' you can use is python-etcd. python-etcd uses urllib3. But, because of request's wrapping of urllib3 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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2867/reactions"
} | https://api.github.com/repos/psf/requests/issues/2867/timeline | null | completed | null | null | false | [
"How are you installing requests and urllib3?\n",
"Via RPM ( both from RHEL's official repos for RHEL6 )\n\n```\n[root@alpha site-packages]# rpm -qa | grep urllib3\npython-urllib3-1.10.2-1.el6.noarch\n[root@alpha site-packages]# rpm -qa | grep requests\npython-requests-2.6.0-3.el6.noarch\n```\n",
"So this is a ... |
https://api.github.com/repos/psf/requests/issues/2866 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2866/labels{/name} | https://api.github.com/repos/psf/requests/issues/2866/comments | https://api.github.com/repos/psf/requests/issues/2866/events | https://github.com/psf/requests/issues/2866 | 115,669,814 | MDU6SXNzdWUxMTU2Njk4MTQ= | 2,866 | Better testing for chunked uploads. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 15 | 2015-11-07T14:29:59Z | 2021-09-08T18:00:59Z | 2016-04-11T20:29:02Z | MEMBER | resolved | We have a whole code branch that does chunked uploads that is not and has never been tested. That's a problem, because sometimes it breaks and we don't notice (#2861). I'd like to add more testing for chunked uploads.
However, we can't use httpbin to do this testing. This is because the WSGI spec staunchly refuses to ... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2866/reactions"
} | https://api.github.com/repos/psf/requests/issues/2866/timeline | null | completed | null | null | false | [
"One possibility would be adapting urllib3's solution to our case. This new server we'd make doesn't need to support the whole HTTP protocol, because we just need it for the chunked transfer encoding thing, right? \n",
"I think we wouldn't actually use a proper server at all, just a pair of sockets.\n",
"Right,... |
https://api.github.com/repos/psf/requests/issues/2865 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2865/labels{/name} | https://api.github.com/repos/psf/requests/issues/2865/comments | https://api.github.com/repos/psf/requests/issues/2865/events | https://github.com/psf/requests/issues/2865 | 115,634,401 | MDU6SXNzdWUxMTU2MzQ0MDE= | 2,865 | Can't pass boolean parameter in body of POST request when using multipart encoding | {
"avatar_url": "https://avatars.githubusercontent.com/u/604138?v=4",
"events_url": "https://api.github.com/users/Aerlinger/events{/privacy}",
"followers_url": "https://api.github.com/users/Aerlinger/followers",
"following_url": "https://api.github.com/users/Aerlinger/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 2 | 2015-11-07T05:05:10Z | 2021-09-08T21:00:46Z | 2015-11-07T07:25:27Z | NONE | resolved | Here's a short example of what I'm experiencing:
``` python
params = {
"someBoolean": True
}
response = requests.post(endpoint, data=params, files={'input_file', open(fileobj, 'rb')})
```
The issue is that requests encodes the `someBoolean` parameter as the string value `"True"` rather than the boolean literal `true... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2865/reactions"
} | https://api.github.com/repos/psf/requests/issues/2865/timeline | null | completed | null | null | false | [
"The `data` argument does not encode as JSON: it encodes as form-encoded data. This has no `true` literal. If you want to encode json, you'll want to use the `json` argument, but you cannot combine that argument with the `files` argument. Instead, try this:\n\n``` python\nimport json\nresponse = requests.post(endpo... |
https://api.github.com/repos/psf/requests/issues/2864 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2864/labels{/name} | https://api.github.com/repos/psf/requests/issues/2864/comments | https://api.github.com/repos/psf/requests/issues/2864/events | https://github.com/psf/requests/pull/2864 | 115,587,756 | MDExOlB1bGxSZXF1ZXN0NTAwMDM5MDY= | 2,864 | Assure session is closed on exception. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1945440?v=4",
"events_url": "https://api.github.com/users/aartur/events{/privacy}",
"followers_url": "https://api.github.com/users/aartur/followers",
"following_url": "https://api.github.com/users/aartur/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 5 | 2015-11-06T20:59:03Z | 2021-09-08T05:01:15Z | 2015-11-06T21:02:31Z | CONTRIBUTOR | resolved | As I noticed in #2862 session is not closed on exception when using high-level API (not sessions). Here's a fix for it.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2864/reactions"
} | https://api.github.com/repos/psf/requests/issues/2864/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2864.diff",
"html_url": "https://github.com/psf/requests/pull/2864",
"merged_at": "2015-11-06T21:02:30Z",
"patch_url": "https://github.com/psf/requests/pull/2864.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2864"
} | true | [
"Looks good to me! Want to add yourself to AUTHORS?\n",
"s/AUTHORS/CONTRIBUTORS/\n",
"It's too small, next time ;).\n",
"Ok! :sparkles: :cake: :sparkles:\n",
"Thanks @aartur \n"
] |
https://api.github.com/repos/psf/requests/issues/2863 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2863/labels{/name} | https://api.github.com/repos/psf/requests/issues/2863/comments | https://api.github.com/repos/psf/requests/issues/2863/events | https://github.com/psf/requests/issues/2863 | 115,547,977 | MDU6SXNzdWUxMTU1NDc5Nzc= | 2,863 | Multiple requests on a single Session with different client certs behave incorrectly | {
"avatar_url": "https://avatars.githubusercontent.com/u/772?v=4",
"events_url": "https://api.github.com/users/alex/events{/privacy}",
"followers_url": "https://api.github.com/users/alex/followers",
"following_url": "https://api.github.com/users/alex/following{/other_user}",
"gists_url": "https://api.github.c... | [] | closed | true | null | [] | null | 18 | 2015-11-06T17:10:13Z | 2021-09-08T08:00:34Z | 2017-07-25T22:34:55Z | MEMBER | resolved | Consider the following code:
``` py
import requests
s = requests.session()
s.get("https://host", cert="path/to/cert1.pem")
s.get("https://host", cert="path/to/cert2.pem")
```
`requests` will silently reuse the same connection for both connections, which is incorrect.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_ur... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2863/reactions"
} | https://api.github.com/repos/psf/requests/issues/2863/timeline | null | completed | null | null | false | [
"Yeah, this is not good. We have a similar problem if a user switches the 'verify' flag as well, so we need to fix that.\n",
"So, @shazow, I think really we need to adjust the connection pooling logic in urllib3 a bit. Keying connections off the URL isn't really enough: for HTTPS connections we need to key them o... |
https://api.github.com/repos/psf/requests/issues/2862 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2862/labels{/name} | https://api.github.com/repos/psf/requests/issues/2862/comments | https://api.github.com/repos/psf/requests/issues/2862/events | https://github.com/psf/requests/issues/2862 | 115,507,408 | MDU6SXNzdWUxMTU1MDc0MDg= | 2,862 | Big memory leaks on PyPy (simplest usage) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1945440?v=4",
"events_url": "https://api.github.com/users/aartur/events{/privacy}",
"followers_url": "https://api.github.com/users/aartur/followers",
"following_url": "https://api.github.com/users/aartur/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 8 | 2015-11-06T13:44:32Z | 2021-09-08T21:00:47Z | 2015-11-06T15:51:06Z | CONTRIBUTOR | resolved | The simplest usage of `requests` causes big memory leaks on PyPy (2.6.1, 4.0.0) and newest requests (2.8.1). The following script:
```
import requests
import time
import sys
def main():
while True:
r = requests.get('https://www.bing.com/')
time.sleep(0.1)
sys.stderr.write('.')
sys... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2862/reactions"
} | https://api.github.com/repos/psf/requests/issues/2862/timeline | null | completed | null | null | false | [
"This is quite puzzling. I ran the script for a long time, then broke into pdb.\n\n``` python\n(Pdb) objgraph.show_most_common_types(limit=20)\nstr 18275\nfunction 5946\nint 5812\ncode 4013\ntuple 3548\nbuiltin-code 2646\ndict 880\nunic... |
https://api.github.com/repos/psf/requests/issues/2861 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2861/labels{/name} | https://api.github.com/repos/psf/requests/issues/2861/comments | https://api.github.com/repos/psf/requests/issues/2861/events | https://github.com/psf/requests/pull/2861 | 115,349,215 | MDExOlB1bGxSZXF1ZXN0NDk4NjQ3NTE= | 2,861 | Fix breakage introduced by 8f591682 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 12 | 2015-11-05T18:55:57Z | 2021-09-08T06:00:47Z | 2015-11-07T17:50:50Z | MEMBER | resolved | Turns out we broke chunked uploads in 8f591682e6a901baf0cc8a0393b5930252f0318a. I discovered this while investigating #2215.
While we were here, I added a test that would at least have caught errors as egregious as this one.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2861/reactions"
} | https://api.github.com/repos/psf/requests/issues/2861/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2861.diff",
"html_url": "https://github.com/psf/requests/pull/2861",
"merged_at": "2015-11-07T17:50:50Z",
"patch_url": "https://github.com/psf/requests/pull/2861.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2861"
} | true | [
"To note: this breakage did not make it into any shipped version of requests, so we don't need to schedule a patch release for this.\n",
"Why is the build failing?\n",
"Good question. The test behaves fine on my\nMac, but it's a tricky one because chunked encoding and WSGI don't necessarily play nice. \n\n> On ... |
https://api.github.com/repos/psf/requests/issues/2860 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2860/labels{/name} | https://api.github.com/repos/psf/requests/issues/2860/comments | https://api.github.com/repos/psf/requests/issues/2860/events | https://github.com/psf/requests/issues/2860 | 115,309,255 | MDU6SXNzdWUxMTUzMDkyNTU= | 2,860 | Replace missing test for threaded HTTP digest auth. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | false | null | [] | null | 1 | 2015-11-05T15:34:22Z | 2024-05-19T18:37:30Z | 2024-05-19T18:37:30Z | MEMBER | null | This test was removed as part of #2859, but we should aim to put it back in some form.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/18519037?v=4",
"events_url": "https://api.github.com/users/sethmlarson/events{/privacy}",
"followers_url": "https://api.github.com/users/sethmlarson/followers",
"following_url": "https://api.github.com/users/sethmlarson/following{/other_user}",
"gists_u... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2860/reactions"
} | https://api.github.com/repos/psf/requests/issues/2860/timeline | null | completed | null | null | false | [
"Should this now be closed with the recent progress? #2897\n"
] |
https://api.github.com/repos/psf/requests/issues/2859 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2859/labels{/name} | https://api.github.com/repos/psf/requests/issues/2859/comments | https://api.github.com/repos/psf/requests/issues/2859/events | https://github.com/psf/requests/pull/2859 | 115,286,845 | MDExOlB1bGxSZXF1ZXN0NDk4MjU1NzM= | 2,859 | Move test suite offline using pytest-httpbin | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 4 | 2015-11-05T13:48:32Z | 2021-09-08T06:00:48Z | 2015-11-05T15:37:22Z | MEMBER | resolved | Resolves #2184, and should allow us to move back to Travis for our testing.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2859/reactions"
} | https://api.github.com/repos/psf/requests/issues/2859/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2859.diff",
"html_url": "https://github.com/psf/requests/pull/2859",
"merged_at": "2015-11-05T15:37:22Z",
"patch_url": "https://github.com/psf/requests/pull/2859.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2859"
} | true | [
"There _ought_ to be a lot of improvements to doing this. Tests should be a lot closer to reproducible, and the runtime should improve greatly. This is still not really how I want this test suite to look, but it's a _lot_ closer.\n",
"One request, then I'll press the big green button. :)\n\nAlternatively, we can ... |
https://api.github.com/repos/psf/requests/issues/2858 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2858/labels{/name} | https://api.github.com/repos/psf/requests/issues/2858/comments | https://api.github.com/repos/psf/requests/issues/2858/events | https://github.com/psf/requests/pull/2858 | 115,282,668 | MDExOlB1bGxSZXF1ZXN0NDk4MjI4MjA= | 2,858 | Add support for a directory of CAs | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | {
"closed_at": "2016-01-05T17:14:26Z",
"closed_issues": 2,
"created_at": "2015-10-12T10:32:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Luka... | 0 | 2015-11-05T13:22:14Z | 2021-09-08T06:00:47Z | 2015-11-07T21:39:41Z | MEMBER | resolved | Resolves #2659.
This would have to go in 2.9.0.
Once again, our test suite isn't really in a place that lets us effectively test this.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2858/reactions"
} | https://api.github.com/repos/psf/requests/issues/2858/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2858.diff",
"html_url": "https://github.com/psf/requests/pull/2858",
"merged_at": "2015-11-07T21:39:41Z",
"patch_url": "https://github.com/psf/requests/pull/2858.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2858"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/2857 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2857/labels{/name} | https://api.github.com/repos/psf/requests/issues/2857/comments | https://api.github.com/repos/psf/requests/issues/2857/events | https://github.com/psf/requests/issues/2857 | 115,210,530 | MDU6SXNzdWUxMTUyMTA1MzA= | 2,857 | Expose expires attribute of cookie in class RequestsCookieJar | {
"avatar_url": "https://avatars.githubusercontent.com/u/748271?v=4",
"events_url": "https://api.github.com/users/ammsa/events{/privacy}",
"followers_url": "https://api.github.com/users/ammsa/followers",
"following_url": "https://api.github.com/users/ammsa/following{/other_user}",
"gists_url": "https://api.gi... | [] | closed | true | null | [] | null | 1 | 2015-11-05T05:04:18Z | 2021-09-08T21:00:45Z | 2015-11-09T09:25:49Z | NONE | resolved | Right now, the class `RequestsCookieJar` class methods only expose `name` and `value` attributes of its cookies. It will be useful to have a method that checks if any of the cookies in `RequestsCookieJar` are expired.
Like `is_expired()` would return True if any cookies are expired otherwise false
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2857/reactions"
} | https://api.github.com/repos/psf/requests/issues/2857/timeline | null | completed | null | null | false | [
"The `RequestsCookieJar` is a subclass of the standard library's [`cookiejar`](https://docs.python.org/2/library/cookielib.html#cookiejar-and-filecookiejar-objects), which means that it behaves exactly like that class. In particular, you can get the actual cookies themselves by iterating over it. This means the met... |
https://api.github.com/repos/psf/requests/issues/2856 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2856/labels{/name} | https://api.github.com/repos/psf/requests/issues/2856/comments | https://api.github.com/repos/psf/requests/issues/2856/events | https://github.com/psf/requests/issues/2856 | 114,923,674 | MDU6SXNzdWUxMTQ5MjM2NzQ= | 2,856 | Session level default timeout | {
"avatar_url": "https://avatars.githubusercontent.com/u/2048526?v=4",
"events_url": "https://api.github.com/users/bodenr/events{/privacy}",
"followers_url": "https://api.github.com/users/bodenr/followers",
"following_url": "https://api.github.com/users/bodenr/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 1 | 2015-11-03T22:20:15Z | 2021-09-08T21:00:51Z | 2015-11-03T22:31:14Z | NONE | resolved | Best I can tell, today there is no way to set a default timeout at the Session level. That is, I want to create a session and give it a default timeout which should be used on any request() for the session if no timeout is given on the actual **kwargs of the request invocation.
Example:
``` python
session = requests.... | {
"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_... | {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/psf/requests/issues/2856/reactions"
} | https://api.github.com/repos/psf/requests/issues/2856/timeline | null | completed | null | null | false | [
"Hi @bodenr thanks for using requests and stopping by with this feature request.\n\nThe library strives to make very specific divides in what is appropriate to add where. Timeout values being specified on a session do not make very much sense to the project although it's plausible for you to add some code to do thi... |
https://api.github.com/repos/psf/requests/issues/2855 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2855/labels{/name} | https://api.github.com/repos/psf/requests/issues/2855/comments | https://api.github.com/repos/psf/requests/issues/2855/events | https://github.com/psf/requests/pull/2855 | 114,922,051 | MDExOlB1bGxSZXF1ZXN0NDk2MTk3NDc= | 2,855 | Added Travis support with tox | {
"avatar_url": "https://avatars.githubusercontent.com/u/2029180?v=4",
"events_url": "https://api.github.com/users/ZuluPro/events{/privacy}",
"followers_url": "https://api.github.com/users/ZuluPro/followers",
"following_url": "https://api.github.com/users/ZuluPro/following{/other_user}",
"gists_url": "https:/... | [] | closed | true | null | [] | null | 1 | 2015-11-03T22:10:40Z | 2021-09-08T06:00:48Z | 2015-11-03T22:16:50Z | NONE | resolved | - Added `.travis.yml`
I think it is useful for every contributors to have a online tool for test.
I added Travis' badge in `README.rst``
Maybe you want to add Coveralls support in future ?
- Added `tox.ini`
I implement tox usage for simplify tests across Python versions.
Maybe you want to add documentation te... | {
"avatar_url": "https://avatars.githubusercontent.com/u/2029180?v=4",
"events_url": "https://api.github.com/users/ZuluPro/events{/privacy}",
"followers_url": "https://api.github.com/users/ZuluPro/followers",
"following_url": "https://api.github.com/users/ZuluPro/following{/other_user}",
"gists_url": "https:/... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2855/reactions"
} | https://api.github.com/repos/psf/requests/issues/2855/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2855.diff",
"html_url": "https://github.com/psf/requests/pull/2855",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2855.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2855"
} | true | [
"Thanks @ZuluPro but we already use an external Jenkins server that we maintain. Travis proved to be unstable for our needs.\n\nCheers!\n"
] |
https://api.github.com/repos/psf/requests/issues/2854 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2854/labels{/name} | https://api.github.com/repos/psf/requests/issues/2854/comments | https://api.github.com/repos/psf/requests/issues/2854/events | https://github.com/psf/requests/issues/2854 | 114,087,648 | MDU6SXNzdWUxMTQwODc2NDg= | 2,854 | Bad default parameters to iter_content | {
"avatar_url": "https://avatars.githubusercontent.com/u/1865411?v=4",
"events_url": "https://api.github.com/users/gibiansky/events{/privacy}",
"followers_url": "https://api.github.com/users/gibiansky/followers",
"following_url": "https://api.github.com/users/gibiansky/following{/other_user}",
"gists_url": "h... | [] | closed | true | null | [] | null | 2 | 2015-10-29T16:20:18Z | 2021-09-08T21:00:52Z | 2015-10-29T22:03:44Z | NONE | resolved | Apologies if this is a duplicate or not a bug – I ran into this recently and figured I should report it.
`iter_content` takes a `chunk_size` argument, which defaults to 1. Various code snippets on the internet call `request.iter_content()`. This is incredibly inefficient, because it is using a buffer size of 1 _byte_.... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2854/reactions"
} | https://api.github.com/repos/psf/requests/issues/2854/timeline | null | completed | null | null | false | [
"See https://github.com/kennethreitz/requests/issues/844 please\n",
"Yeah, this is an outstanding problem that we haven't gotten around to resolving yet. However, it's a dupe of #844.\n"
] |
https://api.github.com/repos/psf/requests/issues/2853 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2853/labels{/name} | https://api.github.com/repos/psf/requests/issues/2853/comments | https://api.github.com/repos/psf/requests/issues/2853/events | https://github.com/psf/requests/issues/2853 | 113,921,079 | MDU6SXNzdWUxMTM5MjEwNzk= | 2,853 | Problem with verbose logging | {
"avatar_url": "https://avatars.githubusercontent.com/u/6306068?v=4",
"events_url": "https://api.github.com/users/troy-perkins/events{/privacy}",
"followers_url": "https://api.github.com/users/troy-perkins/followers",
"following_url": "https://api.github.com/users/troy-perkins/following{/other_user}",
"gists... | [] | closed | true | null | [] | null | 3 | 2015-10-28T21:01:24Z | 2021-09-08T21:00:52Z | 2015-10-28T21:03:45Z | NONE | resolved | I am trying to enable verbose logging with my request string and I am getting the following error:
"request() got an unexpected keyword argument config"
I have tried searching but have not found a fix for this and I followed the following directions:
> > > my_config = {'verbose': sys.stderr}
> > > requests.get('http:... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2853/reactions"
} | https://api.github.com/repos/psf/requests/issues/2853/timeline | null | completed | null | null | false | [
"Please consult our documentation: The section immediately above [the Licensing section](http://docs.python-requests.org/en/latest/api/?highlight=log#licensing) explains how to enable verbose logging in versions of requests 1.0.0 and greater.\n",
"Also in the future, please ask all questions on [StackOverflow](ht... |
https://api.github.com/repos/psf/requests/issues/2852 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2852/labels{/name} | https://api.github.com/repos/psf/requests/issues/2852/comments | https://api.github.com/repos/psf/requests/issues/2852/events | https://github.com/psf/requests/issues/2852 | 113,901,630 | MDU6SXNzdWUxMTM5MDE2MzA= | 2,852 | OpenSSL.SSL.SysCallError: (10054, 'WSAECONNRESET') | {
"avatar_url": "https://avatars.githubusercontent.com/u/325813?v=4",
"events_url": "https://api.github.com/users/steveoh/events{/privacy}",
"followers_url": "https://api.github.com/users/steveoh/followers",
"following_url": "https://api.github.com/users/steveoh/following{/other_user}",
"gists_url": "https://... | [] | closed | true | null | [] | null | 11 | 2015-10-28T19:16:24Z | 2021-09-08T21:00:52Z | 2015-10-29T00:17:41Z | NONE | resolved | This error is being thrown after making around 1500 successful quests to an api of 3200 total.
The api returns a 204 of No content and I check for that status code and add it to another list to retry later.
What are the possible reasons for r = requests.put("https://my.api/update") might toss this error?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2852/reactions"
} | https://api.github.com/repos/psf/requests/issues/2852/timeline | null | completed | null | null | false | [
"I suspect this will be fixed when https://github.com/shazow/urllib3/pull/729#issuecomment-151929787 is merged and urllib3 is updated for the next requests release.\n",
"```\nTraceback (most recent call last):\n File \"..\\requests-2.8.1-py2.7.egg\\requests\\api.py\", line 122, in put\n return request('put', ... |
https://api.github.com/repos/psf/requests/issues/2851 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2851/labels{/name} | https://api.github.com/repos/psf/requests/issues/2851/comments | https://api.github.com/repos/psf/requests/issues/2851/events | https://github.com/psf/requests/issues/2851 | 113,559,868 | MDU6SXNzdWUxMTM1NTk4Njg= | 2,851 | Documentation Problem? | {
"avatar_url": "https://avatars.githubusercontent.com/u/7996484?v=4",
"events_url": "https://api.github.com/users/djchou/events{/privacy}",
"followers_url": "https://api.github.com/users/djchou/followers",
"following_url": "https://api.github.com/users/djchou/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 5 | 2015-10-27T11:13:53Z | 2021-09-08T21:00:53Z | 2015-10-27T12:53:10Z | NONE | resolved | When I run the following code from requests documentation, I get a 401 response.
import requests
r = requests.get('https://api.github.com', auth=('user', 'pass'))
Given that this is the quick start code for requests, is there something that needs to be updated?
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2851/reactions"
} | https://api.github.com/repos/psf/requests/issues/2851/timeline | null | completed | null | null | false | [
"@djchou In this context, `user` and `pass` are placeholder strings to be replaced by your own Github username and password.\n",
"Yes, I replaced them with my user pass and still had the same result. \n\n> On Oct 27, 2015, at 5:53 AM, Cory Benfield notifications@github.com wrote:\n> \n> @djchou In this context, u... |
https://api.github.com/repos/psf/requests/issues/2850 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2850/labels{/name} | https://api.github.com/repos/psf/requests/issues/2850/comments | https://api.github.com/repos/psf/requests/issues/2850/events | https://github.com/psf/requests/issues/2850 | 113,456,222 | MDU6SXNzdWUxMTM0NTYyMjI= | 2,850 | Connection reset by peer problem. | {
"avatar_url": "https://avatars.githubusercontent.com/u/459869?v=4",
"events_url": "https://api.github.com/users/pcsysen/events{/privacy}",
"followers_url": "https://api.github.com/users/pcsysen/followers",
"following_url": "https://api.github.com/users/pcsysen/following{/other_user}",
"gists_url": "https://... | [] | closed | true | null | [] | null | 20 | 2015-10-26T21:34:56Z | 2021-09-08T17:05:20Z | 2015-11-09T09:26:04Z | NONE | resolved | Hi, we are using slumber to setup a smoke test against our server(django + uwsgi). We started to see this "connection reset by peer" error after we added the "content-length" in the response header. It only happens occasionally. However it never happens when we don't include content-length in the response header, at le... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2850/reactions"
} | https://api.github.com/repos/psf/requests/issues/2850/timeline | null | completed | null | null | false | [
"Python will calculate the content-length for you. It's very likely your content-length is incorrect and that's causing your issue. Without more details about how to reproduce this, version information, or example code causing this, I'm very tempted to close this outright.\n",
"in our settings.py, we have\n\n```\... |
https://api.github.com/repos/psf/requests/issues/2849 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2849/labels{/name} | https://api.github.com/repos/psf/requests/issues/2849/comments | https://api.github.com/repos/psf/requests/issues/2849/events | https://github.com/psf/requests/pull/2849 | 113,384,052 | MDExOlB1bGxSZXF1ZXN0NDg3NTY0MDE= | 2,849 | Add 511 Network Authentication Required status code | {
"avatar_url": "https://avatars.githubusercontent.com/u/1740816?v=4",
"events_url": "https://api.github.com/users/annp89/events{/privacy}",
"followers_url": "https://api.github.com/users/annp89/followers",
"following_url": "https://api.github.com/users/annp89/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 1 | 2015-10-26T15:43:45Z | 2021-09-08T06:00:49Z | 2015-10-26T15:58:01Z | NONE | resolved | Addresses issue: https://github.com/kennethreitz/requests/issues/2847
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2849/reactions"
} | https://api.github.com/repos/psf/requests/issues/2849/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2849.diff",
"html_url": "https://github.com/psf/requests/pull/2849",
"merged_at": "2015-10-26T15:58:01Z",
"patch_url": "https://github.com/psf/requests/pull/2849.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2849"
} | true | [
"Thanks @annp89 !\n"
] |
https://api.github.com/repos/psf/requests/issues/2848 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2848/labels{/name} | https://api.github.com/repos/psf/requests/issues/2848/comments | https://api.github.com/repos/psf/requests/issues/2848/events | https://github.com/psf/requests/issues/2848 | 113,382,287 | MDU6SXNzdWUxMTMzODIyODc= | 2,848 | urllib3 SSL errors in 2.8.x | {
"avatar_url": "https://avatars.githubusercontent.com/u/188962?v=4",
"events_url": "https://api.github.com/users/flupke/events{/privacy}",
"followers_url": "https://api.github.com/users/flupke/followers",
"following_url": "https://api.github.com/users/flupke/following{/other_user}",
"gists_url": "https://api... | [] | closed | true | null | [] | null | 1 | 2015-10-26T15:35:15Z | 2021-09-08T21:00:53Z | 2015-10-26T20:48:37Z | NONE | resolved | We recently tried to upgrade to requests 2.8.1 and have been touched by this urllib3 issue: https://github.com/shazow/urllib3/issues/717
Downgrading to 2.7.0 resolves it.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2848/reactions"
} | https://api.github.com/repos/psf/requests/issues/2848/timeline | null | completed | null | null | false | [
"@flupke The urllib3 and requests projects work together closely: we're entirely aware of the bug that you're encountering, but we won't be able to fix it until a new urllib3 release comes out.\n"
] |
https://api.github.com/repos/psf/requests/issues/2847 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2847/labels{/name} | https://api.github.com/repos/psf/requests/issues/2847/comments | https://api.github.com/repos/psf/requests/issues/2847/events | https://github.com/psf/requests/issues/2847 | 113,300,514 | MDU6SXNzdWUxMTMzMDA1MTQ= | 2,847 | Add 511 Network Authentication Required status code for completeness | {
"avatar_url": "https://avatars.githubusercontent.com/u/1740816?v=4",
"events_url": "https://api.github.com/users/annp89/events{/privacy}",
"followers_url": "https://api.github.com/users/annp89/followers",
"following_url": "https://api.github.com/users/annp89/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 3 | 2015-10-26T07:37:48Z | 2021-09-08T21:00:53Z | 2015-10-26T15:58:14Z | NONE | resolved | Based on http://tools.ietf.org/html/rfc6585, looks like all the other status codes mentioned in that document are included except for 511. Any specific reason/concern?
I'd be happy to open a pull request with the following additional line if it looks reasonable to you.
```
511: ('network_authentication_required', 'ne... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2847/reactions"
} | https://api.github.com/repos/psf/requests/issues/2847/timeline | null | completed | null | null | false | [
"Please do @annp89. I think it was just an error code that we happened to miss. I don't think there was any reason or concern we had with adding it.\n\nCheers!\n",
"Awesome! Will do shortly :)\n",
"Closed by #2849 \n"
] |
https://api.github.com/repos/psf/requests/issues/2846 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2846/labels{/name} | https://api.github.com/repos/psf/requests/issues/2846/comments | https://api.github.com/repos/psf/requests/issues/2846/events | https://github.com/psf/requests/issues/2846 | 113,267,959 | MDU6SXNzdWUxMTMyNjc5NTk= | 2,846 | HTTP PROXY password contains '#' failed to connect | {
"avatar_url": "https://avatars.githubusercontent.com/u/3996876?v=4",
"events_url": "https://api.github.com/users/bonfy/events{/privacy}",
"followers_url": "https://api.github.com/users/bonfy/followers",
"following_url": "https://api.github.com/users/bonfy/following{/other_user}",
"gists_url": "https://api.g... | [] | closed | true | null | [] | null | 2 | 2015-10-26T01:15:04Z | 2021-09-08T21:00:54Z | 2015-10-26T02:01:59Z | NONE | resolved | ``` python
import requests
PROXIES = {
'http':'http://{usr}:{pwd}@proxy:port'.format(usr = 'XXX',pwd = 'XXX#XXX'),
}
url = 'http://www.sina.com'
r = requests.get(url, proxies = PROXIES)
print r.text
```
with error :
Traceback (most recent call last):
File "autohome.py", line 11, in <module>
r = requests.ge... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2846/reactions"
} | https://api.github.com/repos/psf/requests/issues/2846/timeline | null | completed | null | null | false | [
"Since the proxy URL needs to be a valid URL, you'll need to URL encode any special characters in the credentials yourself before you put them in an URL - otherwise, the `#` will be interpreted as a fragment identifier, in this case by `urllib3`'s [`parse_url()`](https://github.com/kennethreitz/requests/blob/v2.2.1... |
https://api.github.com/repos/psf/requests/issues/2845 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2845/labels{/name} | https://api.github.com/repos/psf/requests/issues/2845/comments | https://api.github.com/repos/psf/requests/issues/2845/events | https://github.com/psf/requests/pull/2845 | 113,009,220 | MDExOlB1bGxSZXF1ZXN0NDg1NzM2MTE= | 2,845 | Fix issue #2844 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1894766?v=4",
"events_url": "https://api.github.com/users/akhomchenko/events{/privacy}",
"followers_url": "https://api.github.com/users/akhomchenko/followers",
"following_url": "https://api.github.com/users/akhomchenko/following{/other_user}",
"gists_ur... | [] | closed | true | null | [] | null | 1 | 2015-10-23T12:23:19Z | 2021-09-08T06:00:50Z | 2015-10-23T12:24:36Z | CONTRIBUTOR | resolved | Closes https://github.com/kennethreitz/requests/issues/2844
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2845/reactions"
} | https://api.github.com/repos/psf/requests/issues/2845/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2845.diff",
"html_url": "https://github.com/psf/requests/pull/2845",
"merged_at": "2015-10-23T12:24:36Z",
"patch_url": "https://github.com/psf/requests/pull/2845.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2845"
} | true | [
"\\o/ Looks good to me! :cake: :sparkles:\n"
] |
https://api.github.com/repos/psf/requests/issues/2844 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2844/labels{/name} | https://api.github.com/repos/psf/requests/issues/2844/comments | https://api.github.com/repos/psf/requests/issues/2844/events | https://github.com/psf/requests/issues/2844 | 113,001,924 | MDU6SXNzdWUxMTMwMDE5MjQ= | 2,844 | _encode_params return bytes that break urlencode | {
"avatar_url": "https://avatars.githubusercontent.com/u/1894766?v=4",
"events_url": "https://api.github.com/users/akhomchenko/events{/privacy}",
"followers_url": "https://api.github.com/users/akhomchenko/followers",
"following_url": "https://api.github.com/users/akhomchenko/following{/other_user}",
"gists_ur... | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 117744,
"name": "Bug",
"node_id": "MDU6TGFiZWwxMTc3NDQ=",
"url": "https://api.github.com/repos/psf/requests/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": null,
"id": 191274,
"... | closed | true | null | [] | {
"closed_at": "2016-01-05T17:14:26Z",
"closed_issues": 2,
"created_at": "2015-10-12T10:32:11Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Luka... | 8 | 2015-10-23T11:27:22Z | 2021-09-08T20:00:55Z | 2015-10-23T12:24:36Z | CONTRIBUTOR | resolved | Simple example:
```
import requests
r = requests.get('http://python.org', params=b'test=foo')
print(r.status_code)
```
Trace:
```
Traceback (most recent call last):
... skip ...
url = requote_uri(urlunparse([scheme, netloc, path, None, query, fragment]))
File "C:\Python35\lib\urllib\parse.py", line 383, in... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2844/reactions"
} | https://api.github.com/repos/psf/requests/issues/2844/timeline | null | completed | null | null | false | [
"I think what we need to do here is to change `encode_params` to make sure that it calls `to_native_string` on its argument before returning it. This seems like a bug we can fix pretty swiftly, and is well suited to a new contributor, so I'll mark this as `Contributor Friendly`.\n",
"This fix seems completely bro... |
https://api.github.com/repos/psf/requests/issues/2843 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2843/labels{/name} | https://api.github.com/repos/psf/requests/issues/2843/comments | https://api.github.com/repos/psf/requests/issues/2843/events | https://github.com/psf/requests/pull/2843 | 112,988,165 | MDExOlB1bGxSZXF1ZXN0NDg1NjA0MjU= | 2,843 | Timeout used by `resolve_redirects` generator can now depend on URL | {
"avatar_url": "https://avatars.githubusercontent.com/u/368123?v=4",
"events_url": "https://api.github.com/users/tristan0x/events{/privacy}",
"followers_url": "https://api.github.com/users/tristan0x/followers",
"following_url": "https://api.github.com/users/tristan0x/following{/other_user}",
"gists_url": "ht... | [] | closed | true | null | [] | null | 3 | 2015-10-23T09:48:32Z | 2021-09-08T06:00:51Z | 2015-10-23T10:24:13Z | NONE | resolved | `timeout` parameter given to the `Session::resolve_redirects` member method
can be a `callable` object taking the URL in parameter.
It allows you to specify different timeout values for URLs encountered
by the generator.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2843/reactions"
} | https://api.github.com/repos/psf/requests/issues/2843/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2843.diff",
"html_url": "https://github.com/psf/requests/pull/2843",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2843.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2843"
} | true | [
"How is it expected that you'd use this? By setting `allow_redirects=False` and calling `resolve_redirects` manually?\n",
"Yes exactly!\n",
"Ok. =)\n\nSo, generally speaking, we don't allow the parameters to `resolve_redirects` to be different to those that you can pass to `requests.*`: it just leads to too muc... |
https://api.github.com/repos/psf/requests/issues/2842 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2842/labels{/name} | https://api.github.com/repos/psf/requests/issues/2842/comments | https://api.github.com/repos/psf/requests/issues/2842/events | https://github.com/psf/requests/issues/2842 | 112,891,328 | MDU6SXNzdWUxMTI4OTEzMjg= | 2,842 | PEP8 compliance | {
"avatar_url": "https://avatars.githubusercontent.com/u/3768896?v=4",
"events_url": "https://api.github.com/users/pathcl/events{/privacy}",
"followers_url": "https://api.github.com/users/pathcl/followers",
"following_url": "https://api.github.com/users/pathcl/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | null | [] | null | 1 | 2015-10-22T21:04:31Z | 2021-09-08T21:00:56Z | 2015-10-22T21:08:20Z | NONE | resolved | Hello,
I've just forked requests and tried flake8 on it.
1 E122 continuation line missing indentation or outdented
1 E127 continuation line over-indented for visual indent
1 E129 visually indented line with same indent as next logical line
1 E401 multiple imports on one line
1 E713 test ... | {
"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_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2842/reactions"
} | https://api.github.com/repos/psf/requests/issues/2842/timeline | null | completed | null | null | false | [
"Please check old issues before opening new ones.\n- https://github.com/kennethreitz/requests/issues/1899\n- https://github.com/kennethreitz/requests/pull/2298\n- https://github.com/kennethreitz/requests/pull/1964\n\nThis project does not follow PEP-0008.\n"
] |
https://api.github.com/repos/psf/requests/issues/2841 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2841/labels{/name} | https://api.github.com/repos/psf/requests/issues/2841/comments | https://api.github.com/repos/psf/requests/issues/2841/events | https://github.com/psf/requests/issues/2841 | 112,567,994 | MDU6SXNzdWUxMTI1Njc5OTQ= | 2,841 | test_connection_error_invalid_domain and test_connection_error_invalid_port fail with proxies | {
"avatar_url": "https://avatars.githubusercontent.com/u/1009685?v=4",
"events_url": "https://api.github.com/users/frispete/events{/privacy}",
"followers_url": "https://api.github.com/users/frispete/followers",
"following_url": "https://api.github.com/users/frispete/following{/other_user}",
"gists_url": "http... | [] | closed | true | null | [] | null | 2 | 2015-10-21T11:40:16Z | 2021-09-08T12:01:08Z | 2017-01-24T18:26:05Z | NONE | resolved | testing should handle environments with proxies consciously, otherwise these tests fail:
``` ======================================================================
ERROR: test_connection_error_invalid_domain (__main__.RequestsTestCase)
Connecting to an unknown domain should raise a ConnectionError
--------------------... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2841/reactions"
} | https://api.github.com/repos/psf/requests/issues/2841/timeline | null | completed | null | null | false | [
"Yeah, this is probably true. I suspect we'll fix it by moving to an entirely offline test suite though.\n",
"Neither of these tests exist anymore, so I think this can be closed out."
] |
https://api.github.com/repos/psf/requests/issues/2840 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2840/labels{/name} | https://api.github.com/repos/psf/requests/issues/2840/comments | https://api.github.com/repos/psf/requests/issues/2840/events | https://github.com/psf/requests/issues/2840 | 112,567,289 | MDU6SXNzdWUxMTI1NjcyODk= | 2,840 | test_response_iter_lines_reentrant failing with python 2.7 and urllib 1.12 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1009685?v=4",
"events_url": "https://api.github.com/users/frispete/events{/privacy}",
"followers_url": "https://api.github.com/users/frispete/followers",
"following_url": "https://api.github.com/users/frispete/following{/other_user}",
"gists_url": "http... | [] | closed | true | null | [] | null | 19 | 2015-10-21T11:35:53Z | 2021-09-08T21:00:51Z | 2015-10-21T11:37:40Z | NONE | resolved | FAIL: test_response_iter_lines_reentrant (**main**.RequestsTestCase)
## Response.iter_lines() is not reentrant safe
Traceback (most recent call last):
File "test_requests.py", line 1127, in test_response_iter_lines_reentrant
assert len(list(r.iter_lines())) == 3
AssertionError
---
Ran 150 tests in 43.451s
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2840/reactions"
} | https://api.github.com/repos/psf/requests/issues/2840/timeline | null | completed | null | null | false | [
"@frispete That test is supposed to fail: it is marked `pytest.xfail`. You need to run the tests using py.test.\n",
"Hmm, PyPI hosts a py.test version 0.0, stating to use pytest for installation, and that is what I use: pytest 2.8.2. Otherwise the test suite wouldn't run at all.\n",
"@frispete How did you run t... |
https://api.github.com/repos/psf/requests/issues/2839 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2839/labels{/name} | https://api.github.com/repos/psf/requests/issues/2839/comments | https://api.github.com/repos/psf/requests/issues/2839/events | https://github.com/psf/requests/pull/2839 | 112,534,727 | MDExOlB1bGxSZXF1ZXN0NDgzMDA4MzI= | 2,839 | Make sure we build environment settings properly. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | [] | closed | true | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}... | {
"closed_at": null,
"closed_issues": 29,
"created_at": "2013-11-17T11:29:34Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
... | 3 | 2015-10-21T08:24:30Z | 2021-09-08T04:01:06Z | 2016-04-15T21:38:50Z | MEMBER | resolved | Resolves #2836.
This actually requires a slightly tricky re-ordering here: the proxies work needs to happen separately to make sure keys set to `None` DTRT.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2839/reactions"
} | https://api.github.com/repos/psf/requests/issues/2839/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2839.diff",
"html_url": "https://github.com/psf/requests/pull/2839",
"merged_at": "2016-04-15T21:38:50Z",
"patch_url": "https://github.com/psf/requests/pull/2839.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2839"
} | true | [
"This looks like :cake: to me!\n",
"Rebase. Also appears as though it should have been merged six months ago. \n",
"Rebase complete.\n"
] |
https://api.github.com/repos/psf/requests/issues/2838 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2838/labels{/name} | https://api.github.com/repos/psf/requests/issues/2838/comments | https://api.github.com/repos/psf/requests/issues/2838/events | https://github.com/psf/requests/issues/2838 | 112,356,995 | MDU6SXNzdWUxMTIzNTY5OTU= | 2,838 | UnicodeEncodeError: 'latin-1' codec can't encode characters in position 52-55: ordinal not in range(256) | {
"avatar_url": "https://avatars.githubusercontent.com/u/9416005?v=4",
"events_url": "https://api.github.com/users/DeadNumbers/events{/privacy}",
"followers_url": "https://api.github.com/users/DeadNumbers/followers",
"following_url": "https://api.github.com/users/DeadNumbers/following{/other_user}",
"gists_ur... | [] | closed | true | null | [] | null | 1 | 2015-10-20T12:26:47Z | 2021-09-08T21:00:57Z | 2015-10-20T12:28:03Z | NONE | resolved | Requests 2.8.1
Python 3.5.0 (default, Sep 20 2015, 11:56:03)
[GCC 5.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import requests
r = requests.post('https://2ch.hk/makaba/posting.fcgi', data='json=1&task=post&board=test&thread=80980710&comment=тест')
Traceback (most recent call ... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2838/reactions"
} | https://api.github.com/repos/psf/requests/issues/2838/timeline | null | completed | null | null | false | [
"Please do not attempt to send body data in unicode strings. You need to encode that before you send it: `data='json=1&task=post&board=test&thread=80980710&comment=тест'.encode('utf-8')`\n"
] |
https://api.github.com/repos/psf/requests/issues/2837 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2837/labels{/name} | https://api.github.com/repos/psf/requests/issues/2837/comments | https://api.github.com/repos/psf/requests/issues/2837/events | https://github.com/psf/requests/issues/2837 | 112,253,265 | MDU6SXNzdWUxMTIyNTMyNjU= | 2,837 | Insecure Platform Warning | {
"avatar_url": "https://avatars.githubusercontent.com/u/3393794?v=4",
"events_url": "https://api.github.com/users/ueg1990/events{/privacy}",
"followers_url": "https://api.github.com/users/ueg1990/followers",
"following_url": "https://api.github.com/users/ueg1990/following{/other_user}",
"gists_url": "https:/... | [] | closed | true | null | [] | null | 1 | 2015-10-19T23:25:49Z | 2021-09-08T21:00:57Z | 2015-10-20T08:24:32Z | CONTRIBUTOR | resolved | I am contributing to a project that uses requests library (version 2.7.0) and even though the requests return outputs without any issue, I see the following warnings being printed:
/Users/ue/.virtualenvs/imgurpython/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: Insecure... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2837/reactions"
} | https://api.github.com/repos/psf/requests/issues/2837/timeline | null | completed | null | null | false | [
"@ueg1990 This is occurring because you're using this on an old version of Python which does not have a fully-featured `ssl` module. You can fix it either by upgrading to 2.7.9 or later, or by installing `pyopenssl`, `ndg-httpsclient`, and `pyasn1`.\n"
] |
https://api.github.com/repos/psf/requests/issues/2836 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2836/labels{/name} | https://api.github.com/repos/psf/requests/issues/2836/comments | https://api.github.com/repos/psf/requests/issues/2836/events | https://github.com/psf/requests/pull/2836 | 112,250,476 | MDExOlB1bGxSZXF1ZXN0NDgxMzc5NzM= | 2,836 | Use session.verify | {
"avatar_url": "https://avatars.githubusercontent.com/u/4534764?v=4",
"events_url": "https://api.github.com/users/causton81/events{/privacy}",
"followers_url": "https://api.github.com/users/causton81/followers",
"following_url": "https://api.github.com/users/causton81/following{/other_user}",
"gists_url": "h... | [] | closed | true | null | [] | null | 6 | 2015-10-19T23:02:35Z | 2021-09-08T06:00:48Z | 2015-10-21T08:24:44Z | NONE | resolved | session.verify is currently ignored. Didn't have time for a unit test, but this is one solution.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2836/reactions"
} | https://api.github.com/repos/psf/requests/issues/2836/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2836.diff",
"html_url": "https://github.com/psf/requests/pull/2836",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2836.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2836"
} | true | [
"@causton81 What evidence do you have that `Session.verify` is ignored? This works fine for me:\n\n``` python\n>>> import requests\n>>> s = requests.Session()\n>>> s.verify = False\n>>> s.get('https://kennethreitz.org/')\n/Users/cory/.pyenv/versions/2.7.10/lib/python2.7/site-packages/requests/packages/urllib3/conne... |
https://api.github.com/repos/psf/requests/issues/2835 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2835/labels{/name} | https://api.github.com/repos/psf/requests/issues/2835/comments | https://api.github.com/repos/psf/requests/issues/2835/events | https://github.com/psf/requests/issues/2835 | 112,222,516 | MDU6SXNzdWUxMTIyMjI1MTY= | 2,835 | readtimeout of zero will not send the request | {
"avatar_url": "https://avatars.githubusercontent.com/u/460530?v=4",
"events_url": "https://api.github.com/users/trcarden/events{/privacy}",
"followers_url": "https://api.github.com/users/trcarden/followers",
"following_url": "https://api.github.com/users/trcarden/following{/other_user}",
"gists_url": "https... | [] | closed | true | null | [] | null | 5 | 2015-10-19T20:08:01Z | 2021-09-08T21:00:57Z | 2015-10-20T08:30:20Z | NONE | resolved | The following code will not send a request:
``` python
endpoint = 'some.server.com'
data = {'foo':123}
requests.post(self._endpoint , json=data,
verify=False, timeout=(5, 0.00))
```
I would expect the library to send the request but not wait for the server to respond. This would correspond t... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2835/reactions"
} | https://api.github.com/repos/psf/requests/issues/2835/timeline | null | completed | null | null | false | [
"What does \"will not send the request\" mean? On my system, the request _is_ sent, but a `ReadTimeoutError` is raised, which feels like exactly the expected behaviour. What are you seeing that makes you believe that's not happening for you?\n\nPlease note, however, that setting a timeout of exactly zero is [a _bad... |
https://api.github.com/repos/psf/requests/issues/2834 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2834/labels{/name} | https://api.github.com/repos/psf/requests/issues/2834/comments | https://api.github.com/repos/psf/requests/issues/2834/events | https://github.com/psf/requests/issues/2834 | 112,105,186 | MDU6SXNzdWUxMTIxMDUxODY= | 2,834 | Response.text as byte string | {
"avatar_url": "https://avatars.githubusercontent.com/u/15190816?v=4",
"events_url": "https://api.github.com/users/rschwarz1711/events{/privacy}",
"followers_url": "https://api.github.com/users/rschwarz1711/followers",
"following_url": "https://api.github.com/users/rschwarz1711/following{/other_user}",
"gist... | [] | closed | true | null | [] | null | 1 | 2015-10-19T09:19:08Z | 2021-09-08T21:00:58Z | 2015-10-19T09:20:13Z | NONE | resolved | Hey,
we are missing informations how to stop the requests library from guessing the content type of response.text.
http://docs.python-requests.org/en/latest/api/?highlight=text#requests.Response.text
For our use case we need the original byte string. The current docs don't explain how to get it.
Please improve the d... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2834/reactions"
} | https://api.github.com/repos/psf/requests/issues/2834/timeline | null | completed | null | null | false | [
"The docs absolutely do say how to get the original byte string, just a few lines up from where you linked: http://docs.python-requests.org/en/latest/api/?highlight=text#requests.Response.content\n\nIt's `response.content`.\n"
] |
https://api.github.com/repos/psf/requests/issues/2833 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2833/labels{/name} | https://api.github.com/repos/psf/requests/issues/2833/comments | https://api.github.com/repos/psf/requests/issues/2833/events | https://github.com/psf/requests/pull/2833 | 111,888,014 | MDExOlB1bGxSZXF1ZXN0NDc5NDUxOTE= | 2,833 | Check Content-Length when present. | {
"avatar_url": "https://avatars.githubusercontent.com/u/4534764?v=4",
"events_url": "https://api.github.com/users/causton81/events{/privacy}",
"followers_url": "https://api.github.com/users/causton81/followers",
"following_url": "https://api.github.com/users/causton81/following{/other_user}",
"gists_url": "h... | [] | closed | true | null | [] | null | 9 | 2015-10-16T18:39:49Z | 2021-09-08T06:00:51Z | 2015-10-17T21:15:13Z | NONE | resolved | This is pretty hard to reproduce, but I have seen truncated responses in the presence of connection resets that are silently ignored by requests.
This link describes how the vagaries of TCP and socket API may return an error or 0 (end-of-file) when the stars align just right:
http://blog.netherlabs.nl/articles/2009/... | {
"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://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2833/reactions"
} | https://api.github.com/repos/psf/requests/issues/2833/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/2833.diff",
"html_url": "https://github.com/psf/requests/pull/2833",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/2833.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/2833"
} | true | [
"@causton `httplib` should do this check by itself already. Can you try to reproduce this to see if that happens? If it doesn't, can you post your repro code here?\n",
"I used netcat to send a 1 MiB response that's one byte short of declared Content-Length. The script below shows the problem for me with the outpu... |
https://api.github.com/repos/psf/requests/issues/2832 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/2832/labels{/name} | https://api.github.com/repos/psf/requests/issues/2832/comments | https://api.github.com/repos/psf/requests/issues/2832/events | https://github.com/psf/requests/issues/2832 | 111,879,729 | MDU6SXNzdWUxMTE4Nzk3Mjk= | 2,832 | Not marked as python3.4 compatible in PyPi | {
"avatar_url": "https://avatars.githubusercontent.com/u/419698?v=4",
"events_url": "https://api.github.com/users/jra3/events{/privacy}",
"followers_url": "https://api.github.com/users/jra3/followers",
"following_url": "https://api.github.com/users/jra3/following{/other_user}",
"gists_url": "https://api.githu... | [] | closed | true | null | [] | null | 1 | 2015-10-16T17:55:06Z | 2021-09-08T21:00:59Z | 2015-10-16T21:03:31Z | NONE | resolved | Hi there,
http://docs.python-requests.org/en/latest/ says there is support for python 2.6-3.4, but PyPi lists only 2.7. I discovered this when i used the tool `caniusepython3` and saw requests on the list of packages holding me back.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/1382556?v=4",
"events_url": "https://api.github.com/users/Lukasa/events{/privacy}",
"followers_url": "https://api.github.com/users/Lukasa/followers",
"following_url": "https://api.github.com/users/Lukasa/following{/other_user}",
"gists_url": "https://ap... | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/2832/reactions"
} | https://api.github.com/repos/psf/requests/issues/2832/timeline | null | completed | null | null | false | [
"Yeah, all our trove classifiers seem to be missing on PyPI. Looks like it was a while since it was registered. Resolved now. =)\n\nThanks for the report!\n"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.