Title: gh-127257: Add hex code to ssl "unknown error" message by encukou · Pull Request #127360 · python/cpython · GitHub
Open Graph Title: gh-127257: Add hex code to ssl "unknown error" message by encukou · Pull Request #127360 · python/cpython
X Title: gh-127257: Add hex code to ssl "unknown error" message by encukou · Pull Request #127360 · python/cpython
Description: This does not fix #127257 but would have made it easier to debug. To make it easier to vary the individual parts of the message, replace the if-ladder with a few constant format strings by building the string piece-wise using PyUnicodeWriter. Use "unknown error (0x%x)" rather than just "unknown error" if we can't get a better error message. (Hex makes sense as the error includes two byte-packed parts.) As there are no cases where we should raise an "unknown error", I don't see a good way to add tests. But, we can verify using the current failure on Arch Linux buildbots. Existing tests do cover error messages. Issue: gh-127257
Open Graph Description: This does not fix #127257 but would have made it easier to debug. To make it easier to vary the individual parts of the message, replace the if-ladder with a few constant format strings by buildi...
X Description: This does not fix #127257 but would have made it easier to debug. To make it easier to vary the individual parts of the message, replace the if-ladder with a few constant format strings by buildi...
Opengraph URL: https://github.com/python/cpython/pull/127360
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2db8447d-37b8-dac0-29ba-299ffaf0f036 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E8BE:DD673:CBAD4D:115DD5C:6A57E851 |
| html-safe-nonce | b29b8e79d36e5e530004ab96cc06abe74e4e1390fb008e1c2a007c128488f369 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEJFOkRENjczOkNCQUQ0RDoxMTVERDVDOjZBNTdFODUxIiwidmlzaXRvcl9pZCI6IjYzMzkzMTkxOTQ2NDAxODEzMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6dac8565840481ff4c63f3e63fb44703d8d57704670356213afda107fb44d2c0 |
| hovercard-subject-tag | pull_request:2205716874 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/127360/files |
| twitter:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| og:image:alt | This does not fix #127257 but would have made it easier to debug. To make it easier to vary the individual parts of the message, replace the if-ladder with a few constant format strings by buildi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 72a32c9d47294b6b7eb7f0250253277920c7a987 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width