Datasets:
Tasks:
Text Classification
Formats:
parquet
Sub-tasks:
multi-label-classification
Languages:
English
Size:
1K - 10K
Tags:
github
License:
url
stringlengths 50
53
| repository_url
stringclasses 1
value | labels_url
stringlengths 64
67
| comments_url
stringlengths 59
62
| events_url
stringlengths 57
60
| html_url
stringlengths 38
43
| id
int64 597k
2.65B
| node_id
stringlengths 18
32
| number
int64 1
6.83k
| title
stringlengths 1
296
| user
dict | labels
listlengths 0
5
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
4
| milestone
dict | comments
int64 0
211
| created_at
stringlengths 20
20
| updated_at
stringlengths 20
20
| closed_at
stringlengths 20
20
⌀ | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
65.6k
⌀ | closed_by
dict | reactions
dict | timeline_url
stringlengths 59
62
| performed_via_github_app
null | state_reason
stringclasses 3
values | draft
bool 2
classes | pull_request
dict | is_pull_request
bool 2
classes | issue_comments
sequencelengths 0
30
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/psf/requests/issues/6826 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6826/labels{/name} | https://api.github.com/repos/psf/requests/issues/6826/comments | https://api.github.com/repos/psf/requests/issues/6826/events | https://github.com/psf/requests/issues/6826 | 2,653,925,463 | I_kwDOABTKOs6eL7BX | 6,826 | multipart/form-data and a generator... | {
"avatar_url": "https://avatars.githubusercontent.com/u/9671839?v=4",
"events_url": "https://api.github.com/users/steve-osfda/events{/privacy}",
"followers_url": "https://api.github.com/users/steve-osfda/followers",
"following_url": "https://api.github.com/users/steve-osfda/following{/other_user}",
"gists_url": "https://api.github.com/users/steve-osfda/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/steve-osfda",
"id": 9671839,
"login": "steve-osfda",
"node_id": "MDQ6VXNlcjk2NzE4Mzk=",
"organizations_url": "https://api.github.com/users/steve-osfda/orgs",
"received_events_url": "https://api.github.com/users/steve-osfda/received_events",
"repos_url": "https://api.github.com/users/steve-osfda/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/steve-osfda/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/steve-osfda/subscriptions",
"type": "User",
"url": "https://api.github.com/users/steve-osfda",
"user_view_type": "public"
} | [
{
"color": "777777",
"default": false,
"description": null,
"id": 162780722,
"name": "Question/Not a bug",
"node_id": "MDU6TGFiZWwxNjI3ODA3MjI=",
"url": "https://api.github.com/repos/psf/requests/labels/Question/Not%20a%20bug"
},
{
"color": "000000",
"default": false,
"description": "Used for automation to auto-close an issue",
"id": 6156042717,
"name": "actions/autoclose-qa",
"node_id": "LA_kwDOABTKOs8AAAABbu3B3Q",
"url": "https://api.github.com/repos/psf/requests/labels/actions/autoclose-qa"
}
] | closed | true | null | [] | null | 1 | 2024-11-13T02:26:25Z | 2024-11-13T02:26:35Z | 2024-11-13T02:26:34Z | NONE | off-topic | I used a generator as an argument to data for Content-Type application/json, and that worked fine.
The problem now is that I need to do this for multipart/form-data, and it appears to not support a generator.
- I tried files={'content': my_generator_func()} and got: a bytes-like object is required, not 'generator'; so it looks like it would have accepted a file descriptor, but not a generator.
- I then tried a generator for the data argument, and set the files argument to a form name and value: files={'encoding': (None, 'base64')} [I read you have to use the files argument to get requests to do multipart/form-data] For that I get the error "Streamed bodies and files are mutually exclusive".
- Just in case, I tried it different ways setting a header for Content-Type multipart/form-data, both with and without it [I had read that setting it yourself can mess up requests.] If I omitted it, it complained it was missing; and if I included it, I got the errors previously specified.
Is it possible to furnish a generator for multipart/form-data? If I have to, I will dump the stream into a file and pass a descriptor to the files argument; but seems that you would have furnished a way to use a generator since it is supported for Content-Type application/json
| {
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/github-actions",
"id": 41898282,
"login": "github-actions[bot]",
"node_id": "MDM6Qm90NDE4OTgyODI=",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6826/reactions"
} | https://api.github.com/repos/psf/requests/issues/6826/timeline | null | completed | null | null | false | [
"As described in the template, we won't be able to answer questions on this issue tracker. Please use [Stack Overflow](https://stackoverflow.com/)"
] |
https://api.github.com/repos/psf/requests/issues/6824 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6824/labels{/name} | https://api.github.com/repos/psf/requests/issues/6824/comments | https://api.github.com/repos/psf/requests/issues/6824/events | https://github.com/psf/requests/pull/6824 | 2,646,870,728 | PR_kwDOABTKOs6Ba4Ir | 6,824 | Remove old macOS runners | {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | [] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/18519037?v=4",
"events_url": "https://api.github.com/users/sethmlarson/events{/privacy}",
"followers_url": "https://api.github.com/users/sethmlarson/followers",
"following_url": "https://api.github.com/users/sethmlarson/following{/other_user}",
"gists_url": "https://api.github.com/users/sethmlarson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sethmlarson",
"id": 18519037,
"login": "sethmlarson",
"node_id": "MDQ6VXNlcjE4NTE5MDM3",
"organizations_url": "https://api.github.com/users/sethmlarson/orgs",
"received_events_url": "https://api.github.com/users/sethmlarson/received_events",
"repos_url": "https://api.github.com/users/sethmlarson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sethmlarson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sethmlarson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sethmlarson",
"user_view_type": "public"
}
] | null | 0 | 2024-11-10T05:51:47Z | 2024-11-10T16:18:37Z | 2024-11-10T16:18:36Z | MEMBER | null | Now that the upstream issue in setup-python is resolved, we can move back to using `macos-latest` for everything. | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6824/reactions"
} | https://api.github.com/repos/psf/requests/issues/6824/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6824.diff",
"html_url": "https://github.com/psf/requests/pull/6824",
"merged_at": "2024-11-10T16:18:36Z",
"patch_url": "https://github.com/psf/requests/pull/6824.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6824"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6823 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6823/labels{/name} | https://api.github.com/repos/psf/requests/issues/6823/comments | https://api.github.com/repos/psf/requests/issues/6823/events | https://github.com/psf/requests/issues/6823 | 2,645,533,839 | I_kwDOABTKOs6dr6SP | 6,823 | chunked put using a generator function... | {
"avatar_url": "https://avatars.githubusercontent.com/u/9671839?v=4",
"events_url": "https://api.github.com/users/steve-osfda/events{/privacy}",
"followers_url": "https://api.github.com/users/steve-osfda/followers",
"following_url": "https://api.github.com/users/steve-osfda/following{/other_user}",
"gists_url": "https://api.github.com/users/steve-osfda/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/steve-osfda",
"id": 9671839,
"login": "steve-osfda",
"node_id": "MDQ6VXNlcjk2NzE4Mzk=",
"organizations_url": "https://api.github.com/users/steve-osfda/orgs",
"received_events_url": "https://api.github.com/users/steve-osfda/received_events",
"repos_url": "https://api.github.com/users/steve-osfda/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/steve-osfda/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/steve-osfda/subscriptions",
"type": "User",
"url": "https://api.github.com/users/steve-osfda",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 4 | 2024-11-09T03:17:27Z | 2024-11-09T03:53:24Z | 2024-11-09T03:40:37Z | NONE | null | <!-- Summary. -->
I made a generator function that returns str chunks; I passed it to data [...data=my_func()...], and it eventually comes back with the error "memoryview: a bytes-like object is required, not 'str'" (debug statements indicate this is happening on the first yield...)
Documentation indicates this is the way to do it: [https://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests](https://docs.python-requests.org/en/latest/user/advanced/#chunk-encoded-requests)
## Expected Result
<!-- What you expected. -->
No error!
## Actual Result
<!-- What happened instead. -->
The error "memoryview: a bytes-like object is required, not 'str'".
## Reproduction Steps
```python
import requests
def test():
json_preamble='{"field": "value",'
def put()->str:
yield json_preamble
return '"field2": "value2"}' # final chunk...
response=requests.put(some_url, data=put(), headers=some_headers)
test ()
```
## System Information
$ python -m requests.help
```json
{
"chardet": {
"version": "5.1.0"
},
"charset_normalizer": {
"version": "3.0.1"
},
"cryptography": {
"version": "38.0.4"
},
"idna": {
"version": "3.3"
},
"implementation": {
"name": "CPython",
"version": "3.11.2"
},
"platform": {
"release": "6.1.0-26-amd64",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "30000080",
"version": "23.0.0"
},
"requests": {
"version": "2.28.1"
},
"system_ssl": {
"version": "300000e0"
},
"urllib3": {
"version": "1.26.12"
},
"using_charset_normalizer": false,
"using_pyopenssl": true
}
```
<!-- This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c). -->
| {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6823/reactions"
} | https://api.github.com/repos/psf/requests/issues/6823/timeline | null | completed | null | null | false | [
"PS A put using a file descriptor as the data argument (opened 'rb' to a .json file...) works...",
"PPS I also tried returning byte strings, even though the documentation example does not do that, and it also fails, with a 400, bad request...",
"Hi @steve-osfda, this issue was patched in 2.29.0 early last year. If you update to a more recent version, you should no longer encounter this issue.\r\n\r\nI would also suggest double checking your generator is actually producing what you're expecting. Your `return` will not be included in the generator, only the `StopIteration` exception raised at the end. You're only sending `{\"field\": \"value\",'` over the wire which is likely the cause of your 400.",
"That was the ticket for the version that returned bytes! A generator needs an [implicit] return None\r\n\r\nI will run with the bytes-encloded return for now (checking the requests version and act accordingly...) Debian bookworm stable right now uses 2.28.\r\n\r\nThank you so much for your speedy response!\r\n"
] |
https://api.github.com/repos/psf/requests/issues/6822 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6822/labels{/name} | https://api.github.com/repos/psf/requests/issues/6822/comments | https://api.github.com/repos/psf/requests/issues/6822/events | https://github.com/psf/requests/pull/6822 | 2,644,394,245 | PR_kwDOABTKOs6BVj-O | 6,822 | Add HTTP status group properties for response objects | {
"avatar_url": "https://avatars.githubusercontent.com/u/107179925?v=4",
"events_url": "https://api.github.com/users/vengatgs/events{/privacy}",
"followers_url": "https://api.github.com/users/vengatgs/followers",
"following_url": "https://api.github.com/users/vengatgs/following{/other_user}",
"gists_url": "https://api.github.com/users/vengatgs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vengatgs",
"id": 107179925,
"login": "vengatgs",
"node_id": "U_kgDOBmNvlQ",
"organizations_url": "https://api.github.com/users/vengatgs/orgs",
"received_events_url": "https://api.github.com/users/vengatgs/received_events",
"repos_url": "https://api.github.com/users/vengatgs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vengatgs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vengatgs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vengatgs",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 1 | 2024-11-08T15:36:37Z | 2024-11-08T16:25:37Z | 2024-11-08T16:24:44Z | NONE | null | ## PR Description:
This PR adds properties (`is_2xx_successful`, `is_5xx_server_error`, etc.) to the HTTP response class for easy classification of HTTP status codes, improving code readability.
## Justification:
- **Improved readability**: Using direct range comparisons like `100 <= self.status_code < 200` makes the code clear and intuitive.
- **Maintaining performance**: The range comparison is efficient and keeps the performance trade-offs minimal while avoiding unnecessary complexity.
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6822/reactions"
} | https://api.github.com/repos/psf/requests/issues/6822/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6822.diff",
"html_url": "https://github.com/psf/requests/pull/6822",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6822.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6822"
} | true | [
"No thank you. We're not expanding the API of Requests at this time and the freeze is well documented. Sorry you spent your energy on this"
] |
https://api.github.com/repos/psf/requests/issues/6821 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6821/labels{/name} | https://api.github.com/repos/psf/requests/issues/6821/comments | https://api.github.com/repos/psf/requests/issues/6821/events | https://github.com/psf/requests/pull/6821 | 2,632,082,717 | PR_kwDOABTKOs6Aw0gZ | 6,821 | Alert autofix 1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/183675426?v=4",
"events_url": "https://api.github.com/users/akaday/events{/privacy}",
"followers_url": "https://api.github.com/users/akaday/followers",
"following_url": "https://api.github.com/users/akaday/following{/other_user}",
"gists_url": "https://api.github.com/users/akaday/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/akaday",
"id": 183675426,
"login": "akaday",
"node_id": "U_kgDOCvKqIg",
"organizations_url": "https://api.github.com/users/akaday/orgs",
"received_events_url": "https://api.github.com/users/akaday/received_events",
"repos_url": "https://api.github.com/users/akaday/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/akaday/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akaday/subscriptions",
"type": "User",
"url": "https://api.github.com/users/akaday",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 0 | 2024-11-04T07:46:39Z | 2024-11-04T11:52:18Z | 2024-11-04T11:52:18Z | NONE | null | null | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6821/reactions"
} | https://api.github.com/repos/psf/requests/issues/6821/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6821.diff",
"html_url": "https://github.com/psf/requests/pull/6821",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6821.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6821"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6820 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6820/labels{/name} | https://api.github.com/repos/psf/requests/issues/6820/comments | https://api.github.com/repos/psf/requests/issues/6820/events | https://github.com/psf/requests/pull/6820 | 2,630,760,253 | PR_kwDOABTKOs6AtXeH | 6,820 | Update vulnerability disclosure process | {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 0 | 2024-11-02T20:08:00Z | 2024-11-02T20:20:49Z | 2024-11-02T20:13:02Z | MEMBER | null | This PR will move our desired workflow for vulnerability reports to use GitHub's [Security Advisory](https://docs.github.com/en/code-security/getting-started/github-security-features#security-advisories) form. This will hopefully simplify the workflow for reporters by removing the disclosure signing steps and using a standardized UI for reviewing and communicating about in-progress advisories. | {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6820/reactions"
} | https://api.github.com/repos/psf/requests/issues/6820/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6820.diff",
"html_url": "https://github.com/psf/requests/pull/6820",
"merged_at": "2024-11-02T20:13:02Z",
"patch_url": "https://github.com/psf/requests/pull/6820.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6820"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6819 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6819/labels{/name} | https://api.github.com/repos/psf/requests/issues/6819/comments | https://api.github.com/repos/psf/requests/issues/6819/events | https://github.com/psf/requests/pull/6819 | 2,622,273,505 | PR_kwDOABTKOs6AS34N | 6,819 | Add !r to error messages for improved clarity on file paths | {
"avatar_url": "https://avatars.githubusercontent.com/u/174052782?v=4",
"events_url": "https://api.github.com/users/jjkochan-metro/events{/privacy}",
"followers_url": "https://api.github.com/users/jjkochan-metro/followers",
"following_url": "https://api.github.com/users/jjkochan-metro/following{/other_user}",
"gists_url": "https://api.github.com/users/jjkochan-metro/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jjkochan-metro",
"id": 174052782,
"login": "jjkochan-metro",
"node_id": "U_kgDOCl_Vrg",
"organizations_url": "https://api.github.com/users/jjkochan-metro/orgs",
"received_events_url": "https://api.github.com/users/jjkochan-metro/received_events",
"repos_url": "https://api.github.com/users/jjkochan-metro/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jjkochan-metro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jjkochan-metro/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jjkochan-metro",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 0 | 2024-10-29T20:34:15Z | 2024-10-29T20:34:15Z | null | NONE | null | If leading and/or trailing spaces are included in the file path, they are clearly shown in the error messages because the file path is shown within quotes. If the file path is not shown within quotes, it may be difficult to identify that leading and/or trailing spaces are the cause of the problem. | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6819/reactions"
} | https://api.github.com/repos/psf/requests/issues/6819/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6819.diff",
"html_url": "https://github.com/psf/requests/pull/6819",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6819.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6819"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6818 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6818/labels{/name} | https://api.github.com/repos/psf/requests/issues/6818/comments | https://api.github.com/repos/psf/requests/issues/6818/events | https://github.com/psf/requests/pull/6818 | 2,618,862,774 | PR_kwDOABTKOs6AH6KB | 6,818 | Bump github/codeql-action from 3.26.0 to 3.27.0 | {
"avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4",
"events_url": "https://api.github.com/users/dependabot%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/dependabot%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/dependabot%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/dependabot%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/dependabot",
"id": 49699333,
"login": "dependabot[bot]",
"node_id": "MDM6Qm90NDk2OTkzMzM=",
"organizations_url": "https://api.github.com/users/dependabot%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/dependabot%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/dependabot%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dependabot%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dependabot%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/dependabot%5Bbot%5D",
"user_view_type": "public"
} | [
{
"color": "0366d6",
"default": false,
"description": "Pull requests that update a dependency file",
"id": 1868210094,
"name": "dependencies",
"node_id": "MDU6TGFiZWwxODY4MjEwMDk0",
"url": "https://api.github.com/repos/psf/requests/labels/dependencies"
},
{
"color": "000000",
"default": false,
"description": "Pull requests that update GitHub Actions code",
"id": 5838729011,
"name": "github_actions",
"node_id": "LA_kwDOABTKOs8AAAABXAPvMw",
"url": "https://api.github.com/repos/psf/requests/labels/github_actions"
}
] | closed | false | null | [] | null | 0 | 2024-10-28T16:05:21Z | 2024-10-28T16:24:15Z | 2024-10-28T16:24:13Z | CONTRIBUTOR | null | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.0 to 3.27.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/github/codeql-action/releases">github/codeql-action's releases</a>.</em></p>
<blockquote>
<h2>v3.27.0</h2>
<h1>CodeQL Action Changelog</h1>
<p>See the <a href="https://github.com/github/codeql-action/releases">releases page</a> for the relevant changes to the CodeQL CLI and language packs.</p>
<p>Note that the only difference between <code>v2</code> and <code>v3</code> of the CodeQL Action is the node version they support, with <code>v3</code> running on node 20 while we continue to release <code>v2</code> to support running on node 16. For example <code>3.22.11</code> was the first <code>v3</code> release and is functionally identical to <code>2.22.11</code>. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.</p>
<h2>3.27.0 - 22 Oct 2024</h2>
<ul>
<li>Bump the minimum CodeQL bundle version to 2.14.6. <a href="https://redirect.github.com/github/codeql-action/pull/2549">#2549</a></li>
<li>Fix an issue where the <code>upload-sarif</code> Action would fail with "upload-sarif post-action step failed: Input required and not supplied: token" when called in a composite Action that had a different set of inputs to the ones expected by the <code>upload-sarif</code> Action. <a href="https://redirect.github.com/github/codeql-action/pull/2557">#2557</a></li>
<li>Update default CodeQL bundle version to 2.19.2. <a href="https://redirect.github.com/github/codeql-action/pull/2552">#2552</a></li>
</ul>
<p>See the full <a href="https://github.com/github/codeql-action/blob/v3.27.0/CHANGELOG.md">CHANGELOG.md</a> for more information.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action's changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a href="https://github.com/github/codeql-action/releases">releases page</a> for the relevant changes to the CodeQL CLI and language packs.</p>
<p>Note that the only difference between <code>v2</code> and <code>v3</code> of the CodeQL Action is the node version they support, with <code>v3</code> running on node 20 while we continue to release <code>v2</code> to support running on node 16. For example <code>3.22.11</code> was the first <code>v3</code> release and is functionally identical to <code>2.22.11</code>. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.</p>
<h2>[UNRELEASED]</h2>
<p>No user facing changes.</p>
<h2>3.27.0 - 22 Oct 2024</h2>
<ul>
<li>Bump the minimum CodeQL bundle version to 2.14.6. <a href="https://redirect.github.com/github/codeql-action/pull/2549">#2549</a></li>
<li>Fix an issue where the <code>upload-sarif</code> Action would fail with "upload-sarif post-action step failed: Input required and not supplied: token" when called in a composite Action that had a different set of inputs to the ones expected by the <code>upload-sarif</code> Action. <a href="https://redirect.github.com/github/codeql-action/pull/2557">#2557</a></li>
<li>Update default CodeQL bundle version to 2.19.2. <a href="https://redirect.github.com/github/codeql-action/pull/2552">#2552</a></li>
</ul>
<h2>3.26.13 - 14 Oct 2024</h2>
<p>No user facing changes.</p>
<h2>3.26.12 - 07 Oct 2024</h2>
<ul>
<li>
<p><em>Upcoming breaking change</em>: Add a deprecation warning for customers using CodeQL version 2.14.5 and earlier. These versions of CodeQL were discontinued on 24 September 2024 alongside GitHub Enterprise Server 3.10, and will be unsupported by CodeQL Action versions 3.27.0 and later and versions 2.27.0 and later. <a href="https://redirect.github.com/github/codeql-action/pull/2520">#2520</a></p>
<ul>
<li>
<p>If you are using one of these versions, please update to CodeQL CLI version 2.14.6 or later. For instance, if you have specified a custom version of the CLI using the 'tools' input to the 'init' Action, you can remove this input to use the default version.</p>
</li>
<li>
<p>Alternatively, if you want to continue using a version of the CodeQL CLI between 2.13.5 and 2.14.5, you can replace <code>github/codeql-action/*@v3</code> by <code>github/codeql-action/*@v3.26.11</code> and <code>github/codeql-action/*@v2</code> by <code>github/codeql-action/*@v2.26.11</code> in your code scanning workflow to ensure you continue using this version of the CodeQL Action.</p>
</li>
</ul>
</li>
</ul>
<h2>3.26.11 - 03 Oct 2024</h2>
<ul>
<li>
<p><em>Upcoming breaking change</em>: Add support for using <code>actions/download-artifact@v4</code> to programmatically consume CodeQL Action debug artifacts.</p>
<p>Starting November 30, 2024, GitHub.com customers will <a href="https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/">no longer be able to use <code>actions/download-artifact@v3</code></a>. Therefore, to avoid breakage, customers who programmatically download the CodeQL Action debug artifacts should set the <code>CODEQL_ACTION_ARTIFACT_V4_UPGRADE</code> environment variable to <code>true</code> and bump <code>actions/download-artifact@v3</code> to <code>actions/download-artifact@v4</code> in their workflows. The CodeQL Action will enable this behavior by default in early November and workflows that have not yet bumped to <code>actions/download-artifact@v3</code> to <code>actions/download-artifact@v4</code> will begin failing then.</p>
<p>This change is currently unavailable for GitHub Enterprise Server customers, as <code>actions/upload-artifact@v4</code> and <code>actions/download-artifact@v4</code> are not yet compatible with GHES.</p>
</li>
<li>
<p>Update default CodeQL bundle version to 2.19.1. <a href="https://redirect.github.com/github/codeql-action/pull/2519">#2519</a></p>
</li>
</ul>
<h2>3.26.10 - 30 Sep 2024</h2>
<ul>
<li>We are rolling out a feature in September/October 2024 that sets up CodeQL using a bundle compressed with <a href="http://facebook.github.io/zstd/">Zstandard</a>. Our aim is to improve the performance of setting up CodeQL. <a href="https://redirect.github.com/github/codeql-action/pull/2502">#2502</a></li>
</ul>
<h2>3.26.9 - 24 Sep 2024</h2>
<p>No user facing changes.</p>
<h2>3.26.8 - 19 Sep 2024</h2>
<ul>
<li>Update default CodeQL bundle version to 2.19.0. <a href="https://redirect.github.com/github/codeql-action/pull/2483">#2483</a></li>
</ul>
<h2>3.26.7 - 13 Sep 2024</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/github/codeql-action/commit/662472033e021d55d94146f66f6058822b0b39fd"><code>6624720</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/2561">#2561</a> from github/update-v3.27.0-b35b023d9</li>
<li><a href="https://github.com/github/codeql-action/commit/ce7c2b560da6747133b72eb2f33503a6c4da9c15"><code>ce7c2b5</code></a> Update changelog for v3.27.0</li>
<li><a href="https://github.com/github/codeql-action/commit/b35b023d9b1296658ca1bcb95dcd0336f9d23f0b"><code>b35b023</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/2552">#2552</a> from github/update-bundle/codeql-bundle-v2.19.2</li>
<li><a href="https://github.com/github/codeql-action/commit/dafc762411c1755f00abee84283eaa85d438af2e"><code>dafc762</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/2560">#2560</a> from github/aeisenberg/fix-required-checks</li>
<li><a href="https://github.com/github/codeql-action/commit/0d1eb88b60733b6720210d591c48ebc9e961d42c"><code>0d1eb88</code></a> Remove ESLint from required checks</li>
<li><a href="https://github.com/github/codeql-action/commit/0a30541440699f21b772e5ef95c912f097514855"><code>0a30541</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/2558">#2558</a> from github/dependabot/npm_and_yarn/npm-6515e6e328</li>
<li><a href="https://github.com/github/codeql-action/commit/2a6a6ad1c809216132b8a6a8c1f5873fff3f400a"><code>2a6a6ad</code></a> Update checked-in dependencies</li>
<li><a href="https://github.com/github/codeql-action/commit/26c18c2c1f382ccd402aec5dd18d9ff6d0097891"><code>26c18c2</code></a> Bump the npm group with 3 updates</li>
<li><a href="https://github.com/github/codeql-action/commit/7080a68cbca9319f3cf869f12f34acea853ad72d"><code>7080a68</code></a> Merge branch 'main' into update-bundle/codeql-bundle-v2.19.2</li>
<li><a href="https://github.com/github/codeql-action/commit/63eb7bbf1f65c025536b3e7d083d89c1c161043c"><code>63eb7bb</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/2551">#2551</a> from github/cklin/diff-informed-queries-feature</li>
<li>Additional commits viewable in <a href="https://github.com/github/codeql-action/compare/eb055d739abdc2e8de2e5f4ba1a8b246daa779aa...662472033e021d55d94146f66f6058822b0b39fd">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details> | {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6818/reactions"
} | https://api.github.com/repos/psf/requests/issues/6818/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6818.diff",
"html_url": "https://github.com/psf/requests/pull/6818",
"merged_at": "2024-10-28T16:24:12Z",
"patch_url": "https://github.com/psf/requests/pull/6818.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6818"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6817 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6817/labels{/name} | https://api.github.com/repos/psf/requests/issues/6817/comments | https://api.github.com/repos/psf/requests/issues/6817/events | https://github.com/psf/requests/pull/6817 | 2,618,862,456 | PR_kwDOABTKOs6AH6Fd | 6,817 | Bump actions/setup-python from 5.2.0 to 5.3.0 | {
"avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4",
"events_url": "https://api.github.com/users/dependabot%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/dependabot%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/dependabot%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/dependabot%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/dependabot",
"id": 49699333,
"login": "dependabot[bot]",
"node_id": "MDM6Qm90NDk2OTkzMzM=",
"organizations_url": "https://api.github.com/users/dependabot%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/dependabot%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/dependabot%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dependabot%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dependabot%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/dependabot%5Bbot%5D",
"user_view_type": "public"
} | [
{
"color": "0366d6",
"default": false,
"description": "Pull requests that update a dependency file",
"id": 1868210094,
"name": "dependencies",
"node_id": "MDU6TGFiZWwxODY4MjEwMDk0",
"url": "https://api.github.com/repos/psf/requests/labels/dependencies"
},
{
"color": "000000",
"default": false,
"description": "Pull requests that update GitHub Actions code",
"id": 5838729011,
"name": "github_actions",
"node_id": "LA_kwDOABTKOs8AAAABXAPvMw",
"url": "https://api.github.com/repos/psf/requests/labels/github_actions"
}
] | closed | false | null | [] | null | 0 | 2024-10-28T16:05:12Z | 2024-10-28T16:24:26Z | 2024-10-28T16:24:24Z | CONTRIBUTOR | null | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/setup-python/releases">actions/setup-python's releases</a>.</em></p>
<blockquote>
<h2>v5.3.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add workflow file for publishing releases to immutable action package by <a href="https://github.com/Jcambass"><code>@Jcambass</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/941">actions/setup-python#941</a></li>
<li>Upgrade IA publish by <a href="https://github.com/Jcambass"><code>@Jcambass</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/943">actions/setup-python#943</a></li>
</ul>
<h3>Bug Fixes:</h3>
<ul>
<li>Normalise Line Endings to Ensure Cross-Platform Consistency by <a href="https://github.com/priya-kinthali"><code>@priya-kinthali</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/938">actions/setup-python#938</a></li>
<li>Revise <code>isGhes</code> logic by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/963">actions/setup-python#963</a></li>
<li>Bump pillow from 7.2 to 10.2.0 by <a href="https://github.com/aparnajyothi-y"><code>@aparnajyothi-y</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/956">actions/setup-python#956</a></li>
</ul>
<h3>Enhancements:</h3>
<ul>
<li>Enhance workflows and documentation updates by <a href="https://github.com/priya-kinthali"><code>@priya-kinthali</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/965">actions/setup-python#965</a></li>
<li>Bump default versions to latest by <a href="https://github.com/jeffwidman"><code>@jeffwidman</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/905">actions/setup-python#905</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Jcambass"><code>@Jcambass</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-python/pull/941">actions/setup-python#941</a></li>
<li><a href="https://github.com/jww3"><code>@jww3</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-python/pull/963">actions/setup-python#963</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/setup-python/compare/v5...v5.3.0">https://github.com/actions/setup-python/compare/v5...v5.3.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/actions/setup-python/commit/0b93645e9fea7318ecaed2b359559ac225c90a2b"><code>0b93645</code></a> Enhance workflows: Add macOS 13 support, upgrade publish-action, and update d...</li>
<li><a href="https://github.com/actions/setup-python/commit/9c76e716502b18322365741b762fee22a8cffad8"><code>9c76e71</code></a> Bump pillow from 7.2 to 10.2.0 in /<strong>tests</strong>/data (<a href="https://redirect.github.com/actions/setup-python/issues/956">#956</a>)</li>
<li><a href="https://github.com/actions/setup-python/commit/f4c5a1183d69690d31b6304b7af403a5b56a88d6"><code>f4c5a11</code></a> Revise <code>isGhes</code> logic (<a href="https://redirect.github.com/actions/setup-python/issues/963">#963</a>)</li>
<li><a href="https://github.com/actions/setup-python/commit/19dfb7b659fa9e60c2f89c33335ab5f6f1792b6e"><code>19dfb7b</code></a> Bump default versions to latest (<a href="https://redirect.github.com/actions/setup-python/issues/905">#905</a>)</li>
<li><a href="https://github.com/actions/setup-python/commit/e9675cc634901ff55d92c575ecd6945e65464b00"><code>e9675cc</code></a> Merge pull request <a href="https://redirect.github.com/actions/setup-python/issues/943">#943</a> from actions/Jcambass-patch-1</li>
<li><a href="https://github.com/actions/setup-python/commit/3226af69c08a4851edf81cffc8849d2db148b21f"><code>3226af6</code></a> Upgrade IA publish</li>
<li><a href="https://github.com/actions/setup-python/commit/70dcb22d269dc9546a5d97f4b11548f130526421"><code>70dcb22</code></a> Merge pull request <a href="https://redirect.github.com/actions/setup-python/issues/941">#941</a> from actions/Jcambass-patch-1</li>
<li><a href="https://github.com/actions/setup-python/commit/65b48c71155ac3186106d8d8de14787f5914b8d1"><code>65b48c7</code></a> Create publish-immutable-actions.yml</li>
<li><a href="https://github.com/actions/setup-python/commit/29a37be0a3d3e8bf5bc1eb19cd0502922f5b312a"><code>29a37be</code></a> initial commit (<a href="https://redirect.github.com/actions/setup-python/issues/938">#938</a>)</li>
<li>See full diff in <a href="https://github.com/actions/setup-python/compare/f677139bbe7f9c59b41e40162b753c062f5d49a3...0b93645e9fea7318ecaed2b359559ac225c90a2b">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details> | {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6817/reactions"
} | https://api.github.com/repos/psf/requests/issues/6817/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6817.diff",
"html_url": "https://github.com/psf/requests/pull/6817",
"merged_at": "2024-10-28T16:24:24Z",
"patch_url": "https://github.com/psf/requests/pull/6817.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6817"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6816 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6816/labels{/name} | https://api.github.com/repos/psf/requests/issues/6816/comments | https://api.github.com/repos/psf/requests/issues/6816/events | https://github.com/psf/requests/pull/6816 | 2,617,295,858 | PR_kwDOABTKOs6ACzaU | 6,816 | Refactor and optimize codebase | {
"avatar_url": "https://avatars.githubusercontent.com/u/183675426?v=4",
"events_url": "https://api.github.com/users/akaday/events{/privacy}",
"followers_url": "https://api.github.com/users/akaday/followers",
"following_url": "https://api.github.com/users/akaday/following{/other_user}",
"gists_url": "https://api.github.com/users/akaday/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/akaday",
"id": 183675426,
"login": "akaday",
"node_id": "U_kgDOCvKqIg",
"organizations_url": "https://api.github.com/users/akaday/orgs",
"received_events_url": "https://api.github.com/users/akaday/received_events",
"repos_url": "https://api.github.com/users/akaday/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/akaday/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akaday/subscriptions",
"type": "User",
"url": "https://api.github.com/users/akaday",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 0 | 2024-10-28T04:51:39Z | 2024-10-28T04:51:39Z | null | NONE | null | Add new tests for `HTTPAdapter` and hooks.
* **tests/test_adapters.py**
- Add `test_http_adapter_send` to test the `send` method of `HTTPAdapter`.
- Add `test_http_adapter_cert_verify` to test the `cert_verify` method of `HTTPAdapter`.
* **tests/test_hooks.py**
- Add `test_hooks_with_multiple_hooks` to test hooks with multiple functions.
- Add `test_hooks_with_no_hooks` to test hooks with no functions.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/akaday/requests?shareId=XXXX-XXXX-XXXX-XXXX). | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6816/reactions"
} | https://api.github.com/repos/psf/requests/issues/6816/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6816.diff",
"html_url": "https://github.com/psf/requests/pull/6816",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6816.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6816"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6815 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6815/labels{/name} | https://api.github.com/repos/psf/requests/issues/6815/comments | https://api.github.com/repos/psf/requests/issues/6815/events | https://github.com/psf/requests/issues/6815 | 2,615,368,736 | I_kwDOABTKOs6b41wg | 6,815 | Handle PermissionError when importing adapter.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/46802352?v=4",
"events_url": "https://api.github.com/users/KarelChanivecky/events{/privacy}",
"followers_url": "https://api.github.com/users/KarelChanivecky/followers",
"following_url": "https://api.github.com/users/KarelChanivecky/following{/other_user}",
"gists_url": "https://api.github.com/users/KarelChanivecky/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KarelChanivecky",
"id": 46802352,
"login": "KarelChanivecky",
"node_id": "MDQ6VXNlcjQ2ODAyMzUy",
"organizations_url": "https://api.github.com/users/KarelChanivecky/orgs",
"received_events_url": "https://api.github.com/users/KarelChanivecky/received_events",
"repos_url": "https://api.github.com/users/KarelChanivecky/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KarelChanivecky/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KarelChanivecky/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KarelChanivecky",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 3 | 2024-10-25T23:51:02Z | 2024-10-26T00:34:54Z | 2024-10-26T00:34:54Z | NONE | null | In Windows, if the running process has restricted permissions the process may not have permission to read the file "C:\\Users\\User\\Documents\\syskeylog.txt". Sounds silly, but this error can propagate through dependencies and prevent them from complete importing, even if the functionality you expect from them do not depend on this project.
## Expected Result
Can import adapter.py
## Actual Result
```
from pypac.parser import PACFile
File "C:\Users\User\python_venvs\companion_app312\Lib\site-packages\pypac\__init__.py", line 20, in <module>
from pypac.api import (
File "C:\Users\User\python_venvs\companion_app312\Lib\site-packages\pypac\api.py", line 7, in <module>
import requests
File "C:\Users\User\python_venvs\companion_app312\Lib\site-packages\requests\__init__.py", line 164, in <module>
from .api import delete, get, head, options, patch, post, put, request
File "C:\Users\User\python_venvs\companion_app312\Lib\site-packages\requests\api.py", line 11, in <module>
from . import sessions
File "C:\Users\User\python_venvs\companion_app312\Lib\site-packages\requests\sessions.py", line 15, in <module>
from .adapters import HTTPAdapter
File "C:\Users\User\python_venvs\companion_app312\Lib\site-packages\requests\adapters.py", line 80, in <module>
_preloaded_ssl_context = create_urllib3_context()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\python_venvs\companion_app312\Lib\site-packages\urllib3\util\ssl_.py", line 349, in create_urllib3_context
context.keylog_filename = sslkeylogfile
^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\User\\Documents\\syskeylog.txt'
```
## Reproduction Steps
Run the following code in Windows. You gotta remove a line and un-indent a block. See comment within the code.
```
import _winapi
import asyncio
import ctypes
import msvcrt
import os
import socket
import subprocess
import sys
import time
import traceback
import winreg
from ctypes import wintypes
from multiprocessing import spawn
from subprocess import Popen
import win32api
import win32con
import win32security
from _ctypes import byref, sizeof
def check_privilege():
# Get the current process token
token = win32security.OpenProcessToken(win32api.GetCurrentProcess(), win32con.TOKEN_QUERY)
# Retrieve the privileges
privileges = win32security.GetTokenInformation(token, win32security.TokenPrivileges)
elevation = win32security.GetTokenInformation(token, win32security.TokenElevation)
print(elevation)
# Check if the required privilege is present
for privilege in privileges:
print(f"{win32security.LookupPrivilegeName(None, privilege[0])} - {privilege[1]}", file=sys.stderr)
return False
def check_groups():
token = win32security.OpenProcessToken(win32api.GetCurrentProcess(), win32con.TOKEN_QUERY)
groups = win32security.GetTokenInformation(token, win32security.TokenGroups)
for group, enabled in groups:
name = win32security.LookupAccountSid(None, group)
print(f"{group} - {name} - {hex(enabled)}", file=sys.stderr)
def _get_token():
# h_token = win32security.LogonUser(
# "nopriv",
# "VAN-917843-PC3",
# "Stillcreekdr123!",
# win32con.LOGON32_LOGON_INTERACTIVE,
# win32con.LOGON32_PROVIDER_DEFAULT
# )
# gid = _get_fnbi_group()
# _add_fnbi_group_user()
system_token = win32security.OpenProcessToken(win32api.GetCurrentProcess(),
win32con.TOKEN_DUPLICATE
| win32con.TOKEN_ADJUST_DEFAULT
| win32con.TOKEN_ADJUST_PRIVILEGES
| win32con.TOKEN_QUERY
| win32con.TOKEN_ASSIGN_PRIMARY
| win32con.TOKEN_ADJUST_GROUPS)
low_integrity_SID = "S-1-16-4096"
# https://learn.microsoft.com/en-ca/windows/win32/api/securitybaseapi/nf-securitybaseapi-createrestrictedtoken
# BOOL CreateRestrictedToken(
# [in] HANDLE ExistingTokenHandle,
# [in] DWORD Flags,
# [in] DWORD DisableSidCount,
# [in, optional] PSID_AND_ATTRIBUTES SidsToDisable,
# [in] DWORD DeletePrivilegeCount,
# [in, optional] PLUID_AND_ATTRIBUTES PrivilegesToDelete,
# [in] DWORD RestrictedSidCount,
# [in, optional] PSID_AND_ATTRIBUTES SidsToRestrict,
# [out] PHANDLE NewTokenHandle
# );
old_groups = win32security.GetTokenInformation(system_token, win32security.TokenGroups)
disabled_sids = []
restricted_sids = []
enabled_masks = {
"S-1-1-0", # everyone
"S-1-5-32-545", # Users - needed for dev only?
"S-1-5-5", # logon session - dev only
}
restricted_masks = {
}
def mask_match(entry: str, mask_set):
for m in mask_set:
if entry.startswith(m):
return True
return False
for g, state in old_groups:
sid_str = str(g).split(":")[1]
if mask_match(sid_str, restricted_masks):
restricted_sids.append((g, 0))
continue
if mask_match(sid_str, enabled_masks):
continue
disabled_sids.append((g, 0))
restricted_token = win32security.CreateRestrictedToken(
system_token,
win32security.DISABLE_MAX_PRIVILEGE, # flags
# None,
disabled_sids, # denied SIDS
None, # privs to delete
restricted_sids # restricted SIDS
)
til = (win32security.CreateWellKnownSid(win32security.WinLowLabelSid), win32security.SE_GROUP_INTEGRITY)
win32security.SetTokenInformation(restricted_token, win32security.TokenIntegrityLevel, til)
return restricted_token
class STARTUPINFO(ctypes.Structure):
_fields_ = [
("cb", wintypes.DWORD), # Size of the structure
("lpReserved", wintypes.LPWSTR), # Reserved; must be NULL
("lpDesktop", wintypes.LPWSTR), # Name of the desktop
("lpTitle", wintypes.LPWSTR), # Title of the window
("dwX", wintypes.DWORD), # X position
("dwY", wintypes.DWORD), # Y position
("dwXSize", wintypes.DWORD), # Width of the window
("dwYSize", wintypes.DWORD), # Height of the window
("dwXCountChars", wintypes.DWORD), # Height of the window
("dwYCountChars", wintypes.DWORD), # Height of the window
("dwFillAttribute", wintypes.DWORD), # Height of the window
("dwFlags", wintypes.DWORD), # Flags
("wShowWindow", wintypes.WORD), # Show window command
("cbReserved2", wintypes.WORD), # Size of the reserved area
("lpReserved2", wintypes.LPBYTE), # Pointer to the reserved area
("hStdInput", wintypes.HANDLE), # Handle to standard input
("hStdOutput", wintypes.HANDLE), # Handle to standard output
("hStdError", wintypes.HANDLE) # Handle to standard error
]
class STARTUPINFOEX(ctypes.Structure):
_fields_ = [
("StartupInfo", STARTUPINFO),
("lpAttributeList", wintypes.LPVOID)
]
# Define PROCESS_INFORMATION structure
class PROCESS_INFORMATION(ctypes.Structure):
_fields_ = [
("hProcess", wintypes.HANDLE),
("hThread", wintypes.HANDLE),
("dwProcessId", wintypes.DWORD),
("dwThreadId", wintypes.DWORD)
]
# Load the function
kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
advapi32 = ctypes.WinDLL('advapi32', use_last_error=True)
libc = ctypes.CDLL("msvcrt.dll")
# Define SetHandleInformation function
SetHandleInformation = kernel32.SetHandleInformation
SetHandleInformation.argtypes = [
ctypes.wintypes.HANDLE, # hObject
ctypes.wintypes.DWORD, # dwMask
ctypes.wintypes.DWORD # dwFlags
]
SetHandleInformation.restype = ctypes.wintypes.BOOL
CreateProcessW = kernel32.CreateProcessW
CreateProcessAsUser = advapi32.CreateProcessAsUserW
CREATE_UNICODE_ENVIRONMENT = 0x00000400
PROC_THREAD_ATTRIBUTE_LIST = 0x00020000
PROC_THREAD_ATTRIBUTE_HANDLE_LIST = 0x00020004
EXTENDED_STARTUPINFO_PRESENT = 0x00080000
HANDLE_FLAG_INHERIT = 0x00000001
HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x00000002
def get_last_error_message():
error_code = ctypes.get_last_error()
if error_code == 0:
return "No error."
message_buffer = ctypes.create_string_buffer(256)
message_length = kernel32.FormatMessageA(
0x00000001 | 0x00001000, # FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER
None,
error_code,
0,
byref(message_buffer),
ctypes.sizeof(message_buffer),
None
)
if message_length == 0:
return f"Unknown error code: {error_code}"
msg = message_buffer.value.decode('ansi').replace('\r', '').replace('\n', '')
return msg
foo = None
# Function to get Windows handle from file descriptor
def get_windows_handle(file):
# Get the file descriptor
fd = file.fileno()
# Use _get_osfhandle to get the Windows handle
handle = ctypes.windll.kernel32._get_osfhandle(fd)
if handle == -1:
raise ValueError("Could not get the Windows handle.")
return handle
def make_handle_inheritable(handle):
if not SetHandleInformation(handle, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT):
raise ctypes.WinError(ctypes.get_last_error())
def writer_main():
def CreateProcess(cmd, cmdline, proc_attr, thread_attr, inherit_handles, creation_flags, current_directory,
environment, startup_info):
# change_privilege(win32con.SE_PRIVILEGE_ENABLED)
# check_privilege()
token = _get_token()
# CreateProcessAsUser
# 0 [in, optional] HANDLE hToken,
# 1 [in, optional] LPCSTR lpApplicationName,
# 2 [in, out, optional] LPSTR lpCommandLine,
# 3 [in, optional] LPSECURITY_ATTRIBUTES lpProcessAttributes,
# 4 [in, optional] LPSECURITY_ATTRIBUTES lpThreadAttributes,
# 5 [in] BOOL bInheritHandles,
# 6 [in] DWORD dwCreationFlags,
# 7 [in, optional] LPVOID lpEnvironment,
# 8 [in, optional] LPCSTR lpCurrentDirectory,
# 9 [in] LPSTARTUPINFOA lpStartupInfo,
# CreateProcess
# 0 [in, optional] LPCSTR lpApplicationName,
# 1 [in, out, optional] LPSTR lpCommandLine,
# 2 [in, optional] LPSECURITY_ATTRIBUTES lpProcessAttributes,
# 3 [in, optional] LPSECURITY_ATTRIBUTES lpThreadAttributes,
# 4 [in] BOOL bInheritHandles,
# 5 [in] DWORD dwCreationFlags,
# 6 [in, optional] LPVOID lpEnvironment,
# 7 [in, optional] LPCSTR lpCurrentDirectory,
# 8 [in] LPSTARTUPINFOA lpStartupInfo,
six = STARTUPINFOEX()
si = six.StartupInfo
si.cb = ctypes.sizeof(STARTUPINFOEX)
attribute_list_size = wintypes.DWORD()
kernel32.InitializeProcThreadAttributeList(None, 1, 0, byref(attribute_list_size))
buffer = (wintypes.BYTE * (attribute_list_size.value + 10))()
six.lpAttributeList = ctypes.cast(buffer, wintypes.LPVOID)
if not six.lpAttributeList:
print(f"HeapAlloc failed with error: {get_last_error_message()}")
raise RuntimeError()
if not kernel32.InitializeProcThreadAttributeList(
byref(buffer),
1,
0,
byref(attribute_list_size)
):
print(f"InitializeProcThreadAttributeList failed with error: {get_last_error_message()}")
raise RuntimeError()
if startup_info is not None:
si.dwFlags |= win32con.STARTF_USESTDHANDLES # Enable standard handle redirection
si.hStdOutput = getattr(startup_info, "hStdOutput") # Redirect standard output
si.hStdInput = getattr(startup_info, "hStdInput") # Redirect standard error
si.hStdError = getattr(startup_info, "hStdError") # Redirect standard error
handle_list = [wintypes.HANDLE(si.hStdOutput), wintypes.HANDLE(si.hStdInput), wintypes.HANDLE(si.hStdError)]
handle_count = len(handle_list)
handles_array = (wintypes.HANDLE * handle_count)(*handle_list) # Create an array of handles
ctypes.windll.kernel32.UpdateProcThreadAttribute(
buffer,
0,
PROC_THREAD_ATTRIBUTE_HANDLE_LIST,
handles_array,
handle_count * sizeof(wintypes.HANDLE),
None,
None
)
pi = PROCESS_INFORMATION()
success = advapi32.CreateProcessAsUserW(
token.handle,
python_exe, cmdline, proc_attr, thread_attr, inherit_handles,
creation_flags | CREATE_UNICODE_ENVIRONMENT,
environment, current_directory, byref(six), byref(pi)
)
# return TemporaryLibPatch.execute_unpatched(CreateProcess,
# python_exe, cmdline, proc_attr, thread_attr, inherit_handles,
# creation_flags,
# environment, current_directory, startup_info
# )
if not success:
print(f"CreateProcessAsUser failed with error: {get_last_error_message()}")
raise RuntimeError()
return pi.hProcess, pi.hThread, pi.dwProcessId, pi.dwThreadId,
file = open(__file__, 'r')
handle = msvcrt.get_osfhandle(file.fileno())
make_handle_inheritable(handle)
_winapi.CreateProcess = CreateProcess
# You can remove the context manager line below. It just wraps around the line above. The Github editor doesn't let me easily remove the indentation of the block....
with TemporaryLibPatch(_winapi, CreateProcess):
def _path_eq(p1, p2):
return p1 == p2 or os.path.normcase(p1) == os.path.normcase(p2)
WINENV = _path_eq(sys.executable, sys._base_executable)
python_exe = spawn.get_executable()
set_pylauncher = False
# FROM multiprocessing module:
# # bpo-35797: When running in a venv, we bypass the redirect
if WINENV and _path_eq(python_exe, sys.executable):
python_exe = sys._base_executable
set_pylauncher = True
os.environ["__PYVENV_LAUNCHER__"] = sys.executable
proc = Popen([
python_exe,
__file__,
"--read",
], stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
shell=False,
close_fds=False
)
if set_pylauncher:
os.unsetenv("__PYVENV_LAUNCHER__")
proc.wait()
def reader_main():
import requests
if __name__ == '__main__':
if len(sys.argv) > 1 and sys.argv[1] == "--read":
reader_main()
else:
writer_main()
```
## System Information
$ python -m requests.help
```json
{
"chardet": {
"version": null
},
"charset_normalizer": {
"version": "3.3.2"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "3.8"
},
"implementation": {
"name": "CPython",
"version": "3.12.5"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.32.3"
},
"system_ssl": {
"version": "300000d0"
},
"urllib3": {
"version": "2.2.2"
},
"using_charset_normalizer": true,
"using_pyopenssl": false
}
```
<!-- This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c). -->
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6815/reactions"
} | https://api.github.com/repos/psf/requests/issues/6815/timeline | null | not_planned | null | null | false | [
"https://github.com/urllib3/urllib3/blob/f9d37add7983d441b151146db447318dff4186c9/src/urllib3/util/ssl_.py#L351-L356\r\n\r\nThis code path is only triggered with that environment variable set. Unset it, and you won't have permissions problems.",
"Thanks for the prompt help!! \r\n\r\nCan I recommend leaving a comment mentioning this at this line?",
"It's in a different project"
] |
https://api.github.com/repos/psf/requests/issues/6814 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6814/labels{/name} | https://api.github.com/repos/psf/requests/issues/6814/comments | https://api.github.com/repos/psf/requests/issues/6814/events | https://github.com/psf/requests/pull/6814 | 2,601,341,152 | PR_kwDOABTKOs5_Qsor | 6,814 | update docs for `timeout` arguments to clarify that it uses seconds | {
"avatar_url": "https://avatars.githubusercontent.com/u/57028336?v=4",
"events_url": "https://api.github.com/users/DetachHead/events{/privacy}",
"followers_url": "https://api.github.com/users/DetachHead/followers",
"following_url": "https://api.github.com/users/DetachHead/following{/other_user}",
"gists_url": "https://api.github.com/users/DetachHead/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DetachHead",
"id": 57028336,
"login": "DetachHead",
"node_id": "MDQ6VXNlcjU3MDI4MzM2",
"organizations_url": "https://api.github.com/users/DetachHead/orgs",
"received_events_url": "https://api.github.com/users/DetachHead/received_events",
"repos_url": "https://api.github.com/users/DetachHead/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DetachHead/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DetachHead/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DetachHead",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 0 | 2024-10-21T05:05:25Z | 2024-10-21T05:05:25Z | null | NONE | null | fixes #6813 | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6814/reactions"
} | https://api.github.com/repos/psf/requests/issues/6814/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6814.diff",
"html_url": "https://github.com/psf/requests/pull/6814",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6814.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6814"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6813 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6813/labels{/name} | https://api.github.com/repos/psf/requests/issues/6813/comments | https://api.github.com/repos/psf/requests/issues/6813/events | https://github.com/psf/requests/issues/6813 | 2,601,337,465 | I_kwDOABTKOs6bDUJ5 | 6,813 | `Session.request` documentation does not specify what unit of time the `timeout` argument uses | {
"avatar_url": "https://avatars.githubusercontent.com/u/57028336?v=4",
"events_url": "https://api.github.com/users/DetachHead/events{/privacy}",
"followers_url": "https://api.github.com/users/DetachHead/followers",
"following_url": "https://api.github.com/users/DetachHead/following{/other_user}",
"gists_url": "https://api.github.com/users/DetachHead/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DetachHead",
"id": 57028336,
"login": "DetachHead",
"node_id": "MDQ6VXNlcjU3MDI4MzM2",
"organizations_url": "https://api.github.com/users/DetachHead/orgs",
"received_events_url": "https://api.github.com/users/DetachHead/received_events",
"repos_url": "https://api.github.com/users/DetachHead/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DetachHead/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DetachHead/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DetachHead",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 0 | 2024-10-21T05:02:29Z | 2024-10-31T19:23:38Z | null | NONE | null | [the documentation for `requests.request`](https://requests.readthedocs.io/en/latest/api/#requests.request) says this:
> - **timeout** (_[float](https://docs.python.org/3/library/functions.html#float) or [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)_) – (optional) How many seconds to wait for the server to send data before giving up, as a float, or a [(connect timeout, read timeout)](https://requests.readthedocs.io/en/latest/user/advanced/#timeouts) tuple.
however [the documentation for the same argument in `Session.request`](https://requests.readthedocs.io/en/latest/api/#requests.Session.request) does not clarify that it uses seconds:
> - **timeout** (_[float](https://docs.python.org/3/library/functions.html#float) or [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)_) – (optional) How long to wait for the server to send data before giving up, as a float, or a [(connect timeout, read timeout)](https://requests.readthedocs.io/en/latest/user/advanced/#timeouts) tuple. | null | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/psf/requests/issues/6813/reactions"
} | https://api.github.com/repos/psf/requests/issues/6813/timeline | null | null | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/6811 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6811/labels{/name} | https://api.github.com/repos/psf/requests/issues/6811/comments | https://api.github.com/repos/psf/requests/issues/6811/events | https://github.com/psf/requests/pull/6811 | 2,598,402,633 | PR_kwDOABTKOs5_JWLD | 6,811 | Merge pull request #1 from psf/main | {
"avatar_url": "https://avatars.githubusercontent.com/u/113218619?v=4",
"events_url": "https://api.github.com/users/FabianaCampanari/events{/privacy}",
"followers_url": "https://api.github.com/users/FabianaCampanari/followers",
"following_url": "https://api.github.com/users/FabianaCampanari/following{/other_user}",
"gists_url": "https://api.github.com/users/FabianaCampanari/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FabianaCampanari",
"id": 113218619,
"login": "FabianaCampanari",
"node_id": "U_kgDOBr-UOw",
"organizations_url": "https://api.github.com/users/FabianaCampanari/orgs",
"received_events_url": "https://api.github.com/users/FabianaCampanari/received_events",
"repos_url": "https://api.github.com/users/FabianaCampanari/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FabianaCampanari/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FabianaCampanari/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FabianaCampanari",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 1 | 2024-10-18T21:18:06Z | 2024-10-18T22:08:13Z | 2024-10-18T22:08:13Z | NONE | null | updated | {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6811/reactions"
} | https://api.github.com/repos/psf/requests/issues/6811/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6811.diff",
"html_url": "https://github.com/psf/requests/pull/6811",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6811.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6811"
} | true | [
"It looks like this PR may have been opened by mistake. If you have any questions regarding our contribution process, we'd recommend starting [here](https://github.com/psf/requests/blob/main/docs/dev/contributing.rst). I'm going to resolve this since it's not actionable at this time."
] |
https://api.github.com/repos/psf/requests/issues/6810 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6810/labels{/name} | https://api.github.com/repos/psf/requests/issues/6810/comments | https://api.github.com/repos/psf/requests/issues/6810/events | https://github.com/psf/requests/issues/6810 | 2,597,150,655 | I_kwDOABTKOs6azV-_ | 6,810 | Change auth.py to be used in a FIPS system | {
"avatar_url": "https://avatars.githubusercontent.com/u/176612599?v=4",
"events_url": "https://api.github.com/users/Jose-albino/events{/privacy}",
"followers_url": "https://api.github.com/users/Jose-albino/followers",
"following_url": "https://api.github.com/users/Jose-albino/following{/other_user}",
"gists_url": "https://api.github.com/users/Jose-albino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Jose-albino",
"id": 176612599,
"login": "Jose-albino",
"node_id": "U_kgDOCobk9w",
"organizations_url": "https://api.github.com/users/Jose-albino/orgs",
"received_events_url": "https://api.github.com/users/Jose-albino/received_events",
"repos_url": "https://api.github.com/users/Jose-albino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Jose-albino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jose-albino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Jose-albino",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 1 | 2024-10-18T10:32:43Z | 2024-11-06T16:28:17Z | null | NONE | null | <!-- Summary. -->
## Expected Result
Using the requests to perform a HTTPS action is working in a FIPS environment
<!-- What you expected. -->
## Actual Result
In UNIX environment with fips enabled the MD5 can't be used.
It provides this error
ValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS
## Solution
Apply this patch in auth.py
`
*** 145,151 ****
def md5_utf8(x):
if isinstance(x, str):
x = x.encode("utf-8")
! return hashlib.md5(x).hexdigest()
hash_utf8 = md5_utf8
elif _algorithm == "SHA":
--- 145,151 ----
def md5_utf8(x):
if isinstance(x, str):
x = x.encode("utf-8")
! return hashlib.md5(x,usedforsecurity=False).hexdigest()
hash_utf8 = md5_utf8
elif _algorithm == "SHA":
`
| null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6810/reactions"
} | https://api.github.com/repos/psf/requests/issues/6810/timeline | null | null | null | null | false | [
"Could I work on this ticket ?\r\nThe `usedforsecurity` parameter is only available in python >= 3.9. Plan is to set `usedforsecurity` to True only if python version >= 3.9."
] |
https://api.github.com/repos/psf/requests/issues/6809 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6809/labels{/name} | https://api.github.com/repos/psf/requests/issues/6809/comments | https://api.github.com/repos/psf/requests/issues/6809/events | https://github.com/psf/requests/issues/6809 | 2,591,762,146 | I_kwDOABTKOs6aeybi | 6,809 | Retry hangs indefinitely for 503 status code | {
"avatar_url": "https://avatars.githubusercontent.com/u/71135893?v=4",
"events_url": "https://api.github.com/users/HamzaG737/events{/privacy}",
"followers_url": "https://api.github.com/users/HamzaG737/followers",
"following_url": "https://api.github.com/users/HamzaG737/following{/other_user}",
"gists_url": "https://api.github.com/users/HamzaG737/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HamzaG737",
"id": 71135893,
"login": "HamzaG737",
"node_id": "MDQ6VXNlcjcxMTM1ODkz",
"organizations_url": "https://api.github.com/users/HamzaG737/orgs",
"received_events_url": "https://api.github.com/users/HamzaG737/received_events",
"repos_url": "https://api.github.com/users/HamzaG737/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HamzaG737/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HamzaG737/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HamzaG737",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 2 | 2024-10-16T12:36:00Z | 2024-10-17T16:24:45Z | 2024-10-17T16:24:45Z | NONE | null | When making a GET request to a URL that returns a 503 status code, the retry strategy causes the code to loop indefinitely, regardless of whether the 503 status code is included in the status_forcelist parameter.
## Expected Result
The retry mechanism should follow the configured retry policy (e.g., retry a specified number of times) and eventually raise an error after the maximum retries.
## Actual Result
The code retries indefinitely without raising an exception or stopping.
## Reproduction Steps
```python
import requests
from requests.adapters import HTTPAdapter, Retry
url = "https://www.floraquatic.com/363-eau-de-mer-et-recifal"
session = requests.Session()
retry_strategy = Retry(total=3, backoff_factor=0.5, status_forcelist=[429, 500, 502, 504]) #You can add 503 here, same result is expected
adapter = HTTPAdapter(max_retries=retry_strategy)
session.mount("https://", adapter)
try:
response = session.get(url)
html_content = response.text
except Exception as e:
print(str(e))
```
## System Information
$ python -m requests.help
```json
{
"chardet": {
"version": null
},
"charset_normalizer": {
"version": "3.4.0"
},
"cryptography": {
"version": "43.0.1"
},
"idna": {
"version": "3.10"
},
"implementation": {
"name": "CPython",
"version": "3.11.9"
},
"platform": {
"release": "5.15.0-122-generic",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "30300020",
"version": "24.2.1"
},
"requests": {
"version": "2.32.3"
},
"system_ssl": {
"version": "30000020"
},
"urllib3": {
"version": "1.26.20"
},
"using_charset_normalizer": true,
"using_pyopenssl": true
}
```
<!-- This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c). -->
| {
"avatar_url": "https://avatars.githubusercontent.com/u/71135893?v=4",
"events_url": "https://api.github.com/users/HamzaG737/events{/privacy}",
"followers_url": "https://api.github.com/users/HamzaG737/followers",
"following_url": "https://api.github.com/users/HamzaG737/following{/other_user}",
"gists_url": "https://api.github.com/users/HamzaG737/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HamzaG737",
"id": 71135893,
"login": "HamzaG737",
"node_id": "MDQ6VXNlcjcxMTM1ODkz",
"organizations_url": "https://api.github.com/users/HamzaG737/orgs",
"received_events_url": "https://api.github.com/users/HamzaG737/received_events",
"repos_url": "https://api.github.com/users/HamzaG737/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HamzaG737/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HamzaG737/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HamzaG737",
"user_view_type": "public"
} | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/psf/requests/issues/6809/reactions"
} | https://api.github.com/repos/psf/requests/issues/6809/timeline | null | completed | null | null | false | [
"@HamzaG737 My dear friend,\r\nYes, you are right. When the `Retry() `reaches its limit, it should raise a `RetryError` exception. However, regarding the issue you mentioned, I checked the responses from the URL you provided and noticed that there is a `Retry-After` header in the response, which is set to **3600** (this value is in seconds).\r\n\r\n\r\nThis value is actually set by the server in the response, indicating that you should retry after 3600 seconds.\r\n\r\nHowever, what happens in your example is that the Retry() class in urllib3 has a variable called `respect_retry_after_header`, which is set to `True` by default. If we send a request to the server and the server's response contains the `Retry-After` header, **urllib3**, and consequently **requests**, will wait until this time elapses before sending the next request.\r\n\r\nNow, what you need to do is set the value of this variable to False like this:\r\n```python\r\nretry_strategy = Retry(total=3, backoff_factor=0.5, respect_retry_after_header=False)\r\n``` \r\n\r\nIf this comment helped you and you don't have any further questions, I would appreciate it if you could close this issue.",
"Hello Mahdibaham, \r\n\r\nThank you very much for this solution, it solves indeed my issue. I am closing this issue."
] |
https://api.github.com/repos/psf/requests/issues/6808 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6808/labels{/name} | https://api.github.com/repos/psf/requests/issues/6808/comments | https://api.github.com/repos/psf/requests/issues/6808/events | https://github.com/psf/requests/issues/6808 | 2,579,970,702 | I_kwDOABTKOs6ZxzqO | 6,808 | Double-digit link-local IPv6 zone id raises ValueError | {
"avatar_url": "https://avatars.githubusercontent.com/u/399361?v=4",
"events_url": "https://api.github.com/users/twslankard/events{/privacy}",
"followers_url": "https://api.github.com/users/twslankard/followers",
"following_url": "https://api.github.com/users/twslankard/following{/other_user}",
"gists_url": "https://api.github.com/users/twslankard/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twslankard",
"id": 399361,
"login": "twslankard",
"node_id": "MDQ6VXNlcjM5OTM2MQ==",
"organizations_url": "https://api.github.com/users/twslankard/orgs",
"received_events_url": "https://api.github.com/users/twslankard/received_events",
"repos_url": "https://api.github.com/users/twslankard/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twslankard/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twslankard/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twslankard",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 0 | 2024-10-10T22:32:21Z | 2024-10-31T19:23:46Z | null | NONE | null | When making a request to a link-local IPv6 address, it becomes necessary to specify the "zone id" aka "scope id". [RFC 6874](https://www.rfc-editor.org/rfc/rfc6874) specifies zone ids as follows:
> According to IPv6 Scoped Address syntax [[RFC4007](https://www.rfc-editor.org/rfc/rfc4007)], a zone identifier
> is attached to the textual representation of an IPv6 address by
> concatenating "%" followed by <zone_id>, where <zone_id> is a string
> identifying the zone of the address. However, the IPv6 Scoped
> Address Architecture specification gives no precise definition of the
> character set allowed in <zone_id>. There are no rules or de facto
> standards for this. For example, the first Ethernet interface in a
> host might be called %0, %1, %en1, %eth0, or whatever the implementer
> happened to choose.
>
> In a URI, a literal IPv6 address is always embedded between "[" and
> "]". This document specifies how a <zone_id> can be appended to the
> address. According to URI syntax [[RFC3986](https://www.rfc-editor.org/rfc/rfc3986)], "%" is always treated as
> an escape character in a URI, so, according to the established URI
> syntax [[RFC3986](https://www.rfc-editor.org/rfc/rfc3986)] any occurrences of literal "%" symbols in a URI MUST
> be percent-encoded and represented in the form "%25". Thus, the
> scoped address fe80::a%en1 would appear in a URI as
> http://[fe80::a%25en1].
I understand the above to mean that the "zone id" can be multiple characters (even when it's an integer.)
When using `requests.get` to request information from IoT devices using link-local networking, I occasionally see double-digit integer zone ids. An example of such a scoped address is `fe80::be0f:a7ff:fe00:2929%53`. As such, I'm escaping the `%` as `%25` as indicated in the RFC. (In this case, this has no effect on the results.)
## Expected Result
This does not throw.
```
import requests
host = 'fe80::be0f:a7ff:fe00:2929%2553'
url = f'http://[{host}]'
requests.get(url)
```
## Actual Result
It throws:
```
ValueError: 'fe80::be0f:a7ff:fe00:2929S' does not appear to be an IPv4 or IPv6 address
```
Some debugging reveals that `urllib3.util.parse_url` replaces `%25` with `%` in its result.
## Reproduction Steps
1. Run the code in the expected result section.
## System Information
$ python -m requests.help
```json
{
"chardet": {
"version": "5.2.0"
},
"charset_normalizer": {
"version": "3.3.2"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "3.7"
},
"implementation": {
"name": "CPython",
"version": "3.12.3"
},
"platform": {
"release": "6.8.0-40-generic",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.32.3"
},
"system_ssl": {
"version": "30000020"
},
"urllib3": {
"version": "2.2.2"
},
"using_charset_normalizer": false,
"using_pyopenssl": false
}
```
<!-- This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c). -->
| null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 1,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/psf/requests/issues/6808/reactions"
} | https://api.github.com/repos/psf/requests/issues/6808/timeline | null | null | null | null | false | [] |
https://api.github.com/repos/psf/requests/issues/6807 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6807/labels{/name} | https://api.github.com/repos/psf/requests/issues/6807/comments | https://api.github.com/repos/psf/requests/issues/6807/events | https://github.com/psf/requests/issues/6807 | 2,578,757,671 | I_kwDOABTKOs6ZtLgn | 6,807 | what is the point of this line? | {
"avatar_url": "https://avatars.githubusercontent.com/u/12595191?v=4",
"events_url": "https://api.github.com/users/davit555/events{/privacy}",
"followers_url": "https://api.github.com/users/davit555/followers",
"following_url": "https://api.github.com/users/davit555/following{/other_user}",
"gists_url": "https://api.github.com/users/davit555/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davit555",
"id": 12595191,
"login": "davit555",
"node_id": "MDQ6VXNlcjEyNTk1MTkx",
"organizations_url": "https://api.github.com/users/davit555/orgs",
"received_events_url": "https://api.github.com/users/davit555/received_events",
"repos_url": "https://api.github.com/users/davit555/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davit555/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davit555/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davit555",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 1 | 2024-10-10T12:51:29Z | 2024-10-10T14:31:55Z | 2024-10-10T14:31:55Z | NONE | null | https://github.com/psf/requests/blame/7335bbf480adc8e6aa88feb2022797a549a00aa3/src/requests/sessions.py#L746 | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6807/reactions"
} | https://api.github.com/repos/psf/requests/issues/6807/timeline | null | not_planned | null | null | false | [
"You have blamed the commit which shows which PR it came from (#1944) which references other issues and PRs. Please follow and read those. Issues are for detects and this is neither a defect nor pointing at a potential one. "
] |
https://api.github.com/repos/psf/requests/issues/6806 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6806/labels{/name} | https://api.github.com/repos/psf/requests/issues/6806/comments | https://api.github.com/repos/psf/requests/issues/6806/events | https://github.com/psf/requests/pull/6806 | 2,566,364,683 | PR_kwDOABTKOs59nxnv | 6,806 | Fix typo in documentation for verify | {
"avatar_url": "https://avatars.githubusercontent.com/u/8417?v=4",
"events_url": "https://api.github.com/users/jonas/events{/privacy}",
"followers_url": "https://api.github.com/users/jonas/followers",
"following_url": "https://api.github.com/users/jonas/following{/other_user}",
"gists_url": "https://api.github.com/users/jonas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonas",
"id": 8417,
"login": "jonas",
"node_id": "MDQ6VXNlcjg0MTc=",
"organizations_url": "https://api.github.com/users/jonas/orgs",
"received_events_url": "https://api.github.com/users/jonas/received_events",
"repos_url": "https://api.github.com/users/jonas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonas",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 0 | 2024-10-04T13:20:03Z | 2024-10-13T21:12:58Z | null | NONE | null | The code for reference: https://github.com/psf/requests/blob/7335bbf480adc8e6aa88feb2022797a549a00aa3/src/requests/adapters.py#L336
| null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6806/reactions"
} | https://api.github.com/repos/psf/requests/issues/6806/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6806.diff",
"html_url": "https://github.com/psf/requests/pull/6806",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6806.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6806"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6805 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6805/labels{/name} | https://api.github.com/repos/psf/requests/issues/6805/comments | https://api.github.com/repos/psf/requests/issues/6805/events | https://github.com/psf/requests/pull/6805 | 2,560,495,194 | PR_kwDOABTKOs59UmBW | 6,805 | Remove duplicate .eggs entry in .gitignore | {
"avatar_url": "https://avatars.githubusercontent.com/u/14360110?v=4",
"events_url": "https://api.github.com/users/OmniTroid/events{/privacy}",
"followers_url": "https://api.github.com/users/OmniTroid/followers",
"following_url": "https://api.github.com/users/OmniTroid/following{/other_user}",
"gists_url": "https://api.github.com/users/OmniTroid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OmniTroid",
"id": 14360110,
"login": "OmniTroid",
"node_id": "MDQ6VXNlcjE0MzYwMTEw",
"organizations_url": "https://api.github.com/users/OmniTroid/orgs",
"received_events_url": "https://api.github.com/users/OmniTroid/received_events",
"repos_url": "https://api.github.com/users/OmniTroid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OmniTroid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OmniTroid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OmniTroid",
"user_view_type": "public"
} | [] | open | false | null | [] | null | 0 | 2024-10-02T01:18:38Z | 2024-10-13T21:11:47Z | null | NONE | null | null | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6805/reactions"
} | https://api.github.com/repos/psf/requests/issues/6805/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6805.diff",
"html_url": "https://github.com/psf/requests/pull/6805",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6805.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6805"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6804 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6804/labels{/name} | https://api.github.com/repos/psf/requests/issues/6804/comments | https://api.github.com/repos/psf/requests/issues/6804/events | https://github.com/psf/requests/issues/6804 | 2,558,618,629 | I_kwDOABTKOs6YgWwF | 6,804 | XML gets shortened when submitting a post request | {
"avatar_url": "https://avatars.githubusercontent.com/u/24318105?v=4",
"events_url": "https://api.github.com/users/danster99/events{/privacy}",
"followers_url": "https://api.github.com/users/danster99/followers",
"following_url": "https://api.github.com/users/danster99/following{/other_user}",
"gists_url": "https://api.github.com/users/danster99/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danster99",
"id": 24318105,
"login": "danster99",
"node_id": "MDQ6VXNlcjI0MzE4MTA1",
"organizations_url": "https://api.github.com/users/danster99/orgs",
"received_events_url": "https://api.github.com/users/danster99/received_events",
"repos_url": "https://api.github.com/users/danster99/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danster99/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danster99/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danster99",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 1 | 2024-10-01T09:02:13Z | 2024-10-27T18:49:31Z | 2024-10-27T18:49:31Z | NONE | null | I am trying to send an xml in a post request to a SOAP endpoint of a TMS server.
The code is the following:
```
response = requests.post(
url,
data=xml_output,
headers={"Content-Type": "text/xml"},
timeout=60,
cert=(cert_file, decrypted_key_file),
)
```
The server returns a response saying that it got an unexpected end of input in lixe x, char y. The error is dependent on the size of the xml, but is reproducible.
I am attaching 2 XMLs as examples:
EX 1:
```
<?xml version="1.0" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tms="urn:CDM/tmsIntegrationService/" xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>xxx_xxx</wsse:Username>
<wsse:Password>xxxxxxxxxxxxxxxxxxxx</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<tms:transportInstructionMessage>
<sh:StandardBusinessDocumentHeader>
<sh:HeaderVersion>1</sh:HeaderVersion>
<sh:Sender>
<sh:Identifier>PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</sh:Identifier>
</sh:Sender>
<sh:Receiver>
<sh:Identifier>Test Identifier</sh:Identifier>
</sh:Receiver>
<sh:DocumentIdentification>
<sh:Standard>GS1</sh:Standard>
<sh:TypeVersion>3.2</sh:TypeVersion>
<sh:InstanceIdentifier>100002</sh:InstanceIdentifier>
<sh:Type>Transport Instruction</sh:Type>
<sh:CreationDateAndTime>2024-10-01T07:58:43Z</sh:CreationDateAndTime>
</sh:DocumentIdentification>
<sh:BusinessScope>
<sh:Scope>
<sh:Type>EDIcustomerNumber</sh:Type>
<sh:InstanceIdentifier>90000050</sh:InstanceIdentifier>
</sh:Scope>
<sh:Scope>
<sh:Type>fileType</sh:Type>
<sh:InstanceIdentifier>IF</sh:InstanceIdentifier>
</sh:Scope>
<sh:Scope>
<sh:Type>department</sh:Type>
<sh:InstanceIdentifier>62</sh:InstanceIdentifier>
</sh:Scope>
<sh:Scope>
<sh:Type>application</sh:Type>
<sh:InstanceIdentifier>LOGI</sh:InstanceIdentifier>
</sh:Scope>
</sh:BusinessScope>
</sh:StandardBusinessDocumentHeader>
<transportInstruction>
<creationDateTime>2024-10-01T07:58:43Z</creationDateTime>
<documentStatusCode>ORIGINAL</documentStatusCode>
<documentActionCode>ADD</documentActionCode>
<transportInstructionIdentification>
<entityIdentification>12345_test/012934535</entityIdentification>
</transportInstructionIdentification>
<transportInstructionFunction>SHIPMENT</transportInstructionFunction>
<logisticServicesSeller/>
<logisticServicesBuyer>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</additionalPartyIdentification>
</logisticServicesBuyer>
<transportInstructionShipment>
<additionalShipmentIdentification additionalShipmentIdentificationTypeCode="refopd">LC48</additionalShipmentIdentification>
<note languageCode="EN" noteTypeCode="INF"/>
<note languageCode="EN" noteTypeCode="INF">Fragile goods !</note>
<note languageCode="EN" noteTypeCode="INF">Towar niepiętrowalny</note>
<note languageCode="EN" noteTypeCode="INF"/>
<note languageCode="EN" noteTypeCode="INF">Fragile goods !</note>
<note languageCode="EN" noteTypeCode="INF">Towar niepiętrowalny</note>
<receiver>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">3b045ae1-edec-485d-9</additionalPartyIdentification>
<address>
<city>Üllő</city>
<countryCode>HU</countryCode>
<name>AUCHAN MAGYARORSZÁG</name>
<postalCode>2225</postalCode>
<streetAddressOne>Zsaróka út 8</streetAddressOne>
</address>
</receiver>
<shipper>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">ad11a7fc-0442-4b03-8</additionalPartyIdentification>
<address>
<city>WIRY</city>
<countryCode>PL</countryCode>
<name>PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</name>
<postalCode>62-051</postalCode>
<streetAddressOne>KASZTANOWA 12</streetAddressOne>
</address>
</shipper>
<shipTo>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">3b045ae1-edec-485d-9</additionalPartyIdentification>
<address>
<city>Üllő</city>
<countryCode>HU</countryCode>
<name>AUCHAN MAGYARORSZÁG</name>
<postalCode>2225</postalCode>
<streetAddressOne>Zsaróka út 8</streetAddressOne>
</address>
<contact>
<contactTypeCode>BJ</contactTypeCode>
<personName>John Doe</personName>
<communicationChannel>
<communicationChannelCode>EMAIL</communicationChannelCode>
<communicationValue>[email protected]</communicationValue>
</communicationChannel>
<communicationChannel>
<communicationChannelCode>TELEPHONE</communicationChannelCode>
<communicationValue>+391234123490</communicationValue>
</communicationChannel>
</contact>
</shipTo>
<shipFrom>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">ad11a7fc-0442-4b03-8</additionalPartyIdentification>
<address>
<city>WIRY</city>
<countryCode>PL</countryCode>
<name>PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</name>
<postalCode>62-051</postalCode>
<streetAddressOne>KASZTANOWA 12</streetAddressOne>
</address>
</shipFrom>
<transportInstructionTerms>
<transportServiceCategoryType>30</transportServiceCategoryType>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="parameters">ForPlanning</logisticServiceRequirementCode>
</logisticService>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="productType">PROD01</logisticServiceRequirementCode>
</logisticService>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="parameters">ROD</logisticServiceRequirementCode>
</logisticService>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="parameters">ROP</logisticServiceRequirementCode>
</logisticService>
</transportInstructionTerms>
<plannedDespatch>
<logisticEventPeriod>
<beginDate>2024-10-27</beginDate>
<beginTime>01:10:00</beginTime>
<endDate>2024-10-27</endDate>
<endTime>10:00:00</endTime>
</logisticEventPeriod>
</plannedDespatch>
<transportReference>
<entityIdentification>12345_test/012934535</entityIdentification>
<transportReferenceTypeCode>customerRef</transportReferenceTypeCode>
</transportReference>
<transportInstructionShipmentItem>
<lineItemNumber>1</lineItemNumber>
<transportCargoCharacteristics>
<cargoTypeCode>neam</cargoTypeCode>
<cargoTypeDescription languageCode="PL">Smycze</cargoTypeDescription>
<totalGrossVolume measurementUnitCode="MTQ">7.5</totalGrossVolume>
<totalGrossWeight measurementUnitCode="KGM">5.000</totalGrossWeight>
<totalLoadingLength measurementUnitCode="PP">2.8000000000000003</totalLoadingLength>
<totalPackageQuantity measurementUnitCode="Euro pallet 120x80">7</totalPackageQuantity>
<totalItemQuantity measurementUnitCode="Euro pallet 120x80">7</totalItemQuantity>
</transportCargoCharacteristics>
</transportInstructionShipmentItem>
</transportInstructionShipment>
</transportInstruction>
</tms:transportInstructionMessage>
</soapenv:Body>
</soapenv:Envelope>
```
the error here is unexpected end of input block at row 161, col 15
EX 2:
```
<?xml version="1.0" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tms="urn:CDM/tmsIntegrationService/" xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>xxx_xxx</wsse:Username>
<wsse:Password>xxxxxxxxxxxxxxxxxxxx</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<tms:transportInstructionMessage>
<sh:StandardBusinessDocumentHeader>
<sh:HeaderVersion>1</sh:HeaderVersion>
<sh:Sender>
<sh:Identifier>PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</sh:Identifier>
</sh:Sender>
<sh:Receiver>
<sh:Identifier>Test Identifier</sh:Identifier>
</sh:Receiver>
<sh:DocumentIdentification>
<sh:Standard>GS1</sh:Standard>
<sh:TypeVersion>3.2</sh:TypeVersion>
<sh:InstanceIdentifier>100002</sh:InstanceIdentifier>
<sh:Type>Transport Instruction</sh:Type>
<sh:CreationDateAndTime>2024-10-01T08:06:49Z</sh:CreationDateAndTime>
</sh:DocumentIdentification>
<sh:BusinessScope>
<sh:Scope>
<sh:Type>EDIcustomerNumber</sh:Type>
<sh:InstanceIdentifier>90000050</sh:InstanceIdentifier>
</sh:Scope>
<sh:Scope>
<sh:Type>fileType</sh:Type>
<sh:InstanceIdentifier>IF</sh:InstanceIdentifier>
</sh:Scope>
<sh:Scope>
<sh:Type>department</sh:Type>
<sh:InstanceIdentifier>62</sh:InstanceIdentifier>
</sh:Scope>
<sh:Scope>
<sh:Type>application</sh:Type>
<sh:InstanceIdentifier>LOGI</sh:InstanceIdentifier>
</sh:Scope>
</sh:BusinessScope>
</sh:StandardBusinessDocumentHeader>
<transportInstruction>
<creationDateTime>2024-10-01T08:06:49Z</creationDateTime>
<documentStatusCode>ORIGINAL</documentStatusCode>
<documentActionCode>ADD</documentActionCode>
<transportInstructionIdentification>
<entityIdentification>GV-RD-0099703/1</entityIdentification>
</transportInstructionIdentification>
<transportInstructionFunction>SHIPMENT</transportInstructionFunction>
<logisticServicesSeller/>
<logisticServicesBuyer>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</additionalPartyIdentification>
</logisticServicesBuyer>
<transportInstructionShipment>
<additionalShipmentIdentification additionalShipmentIdentificationTypeCode="refopd">LC49</additionalShipmentIdentification>
<note languageCode="EN" noteTypeCode="INF"/>
<note languageCode="EN" noteTypeCode="INF">Fragile goods !</note>
<note languageCode="EN" noteTypeCode="INF">Towar niepiętrowalny</note>
<note languageCode="EN" noteTypeCode="INF"/>
<note languageCode="EN" noteTypeCode="INF">Fragile goods !</note>
<note languageCode="EN" noteTypeCode="INF">Towar niepiętrowalny</note>
<receiver>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">669ff966-c2ca-4745-8</additionalPartyIdentification>
<address>
<city>Hrádek</city>
<countryCode>CZ</countryCode>
<name>Borgers Hradek</name>
<postalCode>33842</postalCode>
<streetAddressOne>Rokycanska ulice 223/II</streetAddressOne>
</address>
</receiver>
<shipper>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">ad11a7fc-0442-4b03-8</additionalPartyIdentification>
<address>
<city>WIRY</city>
<countryCode>PL</countryCode>
<name>PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</name>
<postalCode>62-051</postalCode>
<streetAddressOne>KASZTANOWA 12</streetAddressOne>
</address>
</shipper>
<shipTo>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">669ff966-c2ca-4745-8</additionalPartyIdentification>
<address>
<city>Hrádek</city>
<countryCode>CZ</countryCode>
<name>Borgers Hradek</name>
<postalCode>33842</postalCode>
<streetAddressOne>Rokycanska ulice 223/II</streetAddressOne>
</address>
<contact>
<contactTypeCode>BJ</contactTypeCode>
<personName>John Doe</personName>
<communicationChannel>
<communicationChannelCode>EMAIL</communicationChannelCode>
<communicationValue>[email protected]</communicationValue>
</communicationChannel>
<communicationChannel>
<communicationChannelCode>TELEPHONE</communicationChannelCode>
<communicationValue>+391231212340</communicationValue>
</communicationChannel>
</contact>
</shipTo>
<shipFrom>
<additionalPartyIdentification additionalPartyIdentificationTypeCode="searchname">ad11a7fc-0442-4b03-8</additionalPartyIdentification>
<address>
<city>WIRY</city>
<countryCode>PL</countryCode>
<name>PAWEŁ ZABŁOCKI ZABŁOCKI I PARTNERZY</name>
<postalCode>62-051</postalCode>
<streetAddressOne>KASZTANOWA 12</streetAddressOne>
</address>
</shipFrom>
<transportInstructionTerms>
<transportServiceCategoryType>30</transportServiceCategoryType>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="parameters">ForPlanning</logisticServiceRequirementCode>
</logisticService>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="productType">PROD01</logisticServiceRequirementCode>
</logisticService>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="parameters">ROD</logisticServiceRequirementCode>
</logisticService>
<logisticService>
<logisticServiceRequirementCode logisticServiceTypeCode="parameters">ROP</logisticServiceRequirementCode>
</logisticService>
</transportInstructionTerms>
<plannedDespatch>
<logisticEventPeriod>
<beginDate>2024-10-10</beginDate>
<beginTime>08:00:00</beginTime>
<endDate>2024-10-10</endDate>
<endTime>22:00:00</endTime>
</logisticEventPeriod>
</plannedDespatch>
<transportReference>
<entityIdentification>GV-RD-0099703/1</entityIdentification>
<transportReferenceTypeCode>customerRef</transportReferenceTypeCode>
</transportReference>
<transportInstructionShipmentItem>
<lineItemNumber>1</lineItemNumber>
<transportCargoCharacteristics>
<cargoTypeCode>neam</cargoTypeCode>
<cargoTypeDescription languageCode="PL">Smycze</cargoTypeDescription>
<totalGrossVolume measurementUnitCode="MTQ">0.00</totalGrossVolume>
<totalGrossWeight measurementUnitCode="KGM">24.500</totalGrossWeight>
<totalLoadingLength measurementUnitCode="PP">2.8000000000000003</totalLoadingLength>
<totalPackageQuantity measurementUnitCode="Euro pallet 120x80">7</totalPackageQuantity>
<totalItemQuantity measurementUnitCode="Euro pallet 120x80">7</totalItemQuantity>
</transportCargoCharacteristics>
</transportInstructionShipmentItem>
</transportInstructionShipment>
</transportInstruction>
</tms:transportInstructionMessage>
</soapenv:Body>
</soapenv:Envelope>
```
here the row is the same but the column is different
| {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6804/reactions"
} | https://api.github.com/repos/psf/requests/issues/6804/timeline | null | completed | null | null | false | [
"Tried to replicate this using a simple flask server setup using the 2 xmls as above.\r\nThe server did not complain and was able to print out the entire xml that was sent to it.\r\nThat makes me think that there should be no payload limit on the requests client while it sends out the http requests. Do you think there is some chunking happening over your network due to firewall etc? or at your server?\r\n\r\nTest client code:\r\n```py\r\nimport requests\r\nFLASK_LOCAL_URL = \"http://127.0.01:5000/\"\r\n\r\nxml_output = \"\"\"<?xml version=\"1.0\" ?>.... \r\n\"\"\"\r\n\r\nresponse = requests.post(\r\n FLASK_LOCAL_URL,\r\n data=xml_output,\r\n headers={\"Content-Type\": \"text/xml\"},\r\n timeout=60\r\n )\r\n\r\nprint(response)\r\n```\r\nOutput\r\n`<Response [200]>`\r\n\r\nCan you help with instructions on how to reproduce this using a test server?\r\n"
] |
https://api.github.com/repos/psf/requests/issues/6803 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6803/labels{/name} | https://api.github.com/repos/psf/requests/issues/6803/comments | https://api.github.com/repos/psf/requests/issues/6803/events | https://github.com/psf/requests/pull/6803 | 2,557,152,905 | PR_kwDOABTKOs59JQxp | 6,803 | Bump actions/checkout from 4.1.0 to 4.2.0 | {
"avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4",
"events_url": "https://api.github.com/users/dependabot%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/dependabot%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/dependabot%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/dependabot%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/dependabot",
"id": 49699333,
"login": "dependabot[bot]",
"node_id": "MDM6Qm90NDk2OTkzMzM=",
"organizations_url": "https://api.github.com/users/dependabot%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/dependabot%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/dependabot%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dependabot%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dependabot%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/dependabot%5Bbot%5D",
"user_view_type": "public"
} | [
{
"color": "0366d6",
"default": false,
"description": "Pull requests that update a dependency file",
"id": 1868210094,
"name": "dependencies",
"node_id": "MDU6TGFiZWwxODY4MjEwMDk0",
"url": "https://api.github.com/repos/psf/requests/labels/dependencies"
},
{
"color": "000000",
"default": false,
"description": "Pull requests that update GitHub Actions code",
"id": 5838729011,
"name": "github_actions",
"node_id": "LA_kwDOABTKOs8AAAABXAPvMw",
"url": "https://api.github.com/repos/psf/requests/labels/github_actions"
}
] | closed | false | null | [] | null | 0 | 2024-09-30T16:34:21Z | 2024-10-01T06:15:46Z | 2024-09-30T17:32:22Z | CONTRIBUTOR | null | Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p>
<blockquote>
<h2>v4.2.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add Ref and Commit outputs by <a href="https://github.com/lucacome"><code>@lucacome</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li>
<li>Dependabot updates in <a href="https://redirect.github.com/actions/checkout/pull/1777">actions/checkout#1777</a> & <a href="https://redirect.github.com/actions/checkout/pull/1872">actions/checkout#1872</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/yasonk"><code>@yasonk</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1869">actions/checkout#1869</a></li>
<li><a href="https://github.com/lucacome"><code>@lucacome</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v4.1.7...v4.2.0">https://github.com/actions/checkout/compare/v4.1.7...v4.2.0</a></p>
<h2>v4.1.7</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump the minor-npm-dependencies group across 1 directory with 4 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1739">actions/checkout#1739</a></li>
<li>Bump actions/checkout from 3 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1697">actions/checkout#1697</a></li>
<li>Check out other refs/* by commit by <a href="https://github.com/orhantoy"><code>@orhantoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</a></li>
<li>Pin actions/checkout's own workflows to a known, good, stable version. by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1776">actions/checkout#1776</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/orhantoy"><code>@orhantoy</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v4.1.6...v4.1.7">https://github.com/actions/checkout/compare/v4.1.6...v4.1.7</a></p>
<h2>v4.1.6</h2>
<h2>What's Changed</h2>
<ul>
<li>Check platform to set archive extension appropriately by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1732">actions/checkout#1732</a></li>
<li>Update for 4.1.6 release by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1733">actions/checkout#1733</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v4.1.5...v4.1.6">https://github.com/actions/checkout/compare/v4.1.5...v4.1.6</a></p>
<h2>v4.1.5</h2>
<h2>What's Changed</h2>
<ul>
<li>Update NPM dependencies by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1703">actions/checkout#1703</a></li>
<li>Bump github/codeql-action from 2 to 3 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1694">actions/checkout#1694</a></li>
<li>Bump actions/setup-node from 1 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1696">actions/checkout#1696</a></li>
<li>Bump actions/upload-artifact from 2 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1695">actions/checkout#1695</a></li>
<li>README: Suggest <code>user.email</code> to be <code>41898282+github-actions[bot]@users.noreply.github.com</code> by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1707">actions/checkout#1707</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v4.1.4...v4.1.5">https://github.com/actions/checkout/compare/v4.1.4...v4.1.5</a></p>
<h2>v4.1.4</h2>
<h2>What's Changed</h2>
<ul>
<li>Disable <code>extensions.worktreeConfig</code> when disabling <code>sparse-checkout</code> by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1692">actions/checkout#1692</a></li>
<li>Add dependabot config by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1688">actions/checkout#1688</a></li>
<li>Bump word-wrap from 1.2.3 to 1.2.5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1643">actions/checkout#1643</a></li>
<li>Bump the minor-actions-dependencies group with 2 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1693">actions/checkout#1693</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v4.1.3...v4.1.4">https://github.com/actions/checkout/compare/v4.1.3...v4.1.4</a></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v4.2.0</h2>
<ul>
<li>Add Ref and Commit outputs by <a href="https://github.com/lucacome"><code>@lucacome</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li>
<li>Dependency updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a>- <a href="https://redirect.github.com/actions/checkout/pull/1777">actions/checkout#1777</a>, <a href="https://redirect.github.com/actions/checkout/pull/1872">actions/checkout#1872</a></li>
</ul>
<h2>v4.1.7</h2>
<ul>
<li>Bump the minor-npm-dependencies group across 1 directory with 4 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1739">actions/checkout#1739</a></li>
<li>Bump actions/checkout from 3 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1697">actions/checkout#1697</a></li>
<li>Check out other refs/* by commit by <a href="https://github.com/orhantoy"><code>@orhantoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</a></li>
<li>Pin actions/checkout's own workflows to a known, good, stable version. by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1776">actions/checkout#1776</a></li>
</ul>
<h2>v4.1.6</h2>
<ul>
<li>Check platform to set archive extension appropriately by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1732">actions/checkout#1732</a></li>
</ul>
<h2>v4.1.5</h2>
<ul>
<li>Update NPM dependencies by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1703">actions/checkout#1703</a></li>
<li>Bump github/codeql-action from 2 to 3 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1694">actions/checkout#1694</a></li>
<li>Bump actions/setup-node from 1 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1696">actions/checkout#1696</a></li>
<li>Bump actions/upload-artifact from 2 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1695">actions/checkout#1695</a></li>
<li>README: Suggest <code>user.email</code> to be <code>41898282+github-actions[bot]@users.noreply.github.com</code> by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1707">actions/checkout#1707</a></li>
</ul>
<h2>v4.1.4</h2>
<ul>
<li>Disable <code>extensions.worktreeConfig</code> when disabling <code>sparse-checkout</code> by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1692">actions/checkout#1692</a></li>
<li>Add dependabot config by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1688">actions/checkout#1688</a></li>
<li>Bump the minor-actions-dependencies group with 2 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1693">actions/checkout#1693</a></li>
<li>Bump word-wrap from 1.2.3 to 1.2.5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1643">actions/checkout#1643</a></li>
</ul>
<h2>v4.1.3</h2>
<ul>
<li>Check git version before attempting to disable <code>sparse-checkout</code> by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1656">actions/checkout#1656</a></li>
<li>Add SSH user parameter by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1685">actions/checkout#1685</a></li>
<li>Update <code>actions/checkout</code> version in <code>update-main-version.yml</code> by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1650">actions/checkout#1650</a></li>
</ul>
<h2>v4.1.2</h2>
<ul>
<li>Fix: Disable sparse checkout whenever <code>sparse-checkout</code> option is not present <a href="https://github.com/dscho"><code>@dscho</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1598">actions/checkout#1598</a></li>
</ul>
<h2>v4.1.1</h2>
<ul>
<li>Correct link to GitHub Docs by <a href="https://github.com/peterbe"><code>@peterbe</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1511">actions/checkout#1511</a></li>
<li>Link to release page from what's new section by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1514">actions/checkout#1514</a></li>
</ul>
<h2>v4.1.0</h2>
<ul>
<li><a href="https://redirect.github.com/actions/checkout/pull/1396">Add support for partial checkout filters</a></li>
</ul>
<h2>v4.0.0</h2>
<ul>
<li><a href="https://redirect.github.com/actions/checkout/pull/1067">Support fetching without the --progress option</a></li>
<li><a href="https://redirect.github.com/actions/checkout/pull/1436">Update to node20</a></li>
</ul>
<h2>v3.6.0</h2>
<ul>
<li><a href="https://redirect.github.com/actions/checkout/pull/1377">Fix: Mark test scripts with Bash'isms to be run via Bash</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/actions/checkout/commit/d632683dd7b4114ad314bca15554477dd762a938"><code>d632683</code></a> Prepare 4.2.0 release (<a href="https://redirect.github.com/actions/checkout/issues/1878">#1878</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/6d193bf28034eafb982f37bd894289fe649468fc"><code>6d193bf</code></a> Bump braces from 3.0.2 to 3.0.3 (<a href="https://redirect.github.com/actions/checkout/issues/1777">#1777</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/db0cee9a514becbbd4a101a5fbbbf47865ee316c"><code>db0cee9</code></a> Bump the minor-npm-dependencies group across 1 directory with 4 updates (<a href="https://redirect.github.com/actions/checkout/issues/1872">#1872</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/b6849436894e144dbce29d7d7fda2ae3bf9d8365"><code>b684943</code></a> Add Ref and Commit outputs (<a href="https://redirect.github.com/actions/checkout/issues/1180">#1180</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/2d7d9f7ff5b310f983d059b68785b3c74d8b8edd"><code>2d7d9f7</code></a> Provide explanation for where user email came from (<a href="https://redirect.github.com/actions/checkout/issues/1869">#1869</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/9a9194f87191a7e9055e3e9b95b8cfb13023bb08"><code>9a9194f</code></a> Bump docker/build-push-action from 5.3.0 to 6.5.0 (<a href="https://redirect.github.com/actions/checkout/issues/1832">#1832</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/dd960bd3c3f080561a1810e32349ac211ecec7d4"><code>dd960bd</code></a> Bump docker/login-action in the minor-actions-dependencies group (<a href="https://redirect.github.com/actions/checkout/issues/1831">#1831</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/692973e3d937129bcbf40652eb9f2f61becf3332"><code>692973e</code></a> Prepare 4.1.7 release (<a href="https://redirect.github.com/actions/checkout/issues/1775">#1775</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6"><code>6ccd57f</code></a> Pin actions/checkout's own workflows to a known, good, stable version. (<a href="https://redirect.github.com/actions/checkout/issues/1776">#1776</a>)</li>
<li><a href="https://github.com/actions/checkout/commit/b17fe1e4d59a9d1d95a7aead5e6fcd13e50939a5"><code>b17fe1e</code></a> Handle hidden refs (<a href="https://redirect.github.com/actions/checkout/issues/1774">#1774</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/actions/checkout/compare/8ade135a41bc03ea155e62e844d188df1ea18608...d632683dd7b4114ad314bca15554477dd762a938">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details> | {
"avatar_url": "https://avatars.githubusercontent.com/u/5271761?v=4",
"events_url": "https://api.github.com/users/nateprewitt/events{/privacy}",
"followers_url": "https://api.github.com/users/nateprewitt/followers",
"following_url": "https://api.github.com/users/nateprewitt/following{/other_user}",
"gists_url": "https://api.github.com/users/nateprewitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateprewitt",
"id": 5271761,
"login": "nateprewitt",
"node_id": "MDQ6VXNlcjUyNzE3NjE=",
"organizations_url": "https://api.github.com/users/nateprewitt/orgs",
"received_events_url": "https://api.github.com/users/nateprewitt/received_events",
"repos_url": "https://api.github.com/users/nateprewitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateprewitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateprewitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateprewitt",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6803/reactions"
} | https://api.github.com/repos/psf/requests/issues/6803/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6803.diff",
"html_url": "https://github.com/psf/requests/pull/6803",
"merged_at": "2024-09-30T17:32:22Z",
"patch_url": "https://github.com/psf/requests/pull/6803.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6803"
} | true | [] |
https://api.github.com/repos/psf/requests/issues/6802 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6802/labels{/name} | https://api.github.com/repos/psf/requests/issues/6802/comments | https://api.github.com/repos/psf/requests/issues/6802/events | https://github.com/psf/requests/pull/6802 | 2,533,848,104 | PR_kwDOABTKOs576FoN | 6,802 | start testing on 3.13rc | {
"avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4",
"events_url": "https://api.github.com/users/graingert/events{/privacy}",
"followers_url": "https://api.github.com/users/graingert/followers",
"following_url": "https://api.github.com/users/graingert/following{/other_user}",
"gists_url": "https://api.github.com/users/graingert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/graingert",
"id": 413772,
"login": "graingert",
"node_id": "MDQ6VXNlcjQxMzc3Mg==",
"organizations_url": "https://api.github.com/users/graingert/orgs",
"received_events_url": "https://api.github.com/users/graingert/received_events",
"repos_url": "https://api.github.com/users/graingert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/graingert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/graingert",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 2 | 2024-09-18T14:05:21Z | 2024-09-19T12:16:35Z | 2024-09-19T11:19:03Z | CONTRIBUTOR | null | null | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6802/reactions"
} | https://api.github.com/repos/psf/requests/issues/6802/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6802.diff",
"html_url": "https://github.com/psf/requests/pull/6802",
"merged_at": "2024-09-19T11:19:03Z",
"patch_url": "https://github.com/psf/requests/pull/6802.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6802"
} | true | [
"a remake of https://github.com/psf/requests/pull/6720 with the new pytest-httpbin",
"I should probably update the trove classifier "
] |
https://api.github.com/repos/psf/requests/issues/6801 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6801/labels{/name} | https://api.github.com/repos/psf/requests/issues/6801/comments | https://api.github.com/repos/psf/requests/issues/6801/events | https://github.com/psf/requests/pull/6801 | 2,528,749,399 | PR_kwDOABTKOs57otq1 | 6,801 | Teach users to use with-statements for Multipart-Encoded Files | {
"avatar_url": "https://avatars.githubusercontent.com/u/20914054?v=4",
"events_url": "https://api.github.com/users/papb/events{/privacy}",
"followers_url": "https://api.github.com/users/papb/followers",
"following_url": "https://api.github.com/users/papb/following{/other_user}",
"gists_url": "https://api.github.com/users/papb/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/papb",
"id": 20914054,
"login": "papb",
"node_id": "MDQ6VXNlcjIwOTE0MDU0",
"organizations_url": "https://api.github.com/users/papb/orgs",
"received_events_url": "https://api.github.com/users/papb/received_events",
"repos_url": "https://api.github.com/users/papb/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/papb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/papb/subscriptions",
"type": "User",
"url": "https://api.github.com/users/papb",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 1 | 2024-09-16T15:10:29Z | 2024-09-16T23:39:51Z | 2024-09-16T23:39:51Z | NONE | null | Hello, everyone!!
I am proposing a small improvement to `quickstart.rst` in order to teach users to use `with`-statements with `open()` calls when POSTing Multipart-Encoded files. | {
"avatar_url": "https://avatars.githubusercontent.com/u/240830?v=4",
"events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}",
"followers_url": "https://api.github.com/users/sigmavirus24/followers",
"following_url": "https://api.github.com/users/sigmavirus24/following{/other_user}",
"gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sigmavirus24",
"id": 240830,
"login": "sigmavirus24",
"node_id": "MDQ6VXNlcjI0MDgzMA==",
"organizations_url": "https://api.github.com/users/sigmavirus24/orgs",
"received_events_url": "https://api.github.com/users/sigmavirus24/received_events",
"repos_url": "https://api.github.com/users/sigmavirus24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sigmavirus24",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6801/reactions"
} | https://api.github.com/repos/psf/requests/issues/6801/timeline | null | null | false | {
"diff_url": "https://github.com/psf/requests/pull/6801.diff",
"html_url": "https://github.com/psf/requests/pull/6801",
"merged_at": null,
"patch_url": "https://github.com/psf/requests/pull/6801.patch",
"url": "https://api.github.com/repos/psf/requests/pulls/6801"
} | true | [
"Changes such as this have been rejected in the past, for good reason. Thanks for spending the time to open this PR. In the future you might consider checking for others that have been rejected "
] |
https://api.github.com/repos/psf/requests/issues/6800 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6800/labels{/name} | https://api.github.com/repos/psf/requests/issues/6800/comments | https://api.github.com/repos/psf/requests/issues/6800/events | https://github.com/psf/requests/issues/6800 | 2,513,371,830 | I_kwDOABTKOs6VzwK2 | 6,800 | AttributeError: 'Request' object has no attribute 'authorize' | {
"avatar_url": "https://avatars.githubusercontent.com/u/155447009?v=4",
"events_url": "https://api.github.com/users/kamarademos/events{/privacy}",
"followers_url": "https://api.github.com/users/kamarademos/followers",
"following_url": "https://api.github.com/users/kamarademos/following{/other_user}",
"gists_url": "https://api.github.com/users/kamarademos/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kamarademos",
"id": 155447009,
"login": "kamarademos",
"node_id": "U_kgDOCUPu4Q",
"organizations_url": "https://api.github.com/users/kamarademos/orgs",
"received_events_url": "https://api.github.com/users/kamarademos/received_events",
"repos_url": "https://api.github.com/users/kamarademos/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kamarademos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kamarademos/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kamarademos",
"user_view_type": "public"
} | [] | closed | false | null | [] | null | 1 | 2024-09-09T09:02:53Z | 2024-09-09T09:07:20Z | 2024-09-09T09:07:20Z | NONE | null | There seems to be a call to request.authorize. Shouldn't that be request.auth?
```python
import requests
requests.get("https://google.com").raise_for_status()
```
## Error
```
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/user/my_lib/__main__.py", line 23, in <module>
requests.get("https://google.com").raise_for_status()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/my_lib/.venv/lib/python3.11/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/my_lib/.venv/lib/python3.11/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/my_lib/.venv/lib/python3.11/site-packages/requests/sessions.py", line 575, in request
prep = self.prepare_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/my_lib/.venv/lib/python3.11/site-packages/requests/sessions.py", line 479, in prepare_request
auth = request.authorize
```
## System Information
$ python -m requests.help
```json
{
"chardet": {
"version": null
},
"charset_normalizer": {
"version": "3.3.2"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "3.8"
},
"implementation": {
"name": "CPython",
"version": "3.11.9"
},
"platform": {
"release": "6.10.3-amd64",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.32.3"
},
"system_ssl": {
"version": "30300010"
},
"urllib3": {
"version": "2.2.2"
},
"using_charset_normalizer": true,
"using_pyopenssl": false
}
```
<!-- This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c). -->
| {
"avatar_url": "https://avatars.githubusercontent.com/u/155447009?v=4",
"events_url": "https://api.github.com/users/kamarademos/events{/privacy}",
"followers_url": "https://api.github.com/users/kamarademos/followers",
"following_url": "https://api.github.com/users/kamarademos/following{/other_user}",
"gists_url": "https://api.github.com/users/kamarademos/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kamarademos",
"id": 155447009,
"login": "kamarademos",
"node_id": "U_kgDOCUPu4Q",
"organizations_url": "https://api.github.com/users/kamarademos/orgs",
"received_events_url": "https://api.github.com/users/kamarademos/received_events",
"repos_url": "https://api.github.com/users/kamarademos/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kamarademos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kamarademos/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kamarademos",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6800/reactions"
} | https://api.github.com/repos/psf/requests/issues/6800/timeline | null | completed | null | null | false | [
"Ok. nevermind. my venv was indeed outdated. closing"
] |
https://api.github.com/repos/psf/requests/issues/6799 | https://api.github.com/repos/psf/requests | https://api.github.com/repos/psf/requests/issues/6799/labels{/name} | https://api.github.com/repos/psf/requests/issues/6799/comments | https://api.github.com/repos/psf/requests/issues/6799/events | https://github.com/psf/requests/issues/6799 | 2,507,899,117 | I_kwDOABTKOs6Ve4Dt | 6,799 | Python requests: No module named 'werkzeug.wrappers.json' | {
"avatar_url": "https://avatars.githubusercontent.com/u/91322120?v=4",
"events_url": "https://api.github.com/users/reos-rcrozier/events{/privacy}",
"followers_url": "https://api.github.com/users/reos-rcrozier/followers",
"following_url": "https://api.github.com/users/reos-rcrozier/following{/other_user}",
"gists_url": "https://api.github.com/users/reos-rcrozier/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/reos-rcrozier",
"id": 91322120,
"login": "reos-rcrozier",
"node_id": "MDQ6VXNlcjkxMzIyMTIw",
"organizations_url": "https://api.github.com/users/reos-rcrozier/orgs",
"received_events_url": "https://api.github.com/users/reos-rcrozier/received_events",
"repos_url": "https://api.github.com/users/reos-rcrozier/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/reos-rcrozier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/reos-rcrozier/subscriptions",
"type": "User",
"url": "https://api.github.com/users/reos-rcrozier",
"user_view_type": "public"
} | [
{
"color": "777777",
"default": false,
"description": null,
"id": 162780722,
"name": "Question/Not a bug",
"node_id": "MDU6TGFiZWwxNjI3ODA3MjI=",
"url": "https://api.github.com/repos/psf/requests/labels/Question/Not%20a%20bug"
},
{
"color": "000000",
"default": false,
"description": "Used for automation to auto-close an issue",
"id": 6156042717,
"name": "actions/autoclose-qa",
"node_id": "LA_kwDOABTKOs8AAAABbu3B3Q",
"url": "https://api.github.com/repos/psf/requests/labels/actions/autoclose-qa"
}
] | closed | true | null | [] | null | 1 | 2024-09-05T14:02:17Z | 2024-09-05T14:02:53Z | 2024-09-05T14:02:52Z | NONE | off-topic | I'm trying to use the requests library in Python, but when I do so, I get an error
```
from werkzeug.wrappers.json import JSONMixin
ModuleNotFoundError: No module named 'werkzeug.wrappers.json'
```
Below is an example (using a repo I forked specially for this, and a very fine grained access token that will expire soon, in case you're concerned about me sharing it).
```
import requests
import json
# GitHub API URL to create an issue in the crobarcro/Spoon-Knife repository
url = 'https://api.github.com/repos/crobarcro/Spoon-Knife/issues'
# Example payload for creating a GitHub issue
payload = {
"title": "Test Issue from API",
"body": "This is a test issue created via the GitHub API in the crobarcro/Spoon-Knife repository.",
"assignees": [], # You can assign this to specific users if needed
"labels": ["bug"] # Optional, you can add labels to the issue
}
# Headers with authentication (you need a GitHub token)
headers = {
'Authorization': 'token ithub_pat_11AAYDNDA0SY1bhpNdK0uf_lozcWrMafgMe2RLe5foWudokRkMrCExRHovDM4cWog3JNIK4MZZeJWN5MGW', # Replace with your GitHub token
'Accept': 'application/vnd.github.v3+json',
'Content-Type': 'application/json'
}
# Sending the POST request
response = requests.post(url, headers=headers, data=json.dumps(payload))
# Checking the response
if response.status_code == 201:
print('Issue created successfully:', response.json())
else:
print(f'Failed to create issue. Status code {response.status_code}:', response.text)
```
The full error message:
```
Traceback (most recent call last):
File "/snap/pycharm-community/405/plugins/python-ce/helpers/pycharm/_jb_pytest_runner.py", line 75, in <module>
sys.exit(pytest.main(args, plugins_to_load + [Plugin]))
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 159, in main
config = _prepareconfig(args, plugins)
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 346, in _prepareconfig
config = pluginmanager.hook.pytest_cmdline_parse(
File "/home/<redacted>/.local/lib/python3.10/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/home/<redacted>/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/<redacted>/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/home/<redacted>/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/helpconfig.py", line 106, in pytest_cmdline_parse
config = yield
File "/home/<redacted>/.local/lib/python3.10/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1152, in pytest_cmdline_parse
self.parse(args)
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1501, in parse
self._preparse(args, addopts=addopts)
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1388, in _preparse
self.pluginmanager.load_setuptools_entrypoints("pytest11")
File "/home/<redacted>/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 421, in load_setuptools_entrypoints
plugin = ep.load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 178, in exec_module
exec(co, module.__dict__)
File "/home/<redacted>/.local/lib/python3.10/site-packages/schemathesis/__init__.py", line 2, in <module>
from ._hypothesis import init_default_strategies, register_string_format
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 178, in exec_module
exec(co, module.__dict__)
File "/home/<redacted>/.local/lib/python3.10/site-packages/schemathesis/_hypothesis.py", line 13, in <module>
from . import utils
File "/home/<redacted>/.local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 178, in exec_module
exec(co, module.__dict__)
File "/home/<redacted>/.local/lib/python3.10/site-packages/schemathesis/utils.py", line 17, in <module>
from werkzeug.wrappers.json import JSONMixin
ModuleNotFoundError: No module named 'werkzeug.wrappers.json'
```
Some version information:
```
$ pip show werkzeug
Name: Werkzeug
Version: 3.0.4
Summary: The comprehensive WSGI web application library.
Home-page:
Author:
Author-email:
License:
Location: /home/rcrozier/.local/lib/python3.10/site-packages
Requires: MarkupSafe
Required-by: Flask, schemathesis
$ pip show requests
Name: requests
Version: 2.32.3
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Author: Kenneth Reitz
Author-email: [email protected]
License: Apache-2.0
Location: /home/rcrozier/.local/lib/python3.10/site-packages
Requires: certifi, charset-normalizer, idna, urllib3
Required-by: CacheControl, greenbyteapi, schemathesis, zohocrmsdk2-0
```
I'm using Linux Mint 21.2
Am I making a mistake here?
| {
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/github-actions",
"id": 41898282,
"login": "github-actions[bot]",
"node_id": "MDM6Qm90NDE4OTgyODI=",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"user_view_type": "public"
} | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/psf/requests/issues/6799/reactions"
} | https://api.github.com/repos/psf/requests/issues/6799/timeline | null | completed | null | null | false | [
"As described in the template, we won't be able to answer questions on this issue tracker. Please use [Stack Overflow](https://stackoverflow.com/)"
] |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 63