number int64 6.57k 7.64k | html_url stringlengths 43 43 | title stringlengths 1 228 | body_clean stringlengths 0 55k | body_prose stringlengths 0 28k | text stringlengths 4 28k | comments listlengths 0 23 | state stringclasses 2
values | state_reason stringclasses 3
values | is_closed bool 2
classes | created_at timestamp[s]date 2023-11-05 07:13:53 2026-10-29 02:43:03 | closed_at timestamp[s]date 2023-11-05 11:30:32 2026-10-08 10:00:27 ⌀ | updated_at timestamp[s]date 2023-11-11 12:31:37 2026-10-29 02:43:03 | days_to_close float64 0 868 ⌀ | created_year_month stringdate 2023-11-01 00:00:00 2026-10-01 00:00:00 | labels listlengths 0 3 | issue_type stringclasses 6
values | comments_reported int64 0 23 | n_comments_collected int64 0 23 | comments_complete bool 2
classes | maintainer_replied bool 2
classes | hours_to_first_response float64 0 15.1k ⌀ | reactions_total int64 0 45 | author_id stringlengths 9 9 | author_association stringclasses 3
values | comment_author_ids listlengths 0 23 | comment_author_roles listlengths 0 23 | comment_by_issue_author listlengths 0 23 | has_code_block bool 2
classes | has_traceback bool 2
classes | title_words int64 1 41 | body_words int64 0 855 | locked bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,566 | https://github.com/psf/requests/issues/6566 | Import error with werkzeug | When I run `make ci` on the main branch, it throws this import error with werkzeug
```
ImportError: cannot import name 'parse_authorization_header' from 'werkzeug.http' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/werkzeug/http.py)
make: *** [Makefile:8: ci] Error 1
```
## Expected Result
To r... | When I run `make ci` on the main branch, it throws this import error with werkzeug
[CODE]
## Expected Result
To run make ci successfully on the main branch.
## Actual Result
Import error with latest version of werkzeug. I tried downgrading to a 2.3.X version of werkzeug and it ran without any issue.
## Reprod... | Import error with werkzeug. When I run `make ci` on the main branch, it throws this import error with werkzeug
[CODE]
## Expected Result
To run make ci successfully on the main branch.
## Actual Result
Import error with latest version of werkzeug. I tried downgrading to a 2.3.X version of werkzeug and it ran wi... | [
"This is being tracked in psf/httpbin"
] | closed | completed | true | 2023-11-05T07:13:53 | 2023-11-05T11:30:32 | 2024-11-05T00:04:28 | 0.18 | 2023-11 | [] | bug | 1 | 1 | true | false | 4.28 | 0 | user_0467 | CONTRIBUTOR | [
"user_0028"
] | [
"CONTRIBUTOR"
] | [
false
] | true | false | 4 | 59 | true |
6,567 | https://github.com/psf/requests/issues/6567 | Requests doesn't work on emscripten / webassembly | This is maybe verging on a feature request, I'm not sure...
Webassembly with emscripten is now an official python platform. However because it runs inside a browser sandbox environment, networking doesn't work normally, and hence nothing in requests works at all. However there is easy access to http(s) requests via th... | This is maybe verging on a feature request, I'm not sure...
Webassembly with emscripten is now an official python platform. However because it runs inside a browser sandbox environment, networking doesn't work normally, and hence nothing in requests works at all. However there is easy access to http(s) requests via th... | Requests doesn't work on emscripten / webassembly. This is maybe verging on a feature request, I'm not sure...
Webassembly with emscripten is now an official python platform. However because it runs inside a browser sandbox environment, networking doesn't work normally, and hence nothing in requests works at all. Howe... | [
"Hey @[USER], thanks for opening this issue. We actually have a very similar issue on urllib3 (the underlying library of Requests) that has a bounty available. If you wanted to contribute there then many libraries would gain the ability to use WASM Python.\n\n[URL]",
"I'm going to close this one now that [URL] is... | closed | completed | true | 2023-11-05T19:23:45 | 2023-12-01T00:19:34 | 2024-12-28T00:04:13 | 25.21 | 2023-11 | [] | bug | 2 | 2 | true | true | 1.16 | 0 | user_0466 | NONE | [
"user_0141",
"user_0141"
] | [
"MEMBER",
"MEMBER"
] | [
false,
false
] | false | false | 7 | 190 | true |
6,569 | https://github.com/psf/requests/issues/6569 | HTTPSConnectionPool(port=443): Max retries exceeded with url:(Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1129)'))) | I having a long lasting problem with my request connection is getting shutdown using Cloud Run. I couldnt solve it yet so here I am to get support.
Here is the full error:
```
Error occurred: HTTPSConnectionPool(host='google.serper.dev', port=443): Max retries exceeded with url: /search (Caused by SSLError(SSLZeroRetu... | I having a long lasting problem with my request connection is getting shutdown using Cloud Run. I couldnt solve it yet so here I am to get support.
Here is the full error:
[CODE]
Here is how I use request:
[CODE]
This only happens in Cloud Run although the error should be on those side, there must a setting to ... | HTTPSConnectionPool(port=443): Max retries exceeded with url:(Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1129)'))). I having a long lasting problem with my request connection is getting shutdown using Cloud Run. I couldnt solve it yet so here I am to get support.
Here is... | [
"Saw your comment in:\n[URL]\n\nJust wanted to remind anyone reading that Cloud Run does not allocate CPU outside request unless the revision is explicitly configured to do so; here are the docs:\n\n[URL]\n\nand here's a sample:\n\n: Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.co... | Since requests does not retry failed connections, a somewhat confusion exception is encountered by doing something like this.
[CODE]
I found in my searches about this exception that years ago this issue was reported and resolved in urllib3 by adding the ability to specify `retries=False` in the request: [URL]
The r... | Possible regression with how MaxRetryError is handled. Since requests does not retry failed connections, a somewhat confusion exception is encountered by doing something like this.
[CODE]
I found in my searches about this exception that years ago this issue was reported and resolved in urllib3 by adding the ability ... | [
"There is no regression here. That thread allows that for retries=False but requests always configures retries by default. You'll want to customize an HTTPAdapter to specify different behavior if you don't want to see a MaxRetryError in the exception message",
"So how many retries does requests configure? The doc... | closed | completed | true | 2023-11-16T21:07:04 | 2023-11-17T01:45:56 | 2024-11-17T00:04:48 | 0.19 | 2023-11 | [] | bug | 2 | 2 | true | false | 4.65 | 0 | user_0278 | NONE | [
"user_0028",
"user_0278"
] | [
"CONTRIBUTOR",
"NONE"
] | [
false,
true
] | true | false | 7 | 87 | true |
6,577 | https://github.com/psf/requests/issues/6577 | Improper URL serialization of boolean GET parameters | Constructing a GET request with a boolean parameter `foo` set to `True` results in `&foo=True` being appended to the URL path, instead of just `&foo`. This makes it inoperable with some APIs (such as the [NIST CVE API]([URL] that return an error when a string value is set for a boolean GET parameter.
Example:
```py
>>... | Constructing a GET request with a boolean parameter `foo` set to `True` results in `&foo=True` being appended to the URL path, instead of just `&foo`. This makes it inoperable with some APIs (such as the [NIST CVE API]([URL] that return an error when a string value is set for a boolean GET parameter.
Example:
[CODE] ... | Improper URL serialization of boolean GET parameters. Constructing a GET request with a boolean parameter `foo` set to `True` results in `&foo=True` being appended to the URL path, instead of just `&foo`. This makes it inoperable with some APIs (such as the [NIST CVE API]([URL] that return an error when a string value ... | [
"In the future, please search **closed and** open issues before creating new ones that are duplicates.",
"> In the future, please search **closed and** open issues before creating new ones that are duplicates.\n\nWhat makes you think I haven't done that? Instead of lecturing me, the minimum you can do is provide ... | closed | completed | true | 2023-11-17T22:36:19 | 2023-11-18T01:05:00 | 2024-11-18T00:04:47 | 0.1 | 2023-11 | [] | other | 2 | 2 | true | false | 2.48 | 0 | user_0277 | NONE | [
"user_0028",
"user_0277"
] | [
"CONTRIBUTOR",
"NONE"
] | [
false,
true
] | true | false | 7 | 157 | true |
6,578 | https://github.com/psf/requests/issues/6578 | Weird behaviour with https and proxy authentication | requests.get is getting weird with some combinations of dictionary keys and proxy authentication.
## Expected Result
```python
print(requests.get('[URL] proxies={"https" : '[URL]
```
Output:
`<Response [200]>`
## Actual Result
Doesn't run? (Maybe timeout)
But it somehow fixes itself with these changes
```python
pri... | requests.get is getting weird with some combinations of dictionary keys and proxy authentication.
## Expected Result
[CODE]
Output:
`<Response [200]>`
## Actual Result
Doesn't run? (Maybe timeout)
But it somehow fixes itself with these changes
[CODE]
Output:
`<Response [200]>`
## Reproduction Steps
[CODE]... | Weird behaviour with https and proxy authentication. requests.get is getting weird with some combinations of dictionary keys and proxy authentication.
## Expected Result
[CODE]
Output:
`<Response [200]>`
## Actual Result
Doesn't run? (Maybe timeout)
But it somehow fixes itself with these changes
[CODE]
Output:... | [
"proxies im using are https capable",
"misclick",
"its most likely that your proxies only support http protocol, it should work the way you have it, so its probably proxy issues.",
"> proxies im using are https capable\n\n> its most likely that your proxies only support http protocol, it should work the way y... | closed | not_planned | true | 2023-11-19T00:56:06 | 2026-04-04T19:08:21 | 2026-04-04T19:08:21 | 867.76 | 2023-11 | [] | other | 5 | 5 | true | true | 96.16 | 0 | user_0275 | NONE | [
"user_0275",
"user_0275",
"user_0276",
"user_0275",
"user_0007"
] | [
"NONE",
"NONE",
"NONE",
"NONE",
"MEMBER"
] | [
true,
true,
false,
true,
false
] | true | false | 7 | 57 | false |
6,582 | https://github.com/psf/requests/issues/6582 | "Recommended Packages and Extensions" page asyncio recommendations are outdated | While looking for an asyncio compatible recommendation for requests, I stumbled on the [documentation]([URL] provided by the project. It recommends Request-Threads, which does not seem to be actively developed (no new changes/releases in the past 5 years). txrequests is an alternative Twisted-based package that seems t... | While looking for an asyncio compatible recommendation for requests, I stumbled on the [documentation]([URL] provided by the project. It recommends Request-Threads, which does not seem to be actively developed (no new changes/releases in the past 5 years). txrequests is an alternative Twisted-based package that seems t... | "Recommended Packages and Extensions" page asyncio recommendations are outdated. While looking for an asyncio compatible recommendation for requests, I stumbled on the [documentation]([URL] provided by the project. It recommends Request-Threads, which does not seem to be actively developed (no new changes/releases in t... | [] | open | null | false | 2023-11-23T20:41:53 | null | 2023-12-28T02:07:05 | null | 2023-11 | [] | other | 0 | 0 | true | false | null | 0 | user_0463 | NONE | [] | [] | [] | false | false | 9 | 96 | false |
6,584 | https://github.com/psf/requests/issues/6584 | Status Code 425 named incorrectly | HTTP status code 425 is defined as "too early". While the defining RFC defines the code in the context of TLS, I regularly find APIs that use this status code to indicate to a client that an asynchronous job that has been started is still being processed, so the result can not yet be provided.
requests.status_codes ho... | HTTP status code 425 is defined as "too early". While the defining RFC defines the code in the context of TLS, I regularly find APIs that use this status code to indicate to a client that an asynchronous job that has been started is still being processed, so the result can not yet be provided.
requests.status_codes ho... | Status Code 425 named incorrectly. HTTP status code 425 is defined as "too early". While the defining RFC defines the code in the context of TLS, I regularly find APIs that use this status code to indicate to a client that an asynchronous job that has been started is still being processed, so the result can not yet be ... | [
"I would merge a change to add that to the type definition. Keep in mind unordered was in wide use before that rfc though which is why it has that definition. I doubt anyone is using it from us but we can't remove it.",
"Implementing this in an upcoming PR.",
"Here is a PR with relevant changes that I believe a... | closed | completed | true | 2023-11-24T20:53:31 | 2023-12-20T06:33:10 | 2024-12-22T00:04:54 | 25.4 | 2023-11 | [] | bug | 4 | 4 | true | true | 5.75 | 0 | user_0462 | NONE | [
"user_0028",
"user_0274",
"user_0274",
"user_0007"
] | [
"CONTRIBUTOR",
"CONTRIBUTOR",
"CONTRIBUTOR",
"MEMBER"
] | [
false,
false,
false,
false
] | true | false | 5 | 114 | true |
6,585 | https://github.com/psf/requests/issues/6585 | (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))) | I'm developing a program that scrapes news data using the requests library but while running I get this error. my proxy list is working correctly
error: Proxy: 103.21.244.100:80 - Error: HTTPSConnectionPool(host='www.nytimes.com', port=443): Max retries exceeded with url: /section/business/media (Caused by ProxyError... | I'm developing a program that scrapes news data using the requests library but while running I get this error. my proxy list is working correctly
error: Proxy: 103.21.244.100:80 - Error: HTTPSConnectionPool(host='www.nytimes.com', port=443): Max retries exceeded with url: /section/business/media (Caused by ProxyError... | (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))). I'm developing a program that scrapes news data using the requests library but while running I get this error. my proxy list is working correctly
error: Proxy: 103.21.244.100:80 - Error: HTTPSConnectionPool(host=... | [
"Hi @[USER], it looks like this may be a request for assistance rather than a bug in Requests. We're returning an error showing we're unable to connect to your proxy as it's currently been configured. We'd recommend posting on [StackOverflow]([URL] for help with general usage/configuration issues. We try to reserve... | closed | completed | true | 2023-11-26T06:22:50 | 2024-05-15T20:06:06 | 2025-05-16T00:04:54 | 171.57 | 2023-11 | [] | bug | 1 | 1 | true | true | 4,117.72 | 0 | user_0461 | NONE | [
"user_0007"
] | [
"MEMBER"
] | [
false
] | true | false | 12 | 63 | true |
6,586 | https://github.com/psf/requests/issues/6586 | The Content-Length header for string `data` counts Unicode characters in the string when it should count encoded bytes | A call like this:
```python
response = requests.post("[URL] data="👍👎")
```
auto sets the `Content-Length` header in the request to `2` when it should be `8`.
I hit this issue was making a request with a JSON body to a service I own (running behind AWS API Gateway) and having the service complain that there was no ... | A call like this:
[CODE]
auto sets the `Content-Length` header in the request to `2` when it should be `8`.
I hit this issue was making a request with a JSON body to a service I own (running behind AWS API Gateway) and having the service complain that there was no closing brace `}` in the JSON body. I was passing ... | The Content-Length header for string `data` counts Unicode characters in the string when it should count encoded bytes. A call like this:
[CODE]
auto sets the `Content-Length` header in the request to `2` when it should be `8`.
I hit this issue was making a request with a JSON body to a service I own (running behi... | [
"I assume that it is incorrect to require the data to be encoded as UTF-8, so I will work on a fix that removes the need for this hack. @[USER]",
"> I assume that it is incorrect to require the data to be encoded as UTF-8, so I will work on a fix that removes the need for this hack. @[USER]\n\nI do not understand... | closed | completed | true | 2023-11-27T22:31:09 | 2024-02-23T01:47:24 | 2025-02-23T00:04:47 | 87.14 | 2023-11 | [] | other | 7 | 7 | true | false | 19.57 | 1 | user_0272 | CONTRIBUTOR | [
"user_0271",
"user_0272",
"user_0272",
"user_0271",
"user_0273",
"user_0028",
"user_0272"
] | [
"NONE",
"CONTRIBUTOR",
"CONTRIBUTOR",
"NONE",
"NONE",
"CONTRIBUTOR",
"CONTRIBUTOR"
] | [
false,
true,
true,
false,
false,
false,
true
] | true | false | 18 | 263 | true |
6,588 | https://github.com/psf/requests/issues/6588 | Cannot run tests locally | I am trying to install the repository and run all the tests as recommended by the [Contribution Instructions]([URL] I am getting the following error when I perform the following. Importantly, what are the official instructions for installing the dev dependencies for `requests`? I cannot find an official instruction so ... | I am trying to install the repository and run all the tests as recommended by the [Contribution Instructions]([URL] I am getting the following error when I perform the following. Importantly, what are the official instructions for installing the dev dependencies for `requests`? I cannot find an official instruction so ... | Cannot run tests locally. I am trying to install the repository and run all the tests as recommended by the [Contribution Instructions]([URL] I am getting the following error when I perform the following. Importantly, what are the official instructions for installing the dev dependencies for `requests`? I cannot find a... | [
"Based on this commit in the `httpbin` repo, it looks like the werkzeug version is constrained, but the dev dependencies do not constrain it to <2.3. Werkzeug removed the `parse_authorization_headers` func in v3.x.\n\n[URL]",
"This is a duplicate of other closed issues. Httpbin needs to be released"
] | closed | completed | true | 2023-11-28T15:42:44 | 2023-11-29T14:17:43 | 2024-11-29T00:05:40 | 0.94 | 2023-11 | [] | bug | 2 | 2 | true | false | 22.58 | 0 | user_0271 | NONE | [
"user_0271",
"user_0028"
] | [
"NONE",
"CONTRIBUTOR"
] | [
true,
false
] | true | false | 4 | 73 | true |
6,591 | https://github.com/psf/requests/issues/6591 | Failed to establish a new connection: [Errno -2] Name or service not known | I have this code that is trying to divide a wordlist in 20 segments in order to create 20 threads that work with each segment when calling to fuzzer_directiorios and fuzzer_subdomains:
```
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
from concurrent.f... | I have this code that is trying to divide a wordlist in 20 segments in order to create 20 threads that work with each segment when calling to fuzzer_directiorios and fuzzer_subdomains:
[CODE]
My problem is when I execute any of both fuzzers this is what I obtain
 tests failing | One of the first steps in contributing to the repository is running the tests locally. However, the tests are failing with the error stated below. Looking through the latest main build, outside of version 3.7, the tests are failing on build as well ([URL]
## Expected Result
Running `python -m pytest tests` will gat... | One of the first steps in contributing to the repository is running the tests locally. However, the tests are failing with the error stated below. Looking through the latest main build, outside of version 3.7, the tests are failing on build as well ([URL]
## Expected Result
Running `python -m pytest tests` will gat... | Local (and build) tests failing. One of the first steps in contributing to the repository is running the tests locally. However, the tests are failing with the error stated below. Looking through the latest main build, outside of version 3.7, the tests are failing on build as well ([URL]
## Expected Result
Running ... | [
"In the future, please search **closed and** open issues before creating new ones that are duplicates.",
"@[USER] i did search and the most recent reference I found was older than a week when the build was still failing. Can you point me to the issue number in which it was closed please?"
] | closed | completed | true | 2023-11-30T15:15:39 | 2023-11-30T16:24:43 | 2024-11-30T00:04:18 | 0.05 | 2023-11 | [] | bug | 2 | 2 | true | false | 1.15 | 0 | user_0270 | NONE | [
"user_0028",
"user_0270"
] | [
"CONTRIBUTOR",
"NONE"
] | [
false,
true
] | true | true | 5 | 85 | true |
6,595 | https://github.com/psf/requests/issues/6595 | Is it possible to send async generator as `data` argument of request method? | I'm using `requests` module in Python and I want to send data in request streaming way. so I applied chunked-encoded request according to [this document]([URL]
However, the data to send is provided with another async method. Honestly speaking, I also use Sanic framework, and I read the stream data from `await sanic.r... | I'm using `requests` module in Python and I want to send data in request streaming way. so I applied chunked-encoded request according to [this document]([URL]
However, the data to send is provided with another async method. Honestly speaking, I also use Sanic framework, and I read the stream data from `await sanic.r... | Is it possible to send async generator as `data` argument of request method?. I'm using `requests` module in Python and I want to send data in request streaming way. so I applied chunked-encoded request according to [this document]([URL]
However, the data to send is provided with another async method. Honestly speaki... | [
"It is not possible to use an async generator with requests. For help with your code, please use [StackOverflow]([URL]"
] | closed | completed | true | 2023-12-01T08:39:11 | 2023-12-01T14:06:43 | 2024-12-02T00:05:56 | 0.23 | 2023-12 | [
"Question/Not a bug",
"actions/autoclose-qa"
] | question | 1 | 1 | true | false | 5.46 | 0 | user_0459 | NONE | [
"user_0028"
] | [
"CONTRIBUTOR"
] | [
false
] | true | false | 13 | 132 | true |
6,598 | https://github.com/psf/requests/issues/6598 | affected urllib3 and certifi packages (older version keeping in setup.py file) | Please upgrade the urllib3 & certifi(2023.7.22) libraries.
use urllib3 >=1.26.18
certifi >= 2023.7.22
## Expected Result
Detecting
detecting as vulnerabilites
[URL]
## Actual Result
Upgrade to a patched version of urllib3 (v1.26.18 or v2.0.7)
Disable redirects for services that you aren't expecting to respond w... | Please upgrade the urllib3 & certifi(2023.7.22) libraries.
use urllib3 >=1.26.18
certifi >= 2023.7.22
## Expected Result
Detecting
detecting as vulnerabilites
[URL]
## Actual Result
Upgrade to a patched version of urllib3 (v1.26.18 or v2.0.7)
Disable redirects for services that you aren't expecting to respond w... | affected urllib3 and certifi packages (older version keeping in setup.py file). Please upgrade the urllib3 & certifi(2023.7.22) libraries.
use urllib3 >=1.26.18
certifi >= 2023.7.22
## Expected Result
Detecting
detecting as vulnerabilites
[URL]
## Actual Result
Upgrade to a patched version of urllib3 (v1.26.18 ... | [
"Both of those versions are compatible with the current version of requests. There's nothing to do here"
] | closed | completed | true | 2023-12-08T11:09:48 | 2023-12-08T11:13:11 | 2024-12-08T00:05:04 | 0 | 2023-12 | [] | other | 1 | 1 | true | false | 0.05 | 0 | user_0458 | NONE | [
"user_0028"
] | [
"CONTRIBUTOR"
] | [
false
] | true | false | 11 | 76 | true |
6,601 | https://github.com/psf/requests/issues/6601 | Since migration of urllib3 to 2.x data-strings with umlauts in a post request are truncated | Before requests 2.30 it was possible to just pass a Python-string with umlauts (äöü...) to a `requests.post` call. Since urllib3 2.x this causes the body of the request to be truncated. It seems that the Content-Length is calculated based on the length of the string and the string itself is handed over to the call as a... | Before requests 2.30 it was possible to just pass a Python-string with umlauts (äöü...) to a `requests.post` call. Since urllib3 2.x this causes the body of the request to be truncated. It seems that the Content-Length is calculated based on the length of the string and the string itself is handed over to the call as a... | Since migration of urllib3 to 2.x data-strings with umlauts in a post request are truncated. Before requests 2.30 it was possible to just pass a Python-string with umlauts (äöü...) to a `requests.post` call. Since urllib3 2.x this causes the body of the request to be truncated. It seems that the Content-Length is calcu... | [
"Just saw [URL]\nSeems to be the same issue."
] | closed | completed | true | 2023-12-13T14:09:36 | 2023-12-13T23:39:10 | 2024-12-13T00:06:48 | 0.4 | 2023-12 | [] | feature_request | 1 | 1 | true | false | null | 0 | user_0269 | NONE | [
"user_0269"
] | [
"NONE"
] | [
true
] | true | false | 15 | 140 | true |
6,602 | https://github.com/psf/requests/issues/6602 | the first response history url is incorrect | The first url returned from response.url is different than the url passed to requests.get
## Expected Result
I expected the first history url to be that same as passed into requests.get
```
Redirect #1
URL: [URL]
```
## Actual Result
The first redirected url is always the same as the the first response.headers.ge... | The first url returned from response.url is different than the url passed to requests.get
## Expected Result
I expected the first history url to be that same as passed into requests.get
[CODE]
## Actual Result
The first redirected url is always the same as the the first response.headers.get('Location')
[CODE] ... | the first response history url is incorrect. The first url returned from response.url is different than the url passed to requests.get
## Expected Result
I expected the first history url to be that same as passed into requests.get
[CODE]
## Actual Result
The first redirected url is always the same as the the fi... | [
"Hi @[USER],\n\nI'm assuming you're referring to the trailing `/` in `[URL] That's a standard semantic of url normalization, and is identical to what you provided. This should be treated the same by a properly functioning server.\n\n> In general, a URI that uses the generic syntax for authority with an\n empty path... | closed | completed | true | 2023-12-15T01:50:08 | 2023-12-20T06:32:20 | 2024-12-22T00:04:53 | 5.2 | 2023-12 | [] | bug | 1 | 1 | true | true | 124.7 | 0 | user_0457 | NONE | [
"user_0007"
] | [
"MEMBER"
] | [
false
] | true | false | 7 | 118 | true |
6,604 | https://github.com/psf/requests/issues/6604 | Links at docs site return 404 | At [URL] all links under "Usefull links" lead to 404 page
## Expected Result
Open corresponding docs page
## Actual Result
404 page
## Reproduction Steps
- Open [URL]
- Click on "[Quickstart]([URL]
## System Information
Not applicable | At [URL] all links under "Usefull links" lead to 404 page
## Expected Result
Open corresponding docs page
## Actual Result
404 page
## Reproduction Steps
- Open [URL]
- Click on "[Quickstart]([URL]
## System Information
Not applicable | Links at docs site return 404. At [URL] all links under "Usefull links" lead to 404 page
## Expected Result
Open corresponding docs page
## Actual Result
404 page
## Reproduction Steps
- Open [URL]
- Click on "[Quickstart]([URL]
## System Information
Not applicable | [
"Looks like `.html` at the end of link is what's missing",
"Working on it.",
"Resolved in #6605."
] | closed | completed | true | 2023-12-17T06:33:58 | 2023-12-20T06:21:53 | 2024-12-22T00:04:55 | 2.99 | 2023-12 | [] | documentation | 3 | 3 | true | true | 14.96 | 2 | user_0267 | NONE | [
"user_0267",
"user_0268",
"user_0007"
] | [
"NONE",
"CONTRIBUTOR",
"MEMBER"
] | [
true,
false,
false
] | false | false | 6 | 38 | true |
6,610 | https://github.com/psf/requests/issues/6610 | I don't think the name of this function is appropriate, because the return value of this function is a ConnectionPool object, and the first sentence of the comment is also wrong, which makes it a huge difficulty for me to read!! | def get_connection(self, url, proxies=None):
"""Returns a urllib3 connection for the given URL. This should not be
called from user code, and is only exposed for use when subclassing the
:class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.
:param url: The URL to connect to.
:param proxies: (optional) A Requests-... | def get_connection(self, url, proxies=None):
"""Returns a urllib3 connection for the given URL. This should not be
called from user code, and is only exposed for use when subclassing the
:class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.
:param url: The URL to connect to.
:param proxies: (optional) A Requests-... | I don't think the name of this function is appropriate, because the return value of this function is a ConnectionPool object, and the first sentence of the comment is also wrong, which makes it a huge difficulty for me to read!!. def get_connection(self, url, proxies=None):
"""Returns a urllib3 connection for the give... | [
"adapters.HTTPAdapter.get_connection",
"You're right. As documented we are returning a connection pool which behaves almost identically to a connection. Alas, that method and that contract has existed for over a decade at this point, so we will not be changing it"
] | closed | not_planned | true | 2023-12-21T12:11:29 | 2023-12-21T12:53:12 | 2024-12-22T00:04:50 | 0.03 | 2023-12 | [] | bug | 2 | 2 | true | false | 0.69 | 2 | user_0266 | NONE | [
"user_0266",
"user_0028"
] | [
"NONE",
"CONTRIBUTOR"
] | [
true,
false
] | false | false | 41 | 52 | true |
6,611 | https://github.com/psf/requests/issues/6611 | Unexpected `UnicodeError` on some URL | Seems that `requests` haven't handle well some url which `curl` handle quite well.
## Expected Result
Should work.
## Actual Result
Crashed as `UnicodeError: label empty or too long`
## Reproduction Steps
```python
import requests
requests.get("[URL]
```
## System Information
```json
{
"chardet": {
"version"... | Seems that `requests` haven't handle well some url which `curl` handle quite well.
## Expected Result
Should work.
## Actual Result
Crashed as `UnicodeError: label empty or too long`
## Reproduction Steps
[CODE]
## System Information
[CODE] | Unexpected `UnicodeError` on some URL. Seems that `requests` haven't handle well some url which `curl` handle quite well.
## Expected Result
Should work.
## Actual Result
Crashed as `UnicodeError: label empty or too long`
## Reproduction Steps
[CODE]
## System Information
[CODE] | [
"I want to work on this, it would be great if anyone assign this to me!",
"Duplicate of #6026 #4187 and many others"
] | closed | completed | true | 2023-12-22T19:42:09 | 2024-01-02T12:42:58 | 2025-01-03T00:04:15 | 10.71 | 2023-12 | [] | bug | 2 | 2 | true | false | 111.52 | 0 | user_0456 | NONE | [
"user_0265",
"user_0028"
] | [
"NONE",
"CONTRIBUTOR"
] | [
false,
false
] | true | false | 5 | 37 | true |
6,614 | https://github.com/psf/requests/issues/6614 | python requests.get() stuck | url=links[x]
try:
response=requests.get(url,headers=HEADERLISTS,proxies={"http":proxy_lists[prox_index]},timeout=(10,10))
except Exception as e:
print("Error : ",e)
sys.stderr = open('error.log', 'a+', encoding='utf-8')
traceback.print_exc()
sys.stderr.close()
prox_index+=1
time.sleep(1)
continue
if respon... | url=links[x]
try:
response=requests.get(url,headers=HEADERLISTS,proxies={"http":proxy_lists[prox_index]},timeout=(10,10))
except Exception as e:
print("Error : ",e)
sys.stderr = open('error.log', 'a+', encoding='utf-8')
traceback.print_exc()
sys.stderr.close()
prox_index+=1
time.sleep(1)
continue
if respon... | python requests.get() stuck. url=links[x]
try:
response=requests.get(url,headers=HEADERLISTS,proxies={"http":proxy_lists[prox_index]},timeout=(10,10))
except Exception as e:
print("Error : ",e)
sys.stderr = open('error.log', 'a+', encoding='utf-8')
traceback.print_exc()
sys.stderr.close()
prox_index+=1
time.... | [
"This doesn't look like a bug with requests library but with your code. Please ask in StackOverflow and using the `python-requests` tag."
] | closed | not_planned | true | 2023-12-25T11:09:00 | 2023-12-25T15:05:14 | 2024-12-25T00:04:12 | 0.16 | 2023-12 | [
"Question/Not a bug"
] | question | 1 | 1 | true | false | 0.87 | 0 | user_0380 | NONE | [
"user_0044"
] | [
"NONE"
] | [
false
] | false | false | 3 | 66 | true |
6,615 | https://github.com/psf/requests/issues/6615 | How to use multiple redundant hosts | I would like to understand whether (and how) it is possible to configure requests to target multiple redundant hosts and to use one of them that is reachable.
Following the guideline to post such help requests in SO, I asked that in [URL] and got a response there which so far I did not get to work. So I wanted to ask ... | I would like to understand whether (and how) it is possible to configure requests to target multiple redundant hosts and to use one of them that is reachable.
Following the guideline to post such help requests in SO, I asked that in [URL] and got a response there which so far I did not get to work. So I wanted to ask ... | How to use multiple redundant hosts. I would like to understand whether (and how) it is possible to configure requests to target multiple redundant hosts and to use one of them that is reachable.
Following the guideline to post such help requests in SO, I asked that in [URL] and got a response there which so far I did... | [
"@[USER] looking at your StackOverflow question you're saying you don't want to use things that are the standard for achieving this. You don't want to use a load balancer because you don't want a single address (which doesn't make a great deal of sense) but fine. Is there a reason you're not leveraging DNS on your ... | closed | completed | true | 2023-12-30T13:24:51 | 2024-01-01T12:45:31 | 2025-01-03T00:04:16 | 1.97 | 2023-12 | [] | question | 1 | 1 | true | false | 47.34 | 0 | user_0455 | NONE | [
"user_0028"
] | [
"CONTRIBUTOR"
] | [
false
] | false | false | 6 | 65 | true |
6,616 | https://github.com/psf/requests/issues/6616 | sslv3 alert handshake failure | Trying to connect [URL] using requests module but it raises the ssl error when using requests==2.31.0 but not on when using requests==2.29.0 but have not tried it on v2.30
## Expected Result
The web page html text content
## Actual Result
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnect... | Trying to connect [URL] using requests module but it raises the ssl error when using requests==2.31.0 but not on when using requests==2.29.0 but have not tried it on v2.30
## Expected Result
The web page html text content
## Actual Result
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnect... | sslv3 alert handshake failure. Trying to connect [URL] using requests module but it raises the ssl error when using requests==2.31.0 but not on when using requests==2.29.0 but have not tried it on v2.30
## Expected Result
The web page html text content
## Actual Result
raise SSLError(e, request=request)
requests.ex... | [
"Hi there! Thanks for opening this issue. Unfortunately, it seems this is a request for help instead of a report of a defect in the project. Please use [StackOverflow]([URL] for general usage questions instead and only report defects here.",
"This (and some similar recent issues reported here) are probably a resu... | closed | completed | true | 2024-01-01T23:02:23 | 2024-01-02T12:36:52 | 2024-02-29T02:38:51 | 0.57 | 2024-01 | [] | bug | 4 | 4 | true | true | 13.57 | 1 | user_0454 | NONE | [
"user_0028",
"user_0264",
"user_0007",
"user_0264"
] | [
"CONTRIBUTOR",
"NONE",
"MEMBER",
"NONE"
] | [
false,
false,
false,
false
] | true | false | 4 | 75 | true |
6,622 | https://github.com/psf/requests/issues/6622 | Refresh Test PyPi Package | The Python Package on [TestPyPI has not been updated since 14 March 2015 i.e. 2.5.4.1.]([URL] and therefore references the deprecated `python-requests.org`
[URL] is my recent Twitter thread with @[USER] | The Python Package on [TestPyPI has not been updated since 14 March 2015 i.e. 2.5.4.1.]([URL] and therefore references the deprecated `python-requests.org`
[URL] is my recent Twitter thread with @[USER] | Refresh Test PyPi Package. The Python Package on [TestPyPI has not been updated since 14 March 2015 i.e. 2.5.4.1.]([URL] and therefore references the deprecated `python-requests.org`
[URL] is my recent Twitter thread with @[USER] | [
"No. TestPyPI generally should be evicting those after a period of time thus someone is uploading that. Further TestPyPI isn't intended to have any use besides verifying your upload works. Don't install things from there",
"@[USER] wrote:\n> No. TestPyPI generally should be evicting those after a period of time t... | closed | not_planned | true | 2024-01-17T01:28:03 | 2024-01-17T01:57:07 | 2025-01-17T00:04:17 | 0.02 | 2024-01 | [] | other | 2 | 2 | true | false | 0.48 | 0 | user_0263 | NONE | [
"user_0028",
"user_0263"
] | [
"CONTRIBUTOR",
"NONE"
] | [
false,
true
] | false | false | 4 | 29 | true |
6,625 | https://github.com/psf/requests/issues/6625 | How to get IP address of connected host after getting the response? | Hello,
I'm trying to understand how I could access information about host that the request connected to. I have situation when behind a hostname, there is a multiple IP addresses that you can connect to, so for example `x.com` can route me to `1.2.3.4` or `2.3.4.5`. I need that information after receiving response fro... | Hello,
I'm trying to understand how I could access information about host that the request connected to. I have situation when behind a hostname, there is a multiple IP addresses that you can connect to, so for example `x.com` can route me to `1.2.3.4` or `2.3.4.5`. I need that information after receiving response fro... | How to get IP address of connected host after getting the response?. Hello,
I'm trying to understand how I could access information about host that the request connected to. I have situation when behind a hostname, there is a multiple IP addresses that you can connect to, so for example `x.com` can route me to `1.2.3.... | [
"As described in the template, we won't be able to answer questions on this issue tracker. Please use [Stack Overflow]([URL]"
] | closed | completed | true | 2024-01-23T15:10:15 | 2024-01-23T15:10:26 | 2024-01-23T15:10:28 | 0 | 2024-01 | [
"Question/Not a bug",
"actions/autoclose-qa"
] | question | 1 | 1 | true | false | 0 | 0 | user_0453 | NONE | [
"user_0023"
] | [
"NONE"
] | [
false
] | true | false | 12 | 92 | true |
6,627 | https://github.com/psf/requests/issues/6627 | Kenneth Reitz, Take care of yourself. | I am also the author of a popular open-source library (MagicIndicator, 10K stars). Similarly, I have experienced manic depression (bipolar disorder), but I have overcome it and now lead a normal, positive life. I hope you recover soon too. Keep fighting! | I am also the author of a popular open-source library (MagicIndicator, 10K stars). Similarly, I have experienced manic depression (bipolar disorder), but I have overcome it and now lead a normal, positive life. I hope you recover soon too. Keep fighting! | Kenneth Reitz, Take care of yourself.. I am also the author of a popular open-source library (MagicIndicator, 10K stars). Similarly, I have experienced manic depression (bipolar disorder), but I have overcome it and now lead a normal, positive life. I hope you recover soon too. Keep fighting! | [
"Closing this issue as it's not an issue in Requests. Please consider avenues of messaging folks directly, opening GitHub issues pings thousands of unrelated people."
] | closed | completed | true | 2024-01-31T02:10:27 | 2024-01-31T02:16:26 | 2024-01-31T02:40:14 | 0 | 2024-01 | [] | other | 1 | 1 | true | true | 0.1 | 0 | user_0452 | NONE | [
"user_0141"
] | [
"MEMBER"
] | [
false
] | false | false | 6 | 41 | true |
6,628 | https://github.com/psf/requests/issues/6628 | [BUG] JSONDecodeError can't be deserialized - invalid JSON raises a BrokenProcessPool and crashes the entire process pool | Hi all,
I've stumbled upon a bug in the `requests` library, and have a proposal for a fix.
In short: I have a process pool running tasks in parallel, that are among other things doing queries to third-party APIs. One third-party returns an invalid JSON document as response in case of error.
However, instead of just ... | Hi all,
I've stumbled upon a bug in the `requests` library, and have a proposal for a fix.
In short: I have a process pool running tasks in parallel, that are among other things doing queries to third-party APIs. One third-party returns an invalid JSON document as response in case of error.
However, instead of just ... | [BUG] JSONDecodeError can't be deserialized - invalid JSON raises a BrokenProcessPool and crashes the entire process pool. Hi all,
I've stumbled upon a bug in the `requests` library, and have a proposal for a fix.
In short: I have a process pool running tasks in parallel, that are among other things doing queries to ... | [
"As mentioned I've raised [URL] hopefully the proposal makes sense."
] | closed | completed | true | 2024-01-31T16:06:02 | 2024-02-22T20:27:39 | 2025-05-16T00:04:53 | 22.18 | 2024-01 | [] | bug | 1 | 1 | true | false | null | 0 | user_0262 | CONTRIBUTOR | [
"user_0262"
] | [
"CONTRIBUTOR"
] | [
true
] | true | true | 17 | 460 | true |
6,630 | https://github.com/psf/requests/issues/6630 | Multipart/form-data requests creates mismatched boundaries between request body and headers | ## Expected Result
multipart/form-data requests should have the same boundary in the request content-type headers and request body:
Content-Type header: `multipart/form-data; boundary=bb8517293e3e961b2e7dfbd4e303fe56`
Boundary for request body: `--bb8517293e3e961b2e7dfbd4e303fe56`
## Actual Result
multipart/form-data ... | ## Expected Result
multipart/form-data requests should have the same boundary in the request content-type headers and request body:
Content-Type header: `multipart/form-data; boundary=bb8517293e3e961b2e7dfbd4e303fe56`
Boundary for request body: `--bb8517293e3e961b2e7dfbd4e303fe56`
## Actual Result
multipart/form-data ... | Multipart/form-data requests creates mismatched boundaries between request body and headers. ## Expected Result
multipart/form-data requests should have the same boundary in the request content-type headers and request body:
Content-Type header: `multipart/form-data; boundary=bb8517293e3e961b2e7dfbd4e303fe56`
Boundary... | [
"I cannot reproduce this at all. The only time the boundary tends to differ in the header from what's in the body is when the user overrides the Content-Type header manually.\n\nIn the future, please search **closed and** open issues before creating new ones that are duplicates."
] | closed | completed | true | 2024-02-01T19:04:24 | 2024-02-03T12:26:40 | 2025-02-03T00:04:31 | 1.72 | 2024-02 | [
"Question/Not a bug"
] | question | 1 | 1 | true | false | 41.37 | 0 | user_0451 | NONE | [
"user_0028"
] | [
"CONTRIBUTOR"
] | [
false
] | true | false | 10 | 64 | true |
6,631 | https://github.com/psf/requests/issues/6631 | `params` might be misnamed? | ### Summary
Being a bit pedantic but isn't it that the `parameters` of a URL are a ";<parameters>" affair inside the path e.g. `[URL] ([RFC source]([URL] and [summary]([URL] and what Requests calls `params` is actually the `query`.. which I long have been calling the "querystring" thanks to my days of Classic ASP prog... | ### Summary
Being a bit pedantic but isn't it that the `parameters` of a URL are a ";<parameters>" affair inside the path e.g. `[URL] ([RFC source]([URL] and [summary]([URL] and what Requests calls `params` is actually the `query`.. which I long have been calling the "querystring" thanks to my days of Classic ASP prog... | `params` might be misnamed?. ### Summary
Being a bit pedantic but isn't it that the `parameters` of a URL are a ";<parameters>" affair inside the path e.g. `[URL] ([RFC source]([URL] and [summary]([URL] and what Requests calls `params` is actually the `query`.. which I long have been calling the "querystring" thanks t... | [
"Parameters is another common name for the parsed (not encoded) pieces of the query string. `params` are meant to be passed as a native python object (e.g., dictionary of string to string, sequence of tuples of length 2, etc). So if you parsed a query string into parameters on the server side, the client side would... | closed | not_planned | true | 2024-02-02T13:29:53 | 2024-02-03T10:11:54 | 2025-02-03T00:04:32 | 0.86 | 2024-02 | [] | question | 1 | 1 | true | false | 2.14 | 0 | user_0450 | NONE | [
"user_0028"
] | [
"CONTRIBUTOR"
] | [
false
] | false | false | 4 | 134 | true |
6,633 | https://github.com/psf/requests/issues/6633 | Getting warning while running databricks cli command in azure devops | Hello team,
i am using Databricks Cli for deployment of notebooks on azure and it is throwing below warning. Could you help me to resolve warning? Also i am using pip install --upgrade urllib3 chardet command to upgrade but still it is giving warning.
/usr/lib/python3/dist-packages/requests/__init__.py:87: RequestsDep... | Hello team,
i am using Databricks Cli for deployment of notebooks on azure and it is throwing below warning. Could you help me to resolve warning? Also i am using pip install --upgrade urllib3 chardet command to upgrade but still it is giving warning.
/usr/lib/python3/dist-packages/requests/__init__.py:87: RequestsDep... | Getting warning while running databricks cli command in azure devops. Hello team,
i am using Databricks Cli for deployment of notebooks on azure and it is throwing below warning. Could you help me to resolve warning? Also i am using pip install --upgrade urllib3 chardet command to upgrade but still it is giving warnin... | [
"Hi there! Thanks for opening this issue. Unfortunately, it seems this is a request for help instead of a report of a defect in the project. Please use [StackOverflow]([URL] for general usage questions instead and only report defects here."
] | closed | not_planned | true | 2024-02-05T20:15:08 | 2024-02-05T20:18:37 | 2024-02-05T20:18:40 | 0 | 2024-02 | [] | bug | 1 | 1 | true | false | 0.06 | 0 | user_0449 | NONE | [
"user_0028"
] | [
"CONTRIBUTOR"
] | [
false
] | false | false | 10 | 106 | true |
6,635 | https://github.com/psf/requests/issues/6635 | IPv6 address change for sequential gets | I'm not sure, if the following issue is caused by requests or one of the underlying libraries.
The library [python-fritzhome]([URL] uses requests to connect to the HTTP interface of a router called FRITZ!Box. During sequential get calls, the IPv6 address is switched.
I already opened an [issue]([URL] for the mentioned... | I'm not sure, if the following issue is caused by requests or one of the underlying libraries.
The library [python-fritzhome]([URL] uses requests to connect to the HTTP interface of a router called FRITZ!Box. During sequential get calls, the IPv6 address is switched.
I already opened an [issue]([URL] for the mentioned... | IPv6 address change for sequential gets. I'm not sure, if the following issue is caused by requests or one of the underlying libraries.
The library [python-fritzhome]([URL] uses requests to connect to the HTTP interface of a router called FRITZ!Box. During sequential get calls, the IPv6 address is switched.
I already ... | [
"Removing the sleep calls did not change anything:\n
sess.get("[URL]
time.sleep(4)
sess.get("[URL] # This creates a new connection and the previous is closed
```
I've found some answers that point t... | Hi i want to know if it is possible for connections in session pool to have a timeout.
For example
[CODE]
I've found some answers that point to setting default_socket_options, but that doesn't seem to close sessions i always end up with this behaviour while logging.
[CODE]
This doesn't start a new https connect... | requests Session and pool timeout.. Hi i want to know if it is possible for connections in session pool to have a timeout.
For example
[CODE]
I've found some answers that point to setting default_socket_options, but that doesn't seem to close sessions i always end up with this behaviour while logging.
[CODE]
Th... | [
"As described in the template, we won't be able to answer questions on this issue tracker. Please use [Stack Overflow]([URL]"
] | closed | completed | true | 2024-02-07T19:04:44 | 2024-02-07T19:04:56 | 2024-02-07T19:04:56 | 0 | 2024-02 | [
"Question/Not a bug",
"actions/autoclose-qa"
] | question | 1 | 1 | true | false | 0 | 0 | user_0448 | NONE | [
"user_0023"
] | [
"NONE"
] | [
false
] | true | false | 5 | 96 | true |
6,637 | https://github.com/psf/requests/issues/6637 | [BUG] pytest error in python:3.8- (only work in 3.7) because httpbin uses deprecated werkzeug function 'parse_authorization_header' | # Summary
pytest error happens in python:3.8- (only work in 3.7) because httpbin uses **deprecated werkzeug function 'parse_authorization_header'**. Because of this, pytest don't work above python 3.8 version, and it could be a serious problem for requests.py contributers.
I'm new to open source contributing, so if y... | # Summary
pytest error happens in python:3.8- (only work in 3.7) because httpbin uses **deprecated werkzeug function 'parse_authorization_header'**. Because of this, pytest don't work above python 3.8 version, and it could be a serious problem for requests.py contributers.
I'm new to open source contributing, so if y... | [BUG] pytest error in python:3.8- (only work in 3.7) because httpbin uses deprecated werkzeug function 'parse_authorization_header'. # Summary
pytest error happens in python:3.8- (only work in 3.7) because httpbin uses **deprecated werkzeug function 'parse_authorization_header'**. Because of this, pytest don't work abo... | [
"In the future, please search **closed and** open issues before creating new ones that are duplicates.",
"> In the future, please search **closed and** open issues before creating new ones that are duplicates.\n\nThank you for your response, I will be more careful."
] | closed | completed | true | 2024-02-09T10:32:47 | 2024-02-09T10:48:50 | 2025-02-09T00:04:48 | 0.01 | 2024-02 | [] | bug | 2 | 2 | true | false | 0.27 | 0 | user_0260 | NONE | [
"user_0028",
"user_0260"
] | [
"CONTRIBUTOR",
"NONE"
] | [
false,
true
] | true | false | 16 | 311 | true |
- 1. Dataset structure
- 2. Data collection process (Task 1 / Task 4)
- 3. Uses
- 4. Bias, risks and limitations
- 5. Licensing, attribution and usage
- 6. Compliance with legislation, codes and policy (Task 4)
- 7. Risks and mitigation (Task 4)
- 8. Storage, locations and versioning
- 9. Results from the notebooks (short)
- 10. References
- Citation
psf/requests GitHub Issues (Nov 2023 – Oct 2026)
A small, real, documented dataset of 324 user-reported GitHub issues and their 870 comments from the
psf/requests repository (the most widely used Python HTTP library).
It was built for a TAFE/VET assessment (Assessment Task F122A12: create and publish a dataset → apply a
Transformers pipeline → semantic search with FAISS) and is meant for learning and small experiments.
from datasets import load_dataset
ds = load_dataset("htno/psf-requests-github-issues", split="train")
| Rows | 324 issues (one row per issue, comments stored as a list) |
| Time window | issues created 2023-11-05 to 2026-10-29 |
| Comments | 870 (98.8% of issues have all of their comments) |
| Language | English |
| Version | 1.0.0 (see Versioning) |
| Personal data | user names pseudonymised; e-mails, URLs and @mentions masked |
1. Dataset structure
Files
| Path | Content |
|---|---|
data/requests_issues.jsonl |
the dataset (default config, one JSON record per line) |
data/manifest.json |
version, row count, source, SHA-256 checksums |
README.md |
this dataset card |
The three notebooks that built and used this dataset (01_collect_augment_publish.ipynb,
02_transformers_pipeline.ipynb, 03_semantic_search_faiss.ipynb), their outputs and a CSV copy of the table
are submitted with the assessment and kept in the private working folder (see section 8).
Example record (shortened)
{"number": 6566, "html_url": "https://github.com/psf/requests/issues/6566",
"title": "Import error with werkzeug",
"text": "Import error with werkzeug. When I run `make ci` on the main branch, it throws this import ...",
"comments": ["..."], "state": "closed", "state_reason": "completed", "issue_type": "bug",
"n_comments_collected": 1, "maintainer_replied": false, "days_to_close": 0.18,
"author_id": "user_0467", "author_association": "CONTRIBUTOR", "has_traceback": false}
Data fields
Original fields (from the GitHub API, cleaned)
| Field | Type | Description |
|---|---|---|
number |
int | issue number in psf/requests (unique key) |
html_url |
str | link to the original issue (attribution) |
title |
str | issue title (masked) |
body_clean |
str | issue body; HTML comments removed; e-mails → [EMAIL], URLs → [URL], @mentions → @[USER]; code kept |
state, state_reason |
str | open/closed; completed, not_planned, duplicate or empty |
created_at, closed_at, updated_at |
str (ISO-8601, UTC) | timestamps |
labels |
list[str] | maintainer labels |
comments_reported |
int | number of comments according to GitHub |
reactions_total |
int | total emoji reactions |
author_association |
str | author's role in the repo (NONE, CONTRIBUTOR, MEMBER, ...) |
locked |
bool | conversation locked by maintainers |
Augmented / derived fields (added in Notebook 1)
| Field | Type | How it was made |
|---|---|---|
body_prose |
str | body_clean with code blocks replaced by [CODE] (for language models) |
text |
str | title + ". " + body_prose – one input text per issue |
comments |
list[str] | cleaned comment texts, oldest first, joined from the comments endpoint |
comment_author_ids |
list[str] | pseudonym of each commenter |
comment_author_roles |
list[str] | role of each commenter (MEMBER, CONTRIBUTOR, NONE, ...) |
comment_by_issue_author |
list[bool] | whether each comment was written by the issue author |
n_comments_collected |
int | comments found in this dataset |
comments_complete |
bool | n_comments_collected >= comments_reported |
maintainer_replied |
bool | at least one comment by OWNER / MEMBER / COLLABORATOR |
hours_to_first_response |
float | hours until the first comment by someone other than the author |
is_closed, days_to_close |
bool, float | lifecycle fields |
created_year_month |
str | e.g. 2025-03 |
issue_type |
str | rule-based label: bug, feature_request, question, documentation, security, other (maintainer labels first, then title key words) |
has_code_block, has_traceback |
bool | pattern search in the body |
title_words, body_words |
int | word counts |
author_id |
str | pseudonym of the issue author (user_0001, ...) |
Splits
One train split with all 324 rows. No test split is defined because the dataset is used for
exploration and retrieval, not for training a model.
Summary statistics (v1.0.0)
| Measure | Value |
|---|---|
| Issue types (rule-based) | bug 121 · feature_request 65 · question 59 · other 50 · documentation 22 · security 7 |
| Closed issues | 88.3% (286 closed, 38 open) |
| Issues with ≥ 1 comment | 93.5% |
| Issues with a maintainer reply | 34.9% |
| Issues with a code block / Python traceback | 60.5% / 10.2% |
| Unique (pseudonymous) issue authors | 292 |
2. Data collection process (Task 1 / Task 4)
Why this source. psf/requests is a mature, public, very widely used project. Its issues are real
support questions and bug reports about common HTTP problems (SSL, proxies, timeouts, encodings), which suits
sentiment analysis (Task 2) and "find similar problems" search (Task 3). It follows the method of the course
tutorial (GitHub Issues) but uses a different repository.
How it was collected (code: Notebook 1, 01_collect_augment_publish.ipynb):
- The official GitHub REST API was called with the Python
requestslibrary on 29 Oct 2026 (05:21–05:23 UTC). No web pages were scraped.GET /repos/psf/requests/issues?state=all&sort=created&direction=desc– 10 pages × 100 = 1,000 items (GitHub does not return list results after the first 1,000 items; a request for page 11 returned HTTP 422).GET /repos/psf/requests/issues/comments?since=2023-11-05T07:13:53Z– 18 pages, 1,767 comments.- 30 API calls in total (28 × HTTP 200, 2 × HTTP 422), all recorded in a collection log (time, URL, status, remaining rate limit). No access token was used (public 60-requests-per-hour limit).
- Every API page was cached to disk, so the notebook can be re-run without calling the API again.
- The 1,000 items contained 644 pull requests, which were removed (they are code changes, not issues), leaving 356 issues.
- Cleaning: 31 spam issues (renamed
<spam>or labelledspamby maintainers) and 1 exact duplicate post were removed → 324 issues. No bot-authored issues were found. Missingclosed_atvalues belong to open issues and are expected. - Privacy processing and augmentation (see fields above). 4 issues (1.2%) have fewer comments than GitHub
reports (marked
comments_complete = false). - Files were saved with SHA-256 checksums in
data/manifest.jsonand uploaded to this repository through the logged-in Hugging Face website session (Hub commit API).
Reliability of the source. The API is GitHub's authoritative record, so the text and dates are exact copies
at collection time. Limits: issues can be edited or deleted later; labels are used inconsistently by maintainers,
which is why issue_type is derived by rules and should be treated as an approximate label.
3. Uses
Intended uses: teaching and practice in data collection, NLP pipelines, embeddings and semantic search; exploring how users report problems in an open-source project.
Out-of-scope uses: identifying, profiling or contacting individual users; recruitment or marketing lists; judging the behaviour of named people; any decision about a person. These uses are also not allowed by the GitHub Acceptable Use Policies (see Compliance).
4. Bias, risks and limitations
- Small sample and short window: one repository, Nov 2023 – Oct 2026 only. Older, classic problems (e.g. Python 2) are missing, so search results for them are misleading.
- Self-selection: only people who chose to open an issue are represented; most are first-time posters
(
author_association = NONEfor 94% of issues). - Language: English only. Notebook 3 shows that a Japanese query gets about half the similarity score of the same English query.
- Rule-based labels:
issue_typecomes from simple rules; small groups (security n = 7) are unreliable. - Model findings in the notebooks (e.g. 97% of issues predicted NEGATIVE by an SST-2 sentiment model) show the limits of general-purpose models on technical text; they are not facts about the community's mood.
- Re-identification: pseudonyms reduce risk but do not make the data anonymous – the
html_urllinks and the text itself can lead back to a GitHub account (see risk table).
5. Licensing, attribution and usage
- Licence:
other. The issue and comment texts belong to their authors and are made available on GitHub under the GitHub Terms of Service. They are not covered by the Apache-2.0 licence of therequestssource code. The compilation, cleaning and derived fields in this repository may be reused for non-commercial educational and research purposes with attribution. - Attribution: every row keeps
html_url, the link to the original issue. Please cite the original repository and this dataset. - Removal requests: if you wrote one of these issues and want it removed, open a discussion on this repository; the row will be deleted in the next version.
6. Compliance with legislation, codes and policy (Task 4)
| Requirement | How this project complies |
|---|---|
| GitHub Terms of Service – API Terms (Section H) | Data collected only through the official API, within rate limits, with an identifying User-Agent; no attempt to bypass limits. |
| GitHub Acceptable Use Policies – Information Usage & Privacy | Collection through the API is not "scraping" under the policy; the information is not used for spamming or sold (e.g. to recruiters); personal information is minimised and secured; use is limited to education/research. |
| Privacy Act 1988 (Cth) & Australian Privacy Principles | Treats user names and text as personal information even though public. APP 3 / data minimisation: only fields needed for the task were kept (no avatars, profile links, e-mails). APP 6 (use): used only for the stated educational purpose. APP 8 (cross-border): the dataset is stored on Hugging Face servers outside Australia, so only pseudonymised, masked data is published; the identifying mapping stays on the student's computer. APP 11 (security): see storage section. |
| GDPR (EU) – for EU-based GitHub users | Data minimisation and pseudonymisation (Art. 5, Art. 25); public-interest/educational purpose; removal on request (Art. 17 spirit). |
| Copyright Act 1968 (Cth) | Original texts remain the authors' work; they are reproduced for research/study with attribution and links, under GitHub's ToS, and not for commercial use. |
| Australia's AI Ethics Principles | Fairness, privacy protection, transparency and contestability are addressed through the bias analysis, masking, this documentation and the removal process. |
| Open data documentation standard | This card follows the structure of Datasheets for Datasets (Gebru et al.) and the Hugging Face dataset card template: motivation, composition, collection, preprocessing, uses, distribution, maintenance. |
| Institute policy: Data Storage, Management and Compliance (LMS) | Raw and identifying data kept only in the student's private project folder; no credentials in code; published data checked for personal details before upload (Notebook 2, section 2); versioned with checksums; work files submitted through the LMS. |
7. Risks and mitigation (Task 4)
| # | Risk | Likelihood / impact | Mitigation done | Further action / future mitigation |
|---|---|---|---|---|
| 1 | Re-identification of users through html_url or quoted text |
Medium / Medium | Names pseudonymised; e-mails, URLs, @mentions masked; mapping not published | Offer removal on request; consider dropping html_url in a "privacy" config if a request is received |
| 2 | Personal data left inside free text (e.g. names in signatures, log files with IPs) | Low–Medium / Medium | Automatic scan before publishing (0 e-mails, 0 tokens, 0 unmasked mentions found) | Add IP-address and person-name detection (NER) to the cleaning step |
| 3 | Secrets accidentally published (API tokens) | Low / High | Tokens only in environment variables; scan for ghp_, github_pat_, hf_ patterns |
Re-run the scan before every upload; revoke and replace any token that is ever exposed |
| 4 | Biased or misleading conclusions (small sample, English only, rule-based labels) | High / Medium | Limitations documented here and in each notebook | Collect a longer time window with a token; hand-label a sample to measure accuracy |
| 5 | Licence misunderstanding (text treated as Apache-2.0) | Medium / Low | Licence set to other with explanation |
Review with the institute before any wider reuse |
| 6 | Data becomes outdated or issues are deleted upstream | Medium / Low | Collection date and version recorded | Re-collect on a schedule and publish v1.1 with a changelog |
| 7 | Loss of files or untracked changes | Low / Medium | Hub repository keeps every commit; checksums in manifest | Keep a second copy in the institute's approved storage (e.g. OneDrive) |
| 8 | Misuse for profiling or contacting people | Low / High | Out-of-scope uses stated; GitHub AUP referenced | Switch the repository to gated access if misuse is reported |
Corrective actions already taken during the project: the first collection run requested page 11 and received HTTP 422 → the page limit was corrected to 10; spam posts and a duplicate post found by the quality checks were removed; a mis-ordered labelling rule (the label "Question/Not a bug" was being read as "bug") was fixed.
8. Storage, locations and versioning
| Item | Location | Access |
|---|---|---|
| Published dataset and card | this repository: https://huggingface.co/datasets/htno/psf-requests-github-issues |
public |
| Working copy of the project (notebooks, outputs, CSV copy) | student's computer: Documents/Claude/HF_Assessment_F122A12/ |
private |
| Notebooks and outputs as assessment evidence | institute LMS | institute staff |
| Raw API pages + collection log | data/raw/ in the working copy |
private (in .gitignore) |
| Pseudonym mapping (real user names) | data/private/user_id_map.csv in the working copy |
private (in .gitignore), never uploaded |
Versioning
- Semantic version in
data/manifest.json(1.0.0). A new collection or changed cleaning rules → minor version (1.1.0); fixes to documentation only → patch (1.0.1). - Every upload is a commit in this Hugging Face (Git-based) repository; the commit history is the change log.
- Model versions are pinned by commit hash in the notebooks
(
distilbert/distilbert-base-uncased-finetuned-sst-2-english@714eb0f,sentence-transformers/all-MiniLM-L6-v2@1110a24). - File integrity (v1.0.0):
| File | Bytes | SHA-256 |
|---|---|---|
data/requests_issues.jsonl |
2,073,986 | 50d9121e7d956e0468622141b5ef72edfcd295eee0db65b7d50547cc3a8bd04c |
requests_issues.csv (local copy, not published) |
1,868,817 | e0a59bf0d6a7586eff8f0d7536395026af8a892271118104c3e6a30ea6963864 |
Change log
| Date | Version | Change |
|---|---|---|
| 2026-11-19 | 1.0.0 | Dataset file, manifest and this card published to the Hub. The data file is the same build as 29 Oct 2026 (same SHA-256). |
| 2026-10-29 | 1.0.0 | Dataset collected, cleaned and checked (Notebook 1). |
Reproducibility: run the three notebooks in order. Notebook 1 reads the cached API pages if they exist;
set the environment variable GITHUB_TOKEN to collect more pages. Libraries: requests, pandas, numpy,
matplotlib, seaborn, datasets, transformers, torch, faiss-cpu.
9. Results from the notebooks (short)
- Task 2 – sentiment pipeline: 314 of 324 issue openings (97%) are predicted NEGATIVE; replies are more positive (15% of comments by issue authors, 7% of maintainer comments). Neutral technical sentences are also labelled NEGATIVE → the SST-2 model mostly detects "describes a problem", not emotion.
- Task 3 – FAISS search: 1,007 documents (issues + comments of ≥ 15 words) embedded with all-MiniLM-L6-v2 in a
faiss.IndexFlatIP(cosine). Common problems (SSL, timeouts, proxies, uploads, encoding, retries) return on-topic issues (best scores 0.61–0.72). Self-retrieval recall@5 = 100%. Gaps found: time window, English-only, and high scores for topics that are not really covered.
10. References
- GitHub REST API – Issues: https://docs.github.com/en/rest/issues/issues
- GitHub REST API – Issue comments: https://docs.github.com/en/rest/issues/comments
- GitHub Terms of Service (incl. Section H, API Terms): https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
- GitHub Acceptable Use Policies: https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies
- Source repository: https://github.com/psf/requests
- Hugging Face LLM Course – Creating your own dataset: https://huggingface.co/learn/llm-course/chapter5/5?fw=pt
- Hugging Face LLM Course – Behind the pipeline: https://huggingface.co/learn/llm-course/chapter2/2?fw=pt
- Hugging Face LLM Course – Semantic search with FAISS: https://huggingface.co/learn/llm-course/chapter5/6?fw=pt
- Hugging Face dataset cards: https://huggingface.co/docs/hub/datasets-cards
- Model: https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english
- Model: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
- FAISS: https://github.com/facebookresearch/faiss
- Gebru, T. et al. (2021). Datasheets for Datasets. Communications of the ACM, 64(12). https://arxiv.org/abs/1803.09010
- Office of the Australian Information Commissioner – Australian Privacy Principles: https://www.oaic.gov.au/privacy/australian-privacy-principles
- OAIC – APP Guidelines, Chapter 8 (cross-border disclosure): https://www.oaic.gov.au/privacy/australian-privacy-principles-guidelines/chapter-8-app-8-cross-border-disclosure-of-personal-information
- Privacy Act 1988 (Cth): https://www.legislation.gov.au/C2004A03712/latest
- Copyright Act 1968 (Cth): https://www.legislation.gov.au/C1968A00063/latest
- Australia's AI Ethics Principles: https://www.industry.gov.au/publications/australias-artificial-intelligence-ethics-principles/australias-ai-ethics-principles
- GDPR (Regulation (EU) 2016/679): https://eur-lex.europa.eu/eli/reg/2016/679/oj
Citation
@misc{htno_psf_requests_issues_2026,
title = {psf/requests GitHub Issues (Nov 2023 -- Oct 2026)},
author = {Kyu-Vi (htno)},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/htno/psf-requests-github-issues}}
}
- Downloads last month
- 53