Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringclasses
1 value
topic
stringclasses
1 value
issue_number
int64
30
6.44k
title
stringlengths
8
145
body
stringlengths
0
7.01k
state
stringclasses
1 value
created_at
stringdate
2011-05-13 13:31:24
2023-05-04 22:27:39
updated_at
stringdate
2014-09-10 18:37:56
2024-05-21 10:16:30
url
stringlengths
41
43
labels
stringlengths
21
3.05k
user_login
stringlengths
4
16
comments_count
int64
25
211
solution_body
stringlengths
21
3.05k
solution_author
stringlengths
4
16
solution_created_at
stringdate
2011-05-13 13:33:05
2023-05-04 22:32:18
solution_url
stringlengths
62
67
solution_reactions
int64
0
34
psf/requests
http
2,966
Consider using system trust stores by default in 3.0.0.
It's been raised repeatedly, mostly by people using Linux systems, that it's annoying that requests doesn't use the system trust store and instead uses the one that certifi ships. This is an understandable position. I have some personal attachment to the certifi approach, but the other side of that argument definitely ...
closed
2016-01-11T17:15:47Z
2024-05-19T18:35:48Z
https://github.com/psf/requests/issues/2966
I think the system trust stores (or not) essentially boils down to whether you want requests to act the same across platforms, or whether you want it to act in line with the platform it is running on. I do not think that _either_ of these options are wrong (or right), just different trade offs. I think that it's not a...
Lukasa
211
I think the system trust stores (or not) essentially boils down to whether you want requests to act the same across platforms, or whether you want it to act in line with the platform it is running on. I do not think that _either_ of these options are wrong (or right), just different trade offs. I think that it's not a...
dstufft
2016-01-11T17:37:49Z
https://github.com/psf/requests/issues/2966#issuecomment-170628425
0
psf/requests
http
1,573
Specify password for SSL client side certificate
As far as I know currently it's not possible to specify the password for the client side certificate you're using for authentication. This is a bit of a problem because you typically always want to password protect your .pem file which contains the private key. `openssl` won't even let you create one without a password...
closed
2013-09-03T13:14:44Z
2021-11-28T05:40:38Z
https://github.com/psf/requests/issues/1573
Something like: `requests.get('https://kennethreitz.com', cert='server.pem', cert_pw='my_password')`
botondus
122
Something like: `requests.get('https://kennethreitz.com', cert='server.pem', cert_pw='my_password')`
botondus
2013-09-03T13:16:56Z
https://github.com/psf/requests/issues/1573#issuecomment-23711419
0
psf/requests
http
2,455
CERTIFICATE_VERIFY_FAILED with 2.5.2, works with 2.5.1
I'm having a somewhat odd issue. A get() request seems to work fine with requests-2.5.1, but after upgrading to requests 2.5.2, the same URL leads to `CERTIFICATE_VERIFY_FAILED`. cc @mpharrigan ``` $ pip install requests==2.5.1 [ ... snip, installs just fine ...] $ python -c 'import requests; print(requests.get("http...
closed
2015-02-24T01:11:01Z
2021-09-08T20:00:52Z
https://github.com/psf/requests/issues/2455
FWIW, this is with python 3.4.2 and OS X 10.10.
rmcgibbo
111
FWIW, this is with python 3.4.2 and OS X 10.10.
rmcgibbo
2015-02-24T01:11:19Z
https://github.com/psf/requests/issues/2455#issuecomment-75679526
0
psf/requests
http
4,006
requests 2.14.0 cannot be installed using pip < 8.1.2
Example with pip 6.1.1 (but same with pip 8.1.1): ```console > pip install requests You are using pip version 6.1.1, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting requests Using cached requests-2.14.0-py2.py3-none-any.whl Exception: ...
closed
2017-05-09T16:19:18Z
2021-09-08T08:00:45Z
https://github.com/psf/requests/issues/4006
Ok, so right now with 56% of our downloaders *already* safe and most of the rest one `pip install -U pip` away from being ok, I'm pretty tempted to say that we should consider toughing this out. It's going to annoy a whole bunch of people, but if we can drag the ecosystem forward a bit to the point that people can actu...
lmazuel
91
Ok, so right now with 56% of our downloaders *already* safe and most of the rest one `pip install -U pip` away from being ok, I'm pretty tempted to say that we should consider toughing this out. It's going to annoy a whole bunch of people, but if we can drag the ecosystem forward a bit to the point that people can actu...
Lukasa
2017-05-09T16:57:36Z
https://github.com/psf/requests/issues/4006#issuecomment-300230879
34
psf/requests
http
239
Too many open files
I am building a basic load generator and started running into file descriptor limits, I havent seen any documentation pertaining to how to release resources, so either I am doing it wrong and the docs need updated, or requests is leaking file descriptors somewhere (without support for keepalive I am slightly confused a...
closed
2011-11-05T12:37:30Z
2021-09-08T01:21:03Z
https://github.com/psf/requests/issues/239
Where you using `requests.async`?
daleharvey
81
Where you using `requests.async`?
kennethreitz
2011-11-05T14:27:04Z
https://github.com/psf/requests/issues/239#issuecomment-2640638
0
psf/requests
http
1,155
Add MultiDict Support
[Comment by Kenneth Reitz](https://github.com/kennethreitz/requests/pull/1103#issuecomment-12370830): > We need to support MultiDict. This is long overdue.
closed
2013-01-31T18:02:52Z
2021-09-08T17:05:21Z
https://github.com/psf/requests/issues/1155
Should the values be ordered or not? I have no preference, I'm just wondering if others do.
dmckeone
79
Should the values be ordered or not? I have no preference, I'm just wondering if others do.
sigmavirus24
2013-02-15T21:34:40Z
https://github.com/psf/requests/issues/1155#issuecomment-13629318
0
psf/requests
http
3,006
requests.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:645)
Here is the first issue. https://github.com/kennethreitz/requests/issues/2906 Python 3.5.1 (https://www.python.org/downloads/) Virtualenv 14.0.5 Mac OS X 10.11.3 First, I created a virtualenv and `pip install requests[security]` Then I got ``` >>> from cryptography.hazmat.backends.openssl.backend import backend >>>...
closed
2016-02-12T03:30:56Z
2021-09-04T00:06:18Z
https://github.com/psf/requests/issues/3006
> Then, some of my own scripts crashed which was normal. What does a crash like that look like? > After that, when I try to run my script again, I got following exceptions Are you completely unable to run them at all after that?
caizixian
77
> Then, some of my own scripts crashed which was normal. What does a crash like that look like? > After that, when I try to run my script again, I got following exceptions Are you completely unable to run them at all after that?
sigmavirus24
2016-02-12T04:23:45Z
https://github.com/psf/requests/issues/3006#issuecomment-183174403
0
psf/requests
http
2,022
https GET request fails with "handshake failure"
Related to #1083, perhaps. Standard `requests.get()` for this particular site/page `https://docs.apitools.com/2014/04/24/a-small-router-for-openresty.html` results in: ``` >>> import requests >>> requests.get('https://docs.apitools.com/2014/04/24/a-small-router-for-openresty.html') Traceback (most recent call last): ...
closed
2014-04-26T17:42:19Z
2018-06-15T02:16:34Z
https://github.com/psf/requests/issues/2022
Just want to chime in and say that I experienced this issue on OS X 10.9.5, Python 2.7.7 and OpenSSL 0.9.8zc. I was able to fix my handshaking issue by: 1. Installing a newer-than-stock OpenSSL on my machine via `brew install OpenSSL` 2. Compiling and installing the `cryptography` package linked against the new OpenSS...
jaddison
76
Just want to chime in and say that I experienced this issue on OS X 10.9.5, Python 2.7.7 and OpenSSL 0.9.8zc. I was able to fix my handshaking issue by: 1. Installing a newer-than-stock OpenSSL on my machine via `brew install OpenSSL` 2. Compiling and installing the `cryptography` package linked against the new OpenSS...
Microserf
2015-02-23T08:45:47Z
https://github.com/psf/requests/issues/2022#issuecomment-75506581
6
psf/requests
http
1,289
Python 3.3 requests issue
I'm getting a strange error when using Requests in Python 3.3 (other flavors of Python 3 do not get this error): ``` Traceback (most recent call last): File "C:\Python33\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 421, in urlopen body=body, headers=headers) File "C:\Python33\lib\site-...
closed
2013-04-04T15:34:17Z
2021-09-08T18:00:45Z
https://github.com/psf/requests/issues/1289
Please reply with the following: `python -c 'import requests; print(requests.__version__)'`
echohack
67
Please reply with the following: `python -c 'import requests; print(requests.__version__)'`
sigmavirus24
2013-04-04T16:37:13Z
https://github.com/psf/requests/issues/1289#issuecomment-15908534
0
psf/requests
http
1,659
Update SSL Certs
We really need to automate this and have an official workflow and policy for security releases. Fixes #1655 ### TODO: - [x] Automate CA Bundle generation - [ ] Establish documented security policy ### See Also: - [PEP 453 Security Considerations](http://www.python.org/dev/peps/pep-0453/#security-considerations) - [ke...
closed
2013-10-08T22:14:49Z
2021-09-09T00:34:27Z
https://github.com/psf/requests/issues/1659
Is the right thing to do here just to rewrite cURL's Perl script that converts the Mozilla text file into a .pem file? I took a look and it shouldn't be too awful to do.
kennethreitz
64
Is the right thing to do here just to rewrite cURL's Perl script that converts the Mozilla text file into a .pem file? I took a look and it shouldn't be too awful to do.
Lukasa
2013-10-11T11:03:28Z
https://github.com/psf/requests/issues/1659#issuecomment-26129301
0
psf/requests
http
3,070
Consider making Timeout option required or have a default
I have a feeling I'm about to get a swift education on this topic, but I've been thinking about the pros/cons of changing `requests` so that somehow there is a timeout value configured for every request. I think there are two ways to do this: 1. Provide a default value. I know browsers have a default, so that may be a...
closed
2016-03-29T16:56:50Z
2024-05-21T10:16:30Z
https://github.com/psf/requests/issues/3070
Hooray for reopening this bug. I like the solution of providing a default with an env override. Seems simple enough to me. > You really shouldn't be hitting the internet without proper timeouts in place ever in production. Any sane engineer knows that — it's not Requests' job to do your job for you. I do disagree...
mlissner
62
Hooray for reopening this bug. I like the solution of providing a default with an env override. Seems simple enough to me. > You really shouldn't be hitting the internet without proper timeouts in place ever in production. Any sane engineer knows that — it's not Requests' job to do your job for you. I do disagree...
mlissner
2017-07-31T21:30:21Z
https://github.com/psf/requests/issues/3070#issuecomment-319202345
18
psf/requests
http
520
requests leaves a hanging connection for each request
This was already noted in #458, but deserves an extra ticket: When using the simple API (via requests.head/get/post etc.), the requests module leaves a connection open until it is garbage collected. This eats up resources on the server site and it really impolite. How to reproduce: Run this script (can somebody pleas...
closed
2012-03-29T07:19:00Z
2021-09-03T00:10:52Z
https://github.com/psf/requests/issues/520
Digging further, this seems due to a reference loop and is really a problem inherited from httplib: The HTTPResponse keeps a reference to the file object as _fileobject. I would argue that that reference should be dropped after the complete response was read (it should not be possible to read from the socket of a poole...
Bluehorn
62
Digging further, this seems due to a reference loop and is really a problem inherited from httplib: The HTTPResponse keeps a reference to the file object as _fileobject. I would argue that that reference should be dropped after the complete response was read (it should not be possible to read from the socket of a poole...
Bluehorn
2012-03-29T08:00:51Z
https://github.com/psf/requests/issues/520#issuecomment-4798576
0
psf/requests
http
2,422
Broken pipe Exception
I post a large file to server, and it raise `ConnectionError` exception. ``` Traceback (most recent call last): File "/Users/cloverstd/.virtualenvs/enterprise/lib/python2.7/site-packages/rq/worker.py", line 479, in perform_job rv = job.perform() File "/Users/cloverstd/.virtualenvs/enterprise/lib/python2.7/site...
closed
2015-01-23T14:03:14Z
2016-11-30T09:12:06Z
https://github.com/psf/requests/issues/2422
Can you reproduce it every time? What curl command are you using? Does the server have any useful log messages? ## Kevin Burke phone: 925.271.7005 | twentymilliseconds.com On Fri, Jan 23, 2015 at 6:03 AM, Cloverstd notifications@github.com wrote: > I post a large file to server, and it raise ConnectionError except...
cloverstd
61
Can you reproduce it every time? What curl command are you using? Does the server have any useful log messages? ## Kevin Burke phone: 925.271.7005 | twentymilliseconds.com On Fri, Jan 23, 2015 at 6:03 AM, Cloverstd notifications@github.com wrote: > I post a large file to server, and it raise ConnectionError except...
kevinburke
2015-01-23T15:48:01Z
https://github.com/psf/requests/issues/2422#issuecomment-71212727
0
psf/requests
http
624
Documentation Translation Guide
closed
2012-05-19T14:53:39Z
2022-02-26T06:00:22Z
https://github.com/psf/requests/issues/624
Yes we need it because I might translate the documentation to arabic sometime
kennethreitz
59
Yes we need it because I might translate the documentation to arabic sometime
toutouastro
2012-05-19T17:36:48Z
https://github.com/psf/requests/issues/624#issuecomment-5803427
1
psf/requests
http
2,214
verify=False and requests.packages.urllib3.disable_warnings()
As of 1.9 of `urllib3`, the following warning appears once per invocation: ``` /usr/local/lib/python2.7/site-packages/requests-2.4.0-py2.7.egg/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https...
closed
2014-09-09T15:23:03Z
2017-01-21T16:42:04Z
https://github.com/psf/requests/issues/2214
I think you can disable these at a global level with the `warnings` module. Further, to work with logging (if I remember correctly) you need to reach into `urllib3` (and we document that), so I'm not against documenting this for users who are not going to use certificate verification for HTTPS connections.
invisiblethreat
57
I think you can disable these at a global level with the `warnings` module. Further, to work with logging (if I remember correctly) you need to reach into `urllib3` (and we document that), so I'm not against documenting this for users who are not going to use certificate verification for HTTPS connections.
sigmavirus24
2014-09-09T15:36:37Z
https://github.com/psf/requests/issues/2214#issuecomment-54988365
0
psf/requests
http
2,699
timeout=False puts the socket in non-blocking mode, causing weird errors.
I'm receiving a strange connection error using Requests 2.7.0 connecting to an HTTP service as part of an integration test. Below is the call stack when I call into `session.request` in the API (for reasons of NDA I can't provide the rest of the callstack). The error is below in full detail, but in short, send() in re...
closed
2015-07-30T20:33:15Z
2021-09-08T14:00:37Z
https://github.com/psf/requests/issues/2699
(Hi Chris!) Well this is weird. Are you passing any socket options?
offbyone
56
(Hi Chris!) Well this is weird. Are you passing any socket options?
Lukasa
2015-07-30T20:36:12Z
https://github.com/psf/requests/issues/2699#issuecomment-126476835
0
psf/requests
http
1,685
Possible Memory Leak
I have a very simple program that periodically retrieves an image from an IP camera. I've noticed that the working set of this program grows monotonically. I've written a small program that reproduces the issue. ``` python import requests from memory_profiler import profile @profile def lol(): print "sending req...
closed
2013-10-17T17:03:10Z
2021-09-05T00:06:47Z
https://github.com/psf/requests/issues/1685
Thanks for raising this and providing so much detail! Tell me, do you ever see the memory usage go down at any point?
philip-goh
54
Thanks for raising this and providing so much detail! Tell me, do you ever see the memory usage go down at any point?
Lukasa
2013-10-18T06:14:10Z
https://github.com/psf/requests/issues/1685#issuecomment-26574258
0
psf/requests
http
1,547
Installation fails in Cygwin 64 bit
When I try a pip install requests in Cygwin 64 bit the installation fails. Here's the end of the log file: ``` Downloading from URL https://pypi.python.org/packages/source/r/requests/requests-1.2.3.tar.gz#md5=adbd3f18445f7fe5e77f65c502e264fb (from https://pypi.python.org/simple/requests/) Running setup.py egg_inf...
closed
2013-08-21T22:00:09Z
2021-09-09T00:00:57Z
https://github.com/psf/requests/issues/1547
Hmm, I can't reproduce this. =( But I wonder if you're using a Windows virtualenv with a Windows interpreter in Cygwin. It's not clear (to me) how well that would work.
gregersn
54
Hmm, I can't reproduce this. =( But I wonder if you're using a Windows virtualenv with a Windows interpreter in Cygwin. It's not clear (to me) how well that would work.
Lukasa
2013-08-27T08:26:05Z
https://github.com/psf/requests/issues/1547#issuecomment-23320245
0
psf/requests
http
2,725
Requests.put blocking on Windows (Tika-Python)
Over in the [Apache Tika Python Port](http://github.com/chrismattmann/tika-python/) I'm noticing in [tika-python#44](http://github.com/chrismattmann/tika-python/issues/44) and in [tika-python#58](http://github.com/chrismattmann/tika-python/issues/58) some odd behavior with requests on Python 2.7.9. For whatever reason,...
closed
2015-08-14T16:22:14Z
2021-09-08T21:00:56Z
https://github.com/psf/requests/issues/2725
Any requests call that uploads a request body will send the entire body before attempting to read the response. That means that, if the remote end does not close that connection abruptly (throwing an Exception on our end), we'll block until the response has been entirely sent. Sadly, we don't support the 100-continue ...
chrismattmann
52
Any requests call that uploads a request body will send the entire body before attempting to read the response. That means that, if the remote end does not close that connection abruptly (throwing an Exception on our end), we'll block until the response has been entirely sent. Sadly, we don't support the 100-continue ...
Lukasa
2015-08-14T19:31:59Z
https://github.com/psf/requests/issues/2725#issuecomment-131215508
0
psf/requests
http
1,648
Header "Transfer-Encoding: chunked" set even if Content-Length is provided which causes body to not actually get chunked
## Test script ``` import requests import time def f(): yield b"lol" time.sleep(2) yield b"man" requests.post('http://127.0.0.1:8801/', data=f(), headers={"Content-Length": 6}) ``` ## Actual result Received on the server: ``` $ nc -p 8801 -l POST / HTTP/1.1 Host: 127.0.0.1:8801 User-Agent: python-reque...
closed
2013-10-04T00:02:56Z
2021-09-08T12:00:49Z
https://github.com/psf/requests/issues/1648
I agree, we should pick one of those two options. =)
ysangkok
52
I agree, we should pick one of those two options. =)
Lukasa
2013-10-04T08:54:09Z
https://github.com/psf/requests/issues/1648#issuecomment-25684368
0
psf/requests
http
844
umbrella ticket to resolve iteration / read size / chunked encoding questions
This ticket is intended to aggregate previous discussion from #539, #589, and #597 about the default value of `chunk_size` used by `iter_content` and `iter_lines`. cc @mponton @gwrtheyrn @shazow Issues: 1. The default read size of `iter_content` is 1 byte; this is probably inefficient 2. Requests does not expose the ...
closed
2012-09-07T03:54:10Z
2021-09-08T23:06:04Z
https://github.com/psf/requests/issues/844
:+1: for `iter_chunks`
slingamn
52
:+1: for `iter_chunks`
kennethreitz
2012-09-07T07:05:17Z
https://github.com/psf/requests/issues/844#issuecomment-8357784
0
psf/requests
http
1,252
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 169: ordinal not in range(128)
Something similar has been posted before: https://github.com/kennethreitz/requests/issues/403 This is using `requests 1.1.0` But this problem is still popping up while trying to post _just_ a file _and_ a file with data. On top of the similar issue, I've posted about this before and in `requests_oauthlib` it has said...
closed
2013-03-20T22:48:10Z
2021-09-08T11:00:35Z
https://github.com/psf/requests/issues/1252
So here's my first guess (but I'll obviously look into this more): I think that OAuth1 might be generating unicode and opening the file in binary form will cause this issue due to how httplib sends the message body. Also this may be related to #1250. @Lukasa, opinions?
michaelhelmick
50
So here's my first guess (but I'll obviously look into this more): I think that OAuth1 might be generating unicode and opening the file in binary form will cause this issue due to how httplib sends the message body. Also this may be related to #1250. @Lukasa, opinions?
sigmavirus24
2013-03-21T12:48:28Z
https://github.com/psf/requests/issues/1252#issuecomment-15235102
0
psf/requests
http
1,906
OpenSSL.SSL.Error: [('SSL routines', 'SSL3_GET_RECORD', 'decryption failed or bad record mac')]
It seems that latest requests (2.2.1) is also affected by bug: OpenSSL.SSL.Error: [('SSL routines', 'SSL3_GET_RECORD', 'decryption failed or bad record mac')] It seems to be an workaround here http://stackoverflow.com/questions/21497591/urllib2-reading-https-url-failure but I don't know how to apply it to requests.
closed
2014-02-07T10:31:07Z
2021-09-08T08:00:38Z
https://github.com/psf/requests/issues/1906
Thanks for this! Yeah, this isn't really a request bug, as the SO question highlights: it's a Debian or OpenSSL bug. With that said, a possible workaround would be an extension of the transport adapter demonstrated on my blog, here: https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/
ssbarnea
49
Thanks for this! Yeah, this isn't really a request bug, as the SO question highlights: it's a Debian or OpenSSL bug. With that said, a possible workaround would be an extension of the transport adapter demonstrated on my blog, here: https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/
Lukasa
2014-02-07T11:12:15Z
https://github.com/psf/requests/issues/1906#issuecomment-34427401
0
psf/requests
http
1,336
Set cookie on 401
If a 401 response contains a Set-Cookie header, that header is not returned on the subsequent AUTH. An application requiring that cookie ( e.g. session id ) on the AUTH fails.
closed
2013-04-30T03:19:58Z
2021-09-08T23:10:56Z
https://github.com/psf/requests/issues/1336
`HTTPDigestAuth.handle_401()` needs to persist cookies. Thanks for reporting this! I'm marking this as contributor friendly, anyone who wants it should take it. I'm looking at @gazpachoking and @sigmavirus24, they're the cookie masters here.
kervinpierre
47
`HTTPDigestAuth.handle_401()` needs to persist cookies. Thanks for reporting this! I'm marking this as contributor friendly, anyone who wants it should take it. I'm looking at @gazpachoking and @sigmavirus24, they're the cookie masters here.
Lukasa
2013-04-30T08:27:45Z
https://github.com/psf/requests/issues/1336#issuecomment-17215073
0
psf/requests
http
771
socket leak (suspected due to redirection)
It seems requests forgets to properly close a socket when a redirection occurs. See the following gist for the code that causes the issue (at least here..): https://gist.github.com/3313868
closed
2012-08-10T12:21:29Z
2021-09-09T05:30:52Z
https://github.com/psf/requests/issues/771
Have you tried the latest release? v0.13.6 fixed a bunch of socket leaking
eranrund
47
Have you tried the latest release? v0.13.6 fixed a bunch of socket leaking
kennethreitz
2012-08-10T16:02:38Z
https://github.com/psf/requests/issues/771#issuecomment-7648855
0
psf/requests
http
749
TLS SNI Support
It seems I'm having problems using requests with servers that need TLS SNI support. When will requests have this feature? Is this something that is planned? Thanks, --Ram
closed
2012-08-01T21:40:20Z
2021-02-14T17:04:28Z
https://github.com/psf/requests/issues/749
Not posisble in Python 2.x on top of the stdlib's ssl module.
pythonmobile
47
Not posisble in Python 2.x on top of the stdlib's ssl module.
mitsuhiko
2012-08-01T22:29:13Z
https://github.com/psf/requests/issues/749#issuecomment-7442115
0
psf/requests
http
1,390
Async mode seems to have disappeared
Hey, I'm trying to find some kind of documentation about how to issue multiple concurrent HTTP requests using this library, but all the Googling and searching I'm doing points to outdated versions of this library. Is there a chance you can add back the docs? Even if they just mention the features are deprecated and poi...
closed
2013-05-26T21:10:52Z
2024-05-20T14:36:04Z
https://github.com/psf/requests/issues/1390
Hi Kevin, thanks for raising this issue! I'd have to say that [grequests](https://github.com/kennethreitz/grequests) is likely to be the right way to go about this. It might be worth grequests to the documentation, in fact. I'll have a think about it. =)
kevinburke
46
Hi Kevin, thanks for raising this issue! I'd have to say that [grequests](https://github.com/kennethreitz/grequests) is likely to be the right way to go about this. It might be worth grequests to the documentation, in fact. I'll have a think about it. =)
Lukasa
2013-05-26T21:16:21Z
https://github.com/psf/requests/issues/1390#issuecomment-18469864
0
psf/requests
http
2,338
Proxy not working
This code will work on my personal laptop, but then when I move to a windows server where we have to use a proxy to access the outside world, I get a 407 error. I added the proxies to this (just like I have setup in my Internet explorer settings that work). Any ideas? import requests proxies = { "http": "10.51.1.1...
closed
2014-11-13T17:13:41Z
2021-09-05T00:06:57Z
https://github.com/psf/requests/issues/2338
The error here is extremely clear: _407 Proxy Authentication Required_. You need to send some user credentials to the proxy. The real risk here is that the proxy is a Windows domain auth proxy, in which case this will be extremely difficult.
dmorri
45
The error here is extremely clear: _407 Proxy Authentication Required_. You need to send some user credentials to the proxy. The real risk here is that the proxy is a Windows domain auth proxy, in which case this will be extremely difficult.
Lukasa
2014-11-13T17:19:59Z
https://github.com/psf/requests/issues/2338#issuecomment-62930231
0
psf/requests
http
3,213
Importing requests is fairly slow
We are using requests in our projects, and it is working great. Unfortunately, for our CLI tools, using requests is an issue because it is slow to import. E.g. on my 2014 macbook: ``` python -c "import requests" ``` Takes close to 90 ms. Is optimizing import time worth of consideration for the project ?
closed
2016-05-21T12:23:08Z
2021-09-08T07:00:40Z
https://github.com/psf/requests/issues/3213
This is almost certainly the result of CFFI. Can you print what libraries you have installed in your environment (`pip freeze`)?
cournape
44
This is almost certainly the result of CFFI. Can you print what libraries you have installed in your environment (`pip freeze`)?
Lukasa
2016-05-21T12:26:19Z
https://github.com/psf/requests/issues/3213#issuecomment-220775062
0
psf/requests
http
2,935
KeyError in connectionpool?
I'm getting a weird error during this call `conn = old_pool.get(block=False)` in connectionpool.py:410. The Error in Sentry is: `Queue in get, KeyError: (1, True)` And this is the traceback, which doesn't make sense, as `requests/packages/urllib3/connectionpool.py` catches that Empty exception; plus I have no idea wh...
closed
2015-12-18T00:38:06Z
2021-09-08T19:00:30Z
https://github.com/psf/requests/issues/2935
@Kronuz What version of requests are you using, please?
Kronuz
44
@Kronuz What version of requests are you using, please?
Lukasa
2015-12-18T08:59:59Z
https://github.com/psf/requests/issues/2935#issuecomment-165717762
0
psf/requests
http
465
no way to read uncompressed content as file-like object
According to the documentation, there are three ways to read the content of the response: `.text`, `.content` and `.raw`. The first two consider the transfer encoding and decompress the stream automatically when producing their in-memory result. However, especially for the case that the result is large, there is curren...
closed
2012-02-29T18:14:13Z
2021-09-09T04:00:38Z
https://github.com/psf/requests/issues/465
`Response.iter_content`
scoder
44
`Response.iter_content`
kennethreitz
2012-02-29T18:15:07Z
https://github.com/psf/requests/issues/465#issuecomment-4243324
0
psf/requests
http
3,948
Requests not working in a Docker container
Hi Thats the old story about SSL not working with requests, but one step further.... Docker containers I have an application that uses requests, and it works fine in my local machine, but, when deploying it in a Docker container, i am having an error with requests module (SSL error) [2017-03-31 11:32:29,863]...
closed
2017-03-31T11:38:41Z
2021-11-03T19:00:30Z
https://github.com/psf/requests/issues/3948
Can you run `openssl version` in your container?
javixeneize
42
Can you run `openssl version` in your container?
sigmavirus24
2017-03-31T11:40:28Z
https://github.com/psf/requests/issues/3948#issuecomment-290690219
0
psf/requests
http
2,424
Consider Requests' Inclusion in Python 3.5's Standard Library
There's a lot to this, but I'll keep it simple... Would the Python community, as a whole, benefit from Requests being added into the standard library? Would love to hear your thoughts and opinions on the subject!
closed
2015-01-25T17:17:59Z
2021-09-08T22:00:48Z
https://github.com/psf/requests/issues/2424
Yes, because it simplifies the entire process and does not sacrifice the performance. So yes.
kennethreitz
42
Yes, because it simplifies the entire process and does not sacrifice the performance. So yes.
gamesbrainiac
2015-01-25T17:22:19Z
https://github.com/psf/requests/issues/2424#issuecomment-71382004
0
psf/requests
http
2,409
Consecutive requests with Session() raises 404
In [1]: import requests In [2]: s = requests.Session() In [3]: s.get('https://www.flavourly.com/start-subscription/12/', verify=False) Out[3]: &lt;Response [200]&gt; In [4]: s.get('https://www.flavourly.com/start-subscription/12/', verify=False) Out[4]: &lt;Response [404]&gt; Is it me or is this a bug? I've checked an...
closed
2015-01-15T20:38:19Z
2021-09-08T01:21:19Z
https://github.com/psf/requests/issues/2409
I don't think it's a bug, I think it's because of cookies. Flavourly doesn't seem to like the cookies we're sending back. Try checking the difference between the value of `s.cookies` after the first request, once in something where you don't see the 'bug', and once in a version where you do.
RossLote
42
I don't think it's a bug, I think it's because of cookies. Flavourly doesn't seem to like the cookies we're sending back. Try checking the difference between the value of `s.cookies` after the first request, once in something where you don't see the 'bug', and once in a version where you do.
Lukasa
2015-01-15T20:46:42Z
https://github.com/psf/requests/issues/2409#issuecomment-70158467
0
psf/requests
http
2,467
timeout issues for chunked responses
When I set a timeout value for my simple GET request, the `requests.get` call takes a really long time to complete when I don't iterate over the returned content. If I iterate over the content, the `requests.get` call comes back very quickly. I've delved pretty deep into the requests source code and can't figure out ...
closed
2015-03-02T23:11:27Z
2021-09-08T23:05:58Z
https://github.com/psf/requests/issues/2467
Can you post your values? Because I don't see this at all: T=10, stream iter took: 0.515799999237 T=10, stream all took: 0.428910970688 T=10, no stream took: 0.423730134964 T=None, stream iter took: 0.422012805939 T=None, stream all took: 0.445449113846 T=None, no stream took: 0.433798074722
zsalzbank
41
Can you post your values? Because I don't see this at all: T=10, stream iter took: 0.515799999237 T=10, stream all took: 0.428910970688 T=10, no stream took: 0.423730134964 T=None, stream iter took: 0.422012805939 T=None, stream all took: 0.445449113846 T=None, no stream took: 0.433798074722
Lukasa
2015-03-03T07:53:30Z
https://github.com/psf/requests/issues/2467#issuecomment-76901637
0
psf/requests
http
2,371
requests has poor performance streaming large binary responses
https://github.com/alex/http-client-bench contains the benchmarks I used. The results are something like: | | requests/http | socket | | --- | --- | --- | | CPython | 12MB/s | 200MB/s | | PyPy | 80MB/s | 300MB/s | | Go | 150MB/s | n/a | requests imposes a considerable overhead compared to a socket, particularly on ...
closed
2014-12-05T00:37:40Z
2021-09-08T04:00:55Z
https://github.com/psf/requests/issues/2371
That overhead is unexpectedly large. However, avoiding it might be tricky. The big problem is that we do quite a lot of processing per chunk. That's all the way down the stack: requests, urllib3 and httplib. It would be extremely interesting to see where the time is being spent to work out who is causing the inefficie...
alex
40
That overhead is unexpectedly large. However, avoiding it might be tricky. The big problem is that we do quite a lot of processing per chunk. That's all the way down the stack: requests, urllib3 and httplib. It would be extremely interesting to see where the time is being spent to work out who is causing the inefficie...
Lukasa
2014-12-05T01:01:23Z
https://github.com/psf/requests/issues/2371#issuecomment-65732050
0
psf/requests
http
1,622
Requests 2.0.0 breaks SSL proxying via https_port of Squid.
For a Squid configuration of: ``` http_port 3128 https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key ``` And test names where: The 'http_port' annotation indicates whether Squid HTTP port was used. The 'https_port' annotation indicates whether Squid HTTPS port was ...
closed
2013-09-25T03:16:36Z
2021-09-08T23:06:05Z
https://github.com/psf/requests/issues/1622
Unless someone else beats me to it, I'll probably take a look at duplicating this weekend. I have pretty much no context on the proxy work though so if anyone with some background on that wants to pair on this let me know.
GrahamDumpleton
40
Unless someone else beats me to it, I'll probably take a look at duplicating this weekend. I have pretty much no context on the proxy work though so if anyone with some background on that wants to pair on this let me know.
sigmavirus24
2013-09-25T03:25:34Z
https://github.com/psf/requests/issues/1622#issuecomment-25059873
0
psf/requests
http
968
Switch to Apache 2
I've been wanting to do this for a long time. I don't care bout incompatibility with GPLv2.
closed
2012-11-27T18:39:54Z
2021-09-09T05:30:45Z
https://github.com/psf/requests/issues/968
Evaluate licenses of vendored libraries (NOTICES) for compatibility.
kennethreitz
40
Evaluate licenses of vendored libraries (NOTICES) for compatibility.
kennethreitz
2012-11-27T18:40:33Z
https://github.com/psf/requests/issues/968#issuecomment-10770642
0
psf/requests
http
6,432
The latest version of requests (2.29.0) does not support urllib3 2.0.0
## The latest version of ``requests`` (``2.29.0``) does not support ``urllib3`` ``2.0.0`` ``urllib3`` ``2.0.0`` was just released: https://github.com/urllib3/urllib3/releases/tag/2.0.0 But currently ``requests`` ``2.29.0`` has a range bound on it: ``<1.27 and >=1.21.1`` for ``urllib3``. If you try to install a...
closed
2023-04-26T17:53:09Z
2023-08-12T19:30:38Z
https://github.com/psf/requests/issues/6432
Hi @mdmintz, this is intentional as discussed [here](https://github.com/psf/requests/pull/6430#issuecomment-1522542220). We'll move the pin once we get more data points on any issues in the major version bump. We have a responsibility to keep the majority of the Python ecosystem stable during the transition.
mdmintz
39
Hi @mdmintz, this is intentional as discussed [here](https://github.com/psf/requests/pull/6430#issuecomment-1522542220). We'll move the pin once we get more data points on any issues in the major version bump. We have a responsibility to keep the majority of the Python ecosystem stable during the transition.
nateprewitt
2023-04-26T17:55:32Z
https://github.com/psf/requests/issues/6432#issuecomment-1523829661
18
psf/requests
http
3,052
Why default to simplejson?
I've recently run into an issue where another library installed simple-json and because the requests library defaults to it if available, it caused all of our json requests to fail due to a decoding problem. I'm unclear why requests even defaults to simple-json anymore. I'd be happy to contribute to a PR to make the j...
closed
2016-03-15T20:55:07Z
2021-09-03T00:10:50Z
https://github.com/psf/requests/issues/3052
Thanks for this report! Please see issue #2516 for the last time this was discussed.
digitaldavenyc
39
Thanks for this report! Please see issue #2516 for the last time this was discussed.
Lukasa
2016-03-15T20:59:14Z
https://github.com/psf/requests/issues/3052#issuecomment-197016920
0
psf/requests
http
2,982
Error 404 for url, that contains relative path parts
Browser & other tools seem to ignore trailing dot in the URL. Unfortunately `requests` does not. Compare ``` $ curl -s https://github.com/. -o /dev/null -w "%{http_code}"; echo 200 ``` With ``` $ python -c 'import requests; print(requests.get("https://github.com/.").status_code)' 404 ```
closed
2016-01-27T20:55:05Z
2024-05-20T14:34:59Z
https://github.com/psf/requests/issues/2982
requests/api.py - request() ``` with sessions.Session() as session: return session.request(method=method, url=url.rstrip("."), **kwargs) ``` Not sure if this matches any style guides, but should help solve this issue
Lol4t0
39
requests/api.py - request() ``` with sessions.Session() as session: return session.request(method=method, url=url.rstrip("."), **kwargs) ``` Not sure if this matches any style guides, but should help solve this issue
StewPoll
2016-01-27T21:59:11Z
https://github.com/psf/requests/issues/2982#issuecomment-175881337
0
psf/requests
http
2,911
Can't use session proxy in its request for HTTPS protocol
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...
closed
2015-12-01T19:55:01Z
2021-09-08T20:01:01Z
https://github.com/psf/requests/issues/2911
Have you tried the same request without setting `s.auth`?
FabriceSh44
39
Have you tried the same request without setting `s.auth`?
Lukasa
2015-12-01T22:34:16Z
https://github.com/psf/requests/issues/2911#issuecomment-161117977
0
psf/requests
http
2,543
OpenSSL.SSL.SysCallError: (104, 'Connection reset by peer')
I'm using the python package `requests` to send requests to https://mobile.twitter.com/username/following. At first, I encounter the exception : requests.exceptions.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol. To solve that, I follow this solution to write a SSLAdapter to specify PROTOCOL_TLS...
closed
2015-04-10T01:31:08Z
2021-09-08T23:00:52Z
https://github.com/psf/requests/issues/2543
All of those exceptions indicate that Twitter is closing the connection on you. You should check whether your data is valid.
stamaimer
39
All of those exceptions indicate that Twitter is closing the connection on you. You should check whether your data is valid.
Lukasa
2015-04-10T02:22:23Z
https://github.com/psf/requests/issues/2543#issuecomment-91404503
0
psf/requests
http
1,910
100% processor usage during GET have to wait 60s for response
When GET request have to wait 60s for remote service response, processor usage increases to 100% - version 1 of "requests" worked in this case better. GET is configured with "cert" data and "timeout=120" over SSL connection.
closed
2014-02-11T11:11:44Z
2021-09-08T23:08:01Z
https://github.com/psf/requests/issues/1910
Do you have a publicly-accessible URL that I can test against?
e-manuel
39
Do you have a publicly-accessible URL that I can test against?
Lukasa
2014-02-11T11:13:22Z
https://github.com/psf/requests/issues/1910#issuecomment-34744987
0
psf/requests
http
1,198
max-retries-exceeded exceptions are confusing
hi, for example: ``` >>> requests.get('http://localhost:1111') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "requests/api.py", line 55, in get return request('get', url, **kwargs) File "requests/api.py", line 44, in request return session.request(method=method, url=url, **k...
closed
2013-02-15T14:59:41Z
2018-12-27T14:25:44Z
https://github.com/psf/requests/issues/1198
Requests wraps the exception for the users convenience. The original exception is part of the message although the Traceback is misleading. I'll think about how to improve this.
gabor
39
Requests wraps the exception for the users convenience. The original exception is part of the message although the Traceback is misleading. I'll think about how to improve this.
sigmavirus24
2013-02-15T15:35:56Z
https://github.com/psf/requests/issues/1198#issuecomment-13611915
0
psf/requests
http
281
Cookies need to be CookieJar-backed again.
closed
2011-11-19T17:59:54Z
2021-09-09T09:00:31Z
https://github.com/psf/requests/issues/281
k/v only doesn't account for same keys with different paths.
kennethreitz
39
k/v only doesn't account for same keys with different paths.
kennethreitz
2011-11-19T18:46:53Z
https://github.com/psf/requests/issues/281#issuecomment-2800227
0
psf/requests
http
4,076
ValueError: not enough values to unpack (expected 3, got 1)
When using requests, I've just upgraded and I'm having the following error: `import requests as rq` `File "C:\Users\_HOME_\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\__init__.py", line 53, in <module>` `major, minor, patch= urllib3_version` `ValueError: not enough values to unpack (...
closed
2017-05-27T14:47:31Z
2021-09-08T09:00:36Z
https://github.com/psf/requests/issues/4076
can you give me the output of `pip freeze`?
Javinator9889
38
can you give me the output of `pip freeze`?
kennethreitz
2017-05-27T14:54:29Z
https://github.com/psf/requests/issues/4076#issuecomment-304457116
0
psf/requests
http
3,099
overall timeout
We already make great use of the timeout parameter which allows setting per TCP transaction timeouts. This is very helpful! However, we also need to support an overall timeout across the connection. Reading the [docs on timeouts](http://docs.python-requests.org/en/master/user/quickstart/#timeouts) I see this isn't curr...
closed
2016-04-15T22:00:39Z
2021-09-08T18:00:47Z
https://github.com/psf/requests/issues/3099
@jribbens There are a few problems with this. Part 1 is that the complexity of such a patch is very high. To get it to behave correctly you need to repeatedly change timeouts at the socket level. This means that the patch needs to be passed pervasively though httplib, which we've already patched more than we'd like to...
emgerner-msft
38
@jribbens There are a few problems with this. Part 1 is that the complexity of such a patch is very high. To get it to behave correctly you need to repeatedly change timeouts at the socket level. This means that the patch needs to be passed pervasively though httplib, which we've already patched more than we'd like to...
Lukasa
2016-04-28T17:11:52Z
https://github.com/psf/requests/issues/3099#issuecomment-215498005
8
psf/requests
http
2,336
Timeout for connecting to proxy
I provided a bogus proxy, set a very short timeout and expected requests to fail very fast. Unfortunately the opposite happened. Is this behavior intentional? As far as I can tell there is no way to set a timeout for the proxy connection. ``` Python time python -c "import requests; print requests.__version__; requests...
closed
2014-11-13T12:10:06Z
2021-09-08T17:05:23Z
https://github.com/psf/requests/issues/2336
That's an interesting question. @kevinburke, got any idea?
glaslos
38
That's an interesting question. @kevinburke, got any idea?
Lukasa
2014-11-13T15:53:37Z
https://github.com/psf/requests/issues/2336#issuecomment-62913117
0
psf/requests
http
713
Support for "Expects" http header
It would be nice to have support for the Expect -> 100 Continue flow. This is specially important when we are doing uploads, since we will not need to transfer the whole data before we encounter a 401, for example. A typical use-case would be a streaming upload, with the data coming from a client and proxied on-the-fl...
closed
2012-07-10T21:25:00Z
2021-09-08T14:00:48Z
https://github.com/psf/requests/issues/713
This would be wonderful. I believe @durin42 has some thoughts about this as well.
edevil
38
This would be wonderful. I believe @durin42 has some thoughts about this as well.
kennethreitz
2012-07-10T21:44:55Z
https://github.com/psf/requests/issues/713#issuecomment-6890964
0
psf/requests
http
3,748
requests get(URL) never returns, even with Proxy!
99% of the times I use .get() i get responses in ms... but there are certain URLs that I work on, both http and https, they are available globally too(but can't be shared for some reason). What I found is that some of these .get() never actually returns a value instead .get() command never ends, it keeps running infini...
closed
2016-12-03T16:59:31Z
2016-12-05T14:34:26Z
https://github.com/psf/requests/issues/3748
@arunchandramouli have you considered setting a `timeout`? Beyond that, I'd advise you to not ask questions on a defect (issue) tracker. Instead, ask questions on [StackOverflow](stackoverflow.com).
arunchandramouli
37
@arunchandramouli have you considered setting a `timeout`? Beyond that, I'd advise you to not ask questions on a defect (issue) tracker. Instead, ask questions on [StackOverflow](stackoverflow.com).
sigmavirus24
2016-12-03T20:36:49Z
https://github.com/psf/requests/issues/3748#issuecomment-264663883
0
psf/requests
http
3,701
AttributeError: 'X509' object has no attribute '_x509'
While trying to use Slack API using slacker module that is based on Requests, I receive this SSL-related error: ``` Python 2.7.12 (default, Oct 11 2016, 05:24:00) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from sla...
closed
2016-11-17T12:54:24Z
2021-09-03T00:10:46Z
https://github.com/psf/requests/issues/3701
What version of PyOpenSSL do you have installed?
sapran
37
What version of PyOpenSSL do you have installed?
Lukasa
2016-11-17T12:55:20Z
https://github.com/psf/requests/issues/3701#issuecomment-261239706
0
psf/requests
http
2,949
Session's Authorization header isn't sent on redirect
I'm using requests to hit developer-api.nest.com and setting an Authorization header with a bearer token. On some requests, that API responds with an 307 redirect. When that happens, I still need the Authorization header to be sent on the subsequent request. I've tried using `requests.get()` as well as a session. I su...
closed
2015-12-28T21:44:14Z
2021-12-07T23:00:27Z
https://github.com/psf/requests/issues/2949
There's two Nest-specific workarounds. One is to pass the `auth` parameter with the access_token rather than using the Authorization header. I found this on https://gist.github.com/tylerdave/409ffa08e1d47b1a1e23 Another is to save a dictionary with the headers you'd use, don't follow redirects, and then make a secon...
jwineinger
37
There's two Nest-specific workarounds. One is to pass the `auth` parameter with the access_token rather than using the Authorization header. I found this on https://gist.github.com/tylerdave/409ffa08e1d47b1a1e23 Another is to save a dictionary with the headers you'd use, don't follow redirects, and then make a secon...
technicalpickles
2016-11-05T22:01:57Z
https://github.com/psf/requests/issues/2949#issuecomment-258644622
8
psf/requests
http
2,039
incomplete file upload
On Windows 7 64bit, uploading a file using requests via python-onedrive does not complete, to be more precise, only the first few bytes/kilobytes are uploaded. Modified models.py for debugging as follows: ``` def prepare(self, method=None, url=None, headers=None, files=None, data=None, params=None, auth=None...
closed
2014-05-12T19:18:35Z
2019-03-20T20:34:05Z
https://github.com/psf/requests/issues/2039
Out of interest, once you've sent the request what's the value of `len(r.request.body)`?
clem2
37
Out of interest, once you've sent the request what's the value of `len(r.request.body)`?
Lukasa
2014-05-12T19:37:52Z
https://github.com/psf/requests/issues/2039#issuecomment-42877859
0
psf/requests
http
1,457
Returns empty with Google over HTTPS
``` python import requests In [2]: r = requests.get('https://google.com') In [3]: r.text Out[3]: u'' In [4]: r = requests.get('http://google.com') In [5]: r.text Out[5]: u'<!doctype html><html itemscope="itemscope"... ```
closed
2013-07-13T08:40:53Z
2021-09-09T02:11:46Z
https://github.com/psf/requests/issues/1457
Facing similiar issue with Twitter too ``` python In [13]: r = requests.get('https://twitter.com') In [14]: r.text Out[14]: u'' In [15]: r = requests.get('http://twitter.com') In [16]: r.text Out[16]: u'' In [17]: r.history Out[17]: (<Response [301]>,) In [18]: r.history[0].headers['location'] Out[18]: 'https://t...
liquidscorpio
37
Facing similiar issue with Twitter too ``` python In [13]: r = requests.get('https://twitter.com') In [14]: r.text Out[14]: u'' In [15]: r = requests.get('http://twitter.com') In [16]: r.text Out[16]: u'' In [17]: r.history Out[17]: (<Response [301]>,) In [18]: r.history[0].headers['location'] Out[18]: 'https://t...
liquidscorpio
2013-07-13T08:43:37Z
https://github.com/psf/requests/issues/1457#issuecomment-20916794
0
psf/requests
http
4,043
python requests runs infinitely if the called script executes more than 2 minutes
I am setting up a vps. Everything has worked well with python requests module until I had to run a script on the server that exceeded two minutes. As soon as any script executes through python requests on the remote server for more than 2 minutes, the request goes on infinitely. It never returns or terminates. If I cal...
closed
2017-05-21T09:59:50Z
2021-09-08T10:00:42Z
https://github.com/psf/requests/issues/4043
This sounds very much like it relates to the web server you're running. Can you try with a different web server?
jj-one
36
This sounds very much like it relates to the web server you're running. Can you try with a different web server?
Lukasa
2017-05-21T15:43:00Z
https://github.com/psf/requests/issues/4043#issuecomment-302944592
0
psf/requests
http
1,915
TypeError: getresponse() got an unexpected keyword argument 'buffering'
Requests 2.2.1. Same thing happens in 1.2.3 (I upgraded from that). I get this traceback: ``` Traceback (most recent call last): File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 313, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: ge...
closed
2014-02-13T03:00:34Z
2017-03-16T09:35:23Z
https://github.com/psf/requests/issues/1915
For my own reference: this is 100% reproductible in changeset "2e3cbe6aed98" in my "heimdallr" Mercurial project, when running on master Raspberry PI.
jcea
36
For my own reference: this is 100% reproductible in changeset "2e3cbe6aed98" in my "heimdallr" Mercurial project, when running on master Raspberry PI.
jcea
2014-02-13T03:16:26Z
https://github.com/psf/requests/issues/1915#issuecomment-34944673
0
psf/requests
http
1,081
Generate multipart posts without a file
Currently, the only way to have a multipart form request is `r = requests.post(url, data=payload, files=files)` which may have a component ``` --3eeaadbfda0441b8be821bbed2962e4d Content-Disposition: form-data; name="file"; filename="filename.txt" Content-Type: text/plain content --3eeaadbfda0441b8be821bbed2962e4d-- `...
closed
2013-01-03T01:53:04Z
2021-09-07T00:06:10Z
https://github.com/psf/requests/issues/1081
This has been discussed before. It would represent a significant change to the API which I'm not sure @kennethreitz would like. Personally, I would be more in favor of exposing a function to generate multipart data from dictioniaries (lists of tuples, etc) in the API so users can use that and just pass the generated d...
ghost
36
This has been discussed before. It would represent a significant change to the API which I'm not sure @kennethreitz would like. Personally, I would be more in favor of exposing a function to generate multipart data from dictioniaries (lists of tuples, etc) in the API so users can use that and just pass the generated d...
sigmavirus24
2013-01-03T03:37:52Z
https://github.com/psf/requests/issues/1081#issuecomment-11834185
0
psf/requests
http
1,967
Running a single connection with pool_block == True, hangs the application
I have a problem where I'm trying to create a python script to test a single-threaded web server on an embedded device. I was having performance problems until I realized that I could only support one connection per session. When I made my own HTTP adapter to only use one connection with pool_block equal to True, one...
closed
2014-03-19T18:41:56Z
2021-09-09T00:01:11Z
https://github.com/psf/requests/issues/1967
Are you reading the full response from the request?
DoxaLogosGit
35
Are you reading the full response from the request?
Lukasa
2014-03-19T18:51:42Z
https://github.com/psf/requests/issues/1967#issuecomment-38091631
0
psf/requests
http
1,133
Pluggable Request objects?
It would be super cool if it were possible to plug a custom Request object over a Session object. However it looks as though the Request object is hardcoded into the request method, e.g. https://github.com/kennethreitz/requests/blob/1a87f15e6f8d22be6855424b46b80f66d178fe40/requests/sessions.py#L264 Any thoughts on thi...
closed
2013-01-23T23:04:09Z
2021-09-09T05:00:46Z
https://github.com/psf/requests/issues/1133
Like changing the Session class's `__init__(self)` to `__init__(self, req=None)` then in the request method only create a new Request() if self.req is None?
maxcountryman
35
Like changing the Session class's `__init__(self)` to `__init__(self, req=None)` then in the request method only create a new Request() if self.req is None?
alanhamlett
2013-01-24T08:46:49Z
https://github.com/psf/requests/issues/1133#issuecomment-12642206
0
psf/requests
http
2,651
Cannot make URL query string with a parameter without a value
URL query string may contain a parameter, which has no value i.e. http://host/path/?foo or http://host/path/?a=1&foo. Currently Requests does not provide support for that. ``` In [68]: d Out[68]: {'a': 1, 'foo': None} In [69]: tl Out[69]: [('a', 1), ('foo',)] In [70]: RequestEncodingMixin._encode_params(d) Out[70]:...
closed
2015-06-24T23:35:06Z
2021-02-08T02:01:02Z
https://github.com/psf/requests/issues/2651
I can see some value in this. For API reasons it could only ever work with the 'list of tuples' approach, but I'd be ok with us adding support for this. @sigmavirus24?
agilevic
34
I can see some value in this. For API reasons it could only ever work with the 'list of tuples' approach, but I'd be ok with us adding support for this. @sigmavirus24?
Lukasa
2015-06-25T06:59:47Z
https://github.com/psf/requests/issues/2651#issuecomment-115131320
0
psf/requests
http
557
Seeing SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
In our logs, I noticed this error when using requests to perform a POST to Facebook's Graph API using HTTPS: ``` File "/home/api/api/lib/python2.7/site-packages/requests/api.py", line 85, in post return request('post', url, data=data, **kwargs) File "/home/api/api/lib/python2.7/site-packages/requests/api.py", li...
closed
2012-04-19T20:18:29Z
2014-10-15T08:10:17Z
https://github.com/psf/requests/issues/557
Do you have `certifi` installed?
stantonk
34
Do you have `certifi` installed?
kennethreitz
2012-04-19T20:19:04Z
https://github.com/psf/requests/issues/557#issuecomment-5231020
0
psf/requests
http
3,212
SSL Error: bad handshake
I could not use your lib in CeontOS 7 with Python 2.7.5. I got this error: ``` File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 447, in send raise SSLError(e, request=request)...
closed
2016-05-20T17:20:55Z
2021-09-08T03:00:36Z
https://github.com/psf/requests/issues/3212
Aha, ok, we got there. `api.smartsheet.com` serves its TLS using what's known as a "cross-signed certificate". This was used because Verisign, the CA for `api.smartsheet.com`, originally used a 1024-bit root certificate. These were deprecated and replaced by stronger root certificates, but some older browsers and syst...
pensnarik
33
Aha, ok, we got there. `api.smartsheet.com` serves its TLS using what's known as a "cross-signed certificate". This was used because Verisign, the CA for `api.smartsheet.com`, originally used a 1024-bit root certificate. These were deprecated and replaced by stronger root certificates, but some older browsers and syst...
Lukasa
2016-05-23T15:53:24Z
https://github.com/psf/requests/issues/3212#issuecomment-221016311
17
psf/requests
http
2,717
"OverflowError: string longer than 2147483647 bytes" when trying requests.put
Hi, I'm trying to upload a file that weight about 3GB and I'm getting the following error: "OverflowError: string longer than 2147483647 bytes" If I understand correctly it seems like there's a 2GB limit? didnt manage to find any reference to such limiation or how to bypass it (if possible). The code i'm using is: ...
closed
2015-08-12T09:49:47Z
2020-11-10T14:53:32Z
https://github.com/psf/requests/issues/2717
Rather than reading the entire file and sending it across in a single request, would it be possible for you to use chunked transfer encoding? http://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests
EB123
33
Rather than reading the entire file and sending it across in a single request, would it be possible for you to use chunked transfer encoding? http://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests
demianbrecht
2015-08-12T14:00:40Z
https://github.com/psf/requests/issues/2717#issuecomment-130315063
0
psf/requests
http
2,519
Client Certificates w/Passphrases?
Hi, client certificates can be specified with the "cert" parameter. If I pass an encrypted client certificate, the underlying OpenSSL call will query for the corresponding passphrase, but that is not really a feasible way of handling this for a larger session with multiple calls, because the password is obviously not...
closed
2015-03-30T15:55:43Z
2024-05-20T14:36:24Z
https://github.com/psf/requests/issues/2519
Here's an alternative. Re-encode the cert to not require a passphrase. Run this script passing the .p12 as an argument. It'll prompt for the passphrase and generate a .pem that doesn't need one. Then it asks for a new passphrase (twice, for validation) that's used to build a new .p12. You can leave it blank and th...
tdussa
33
Here's an alternative. Re-encode the cert to not require a passphrase. Run this script passing the .p12 as an argument. It'll prompt for the passphrase and generate a .pem that doesn't need one. Then it asks for a new passphrase (twice, for validation) that's used to build a new .p12. You can leave it blank and th...
bedge
2018-05-23T17:35:02Z
https://github.com/psf/requests/issues/2519#issuecomment-391434308
1
psf/requests
http
2,406
Unusable `requests` in main and forked processes (`rq` worker script)
This is a follow up from https://github.com/kennethreitz/requests/issues/2399#issuecomment-69675695 As stated there, this is a problem which has to do with `requests` being used in both a main process and forked processes -- the `rq` worker script. If the network goes down even for a short while, `requests` raises few...
closed
2015-01-13T01:52:32Z
2021-09-08T15:00:53Z
https://github.com/psf/requests/issues/2406
Does requests misbehave if you pull the link down without forking? That is, if you have a single ordinary script, no forking or workers, using requests, does it hang if you run `ifconfig en0 down` in the same way?
ducu
33
Does requests misbehave if you pull the link down without forking? That is, if you have a single ordinary script, no forking or workers, using requests, does it hang if you run `ifconfig en0 down` in the same way?
Lukasa
2015-01-13T07:28:28Z
https://github.com/psf/requests/issues/2406#issuecomment-69705464
0
psf/requests
http
5,003
POST request works in Postman/cURL, but not in Requests
I have a POST request that works perfectly with both Postman an cURL (it returns a JSON blob of data). However, when I perform the exact same request with Python's Requests library, I get a 200 success response, but instead of my JSON blob, I get this: <html> <head> <META NAME="robots" CONTENT="noindex...
closed
2019-02-27T00:35:02Z
2021-11-26T04:00:30Z
https://github.com/psf/requests/issues/5003
This weird behavior has been reproduced. See [comment thread on StackOverfow](https://stackoverflow.com/questions/54878769/post-request-works-in-postman-but-not-in-python-requests-200-response-with-rob?noredirect=1#comment96632705_54878769).
mukundt
32
This weird behavior has been reproduced. See [comment thread on StackOverfow](https://stackoverflow.com/questions/54878769/post-request-works-in-postman-but-not-in-python-requests-200-response-with-rob?noredirect=1#comment96632705_54878769).
mukundt
2019-02-28T22:37:21Z
https://github.com/psf/requests/issues/5003#issuecomment-468467213
5
psf/requests
http
4,244
("bad handshake: SysCallError(-1, 'Unexpected EOF')",) despite using verify=False
Summary. I am trying to make a request to a private api with a private api with an expired certificate that I do not control. I am attempting to use verify=False in the request, but continue to get a ("bad handshake: SysCallError(-1, 'Unexpected EOF')",) error. I have tried using the old 2.11 cipher string, ...
closed
2017-08-15T21:09:26Z
2018-09-28T12:56:07Z
https://github.com/psf/requests/issues/4244
`verify=False` only prevents us from validating the certificate. Based on this error we aren't getting that far: the server is shutting down the connection. Is the server in question publicly reachable?
adamwilbert
32
`verify=False` only prevents us from validating the certificate. Based on this error we aren't getting that far: the server is shutting down the connection. Is the server in question publicly reachable?
Lukasa
2017-08-16T07:45:49Z
https://github.com/psf/requests/issues/4244#issuecomment-322692730
0
psf/requests
http
2,950
Unable to upload chunks to Flask
I do not know if it comes from flask or requests , I link this issue posted on Flask issues https://github.com/mitsuhiko/flask/issues/1668
closed
2015-12-29T08:46:10Z
2015-12-31T14:26:03Z
https://github.com/psf/requests/issues/2950
Are you sure the headers you posted in the Flask issue are right? They look totally invalid.
johaven
32
Are you sure the headers you posted in the Flask issue are right? They look totally invalid.
Lukasa
2015-12-29T09:42:40Z
https://github.com/psf/requests/issues/2950#issuecomment-167757184
0
psf/requests
http
2,117
Multipart files unicode filename
Starting from 2.0 requests does not send `filename` attribute of `Content-Disposition` header for multipart files with unicode names. Instead of this attribute with name `filename*` is sent. ``` # requests 1.2.3 >>> requests.post('http://ya.ru', files={'file': (u'файл', '123')}).request.body '--db7a9522a6344e26a4ca293...
closed
2014-07-02T15:53:05Z
2014-09-10T18:37:56Z
https://github.com/psf/requests/issues/2117
This is actually a bug in Django then. Using this syntax is what we're supposed to be using. We have to indicate to the server that we're sending a field whose content is not ASCII or Latin-1 (ISO-8859-1). The proper way to do so is the syntax you see there. It is defined in [Section 3.2.1 of RFC 5987](http://tools.iet...
homm
32
This is actually a bug in Django then. Using this syntax is what we're supposed to be using. We have to indicate to the server that we're sending a field whose content is not ASCII or Latin-1 (ISO-8859-1). The proper way to do so is the syntax you see there. It is defined in [Section 3.2.1 of RFC 5987](http://tools.iet...
sigmavirus24
2014-07-02T15:57:57Z
https://github.com/psf/requests/issues/2117#issuecomment-47795473
0
psf/requests
http
2,008
urllib3 has been updated to new version 1.8.1, "source_address" is supported. May the requests lib support it?
New version urllib3 has been updated to 1.8.1 which support the "source_address"(in Python v2.7). Could you do something change to support it. It's really useful and needed. I will appreciate it very much.
closed
2014-04-18T06:07:16Z
2018-03-23T02:08:42Z
https://github.com/psf/requests/issues/2008
Thanks for raising this issue! Requests doesn't plan to add this to the main API, it's simply not commonly used enough to justify the increased complexity. My recommendation is that you use our [Transport Adapter abstraction](http://docs.python-requests.org/en/latest/user/advanced/#transport-adapters) to provide the v...
bofortitude
32
Thanks for raising this issue! Requests doesn't plan to add this to the main API, it's simply not commonly used enough to justify the increased complexity. My recommendation is that you use our [Transport Adapter abstraction](http://docs.python-requests.org/en/latest/user/advanced/#transport-adapters) to provide the v...
Lukasa
2014-04-18T07:11:30Z
https://github.com/psf/requests/issues/2008#issuecomment-40791533
0
psf/requests
http
910
POST with json data and oauth auth_header signature_type not working
The following code does not generate an Authorization header. ``` python import requests from requests.auth import OAuth1 import json client_key = u'mykey' client_secret = u'mysecret' headeroauth = OAuth1( client_key, client_secret, None, None, signature_type='auth_header' ) payload = { "ty...
closed
2012-10-25T17:29:41Z
2021-09-09T04:00:40Z
https://github.com/psf/requests/issues/910
Nowhere in requests does `data` mean `json data` (at least from reading the code). If it's in the documentation then that needs to be corrected, but there is no section I know of where what you expect is promised. Granted, I would support a separate parameter `json` that would guarantee encoding of the data as json da...
alex-ethier
32
Nowhere in requests does `data` mean `json data` (at least from reading the code). If it's in the documentation then that needs to be corrected, but there is no section I know of where what you expect is promised. Granted, I would support a separate parameter `json` that would guarantee encoding of the data as json da...
sigmavirus24
2012-10-25T18:06:54Z
https://github.com/psf/requests/issues/910#issuecomment-9787736
0
psf/requests
http
30
HTTPS Cert Checking
`Response.raise_for_status()`
closed
2011-05-13T13:31:24Z
2021-09-09T10:00:40Z
https://github.com/psf/requests/issues/30
there are some patches/workarounds: http://stackoverflow.com/questions/1875052/using-paired-certificates-with-urllib2
kennethreitz
30
there are some patches/workarounds: http://stackoverflow.com/questions/1875052/using-paired-certificates-with-urllib2
kennethreitz
2011-05-13T13:33:05Z
https://github.com/psf/requests/issues/30#issuecomment-1152824
0
psf/requests
http
6,443
Latest release of requests causes urllib3 to throw an error
A previously working lambda function started throwing this error. { "errorMessage": "Unable to import module 'app': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/var/task/urllib3/util/ssl_.py)", "errorType": "Runtime.ImportModuleError", "requestId": "30bf7245-a58f-4192-81e3-5d122fb31d11", ...
closed
2023-05-04T22:27:39Z
2023-08-12T19:35:52Z
https://github.com/psf/requests/issues/6443
Hi @Rach81, This is unrelated to Requests. You're installing a version of urllib3 that's incompatible with the version of Boto3 bundled in your runtime. You'll either need to pin your urllib3 dependency to `urllib3<2` or rely on the one provided by Lambda.
Rach81
29
Hi @Rach81, This is unrelated to Requests. You're installing a version of urllib3 that's incompatible with the version of Boto3 bundled in your runtime. You'll either need to pin your urllib3 dependency to `urllib3<2` or rely on the one provided by Lambda.
nateprewitt
2023-05-04T22:32:18Z
https://github.com/psf/requests/issues/6443#issuecomment-1535490465
1
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4