Title: Requests hang Indefinitely when waiting for network/missing timeout value · Issue #41 · algorithmiaio/algorithmia-python · GitHub
Open Graph Title: Requests hang Indefinitely when waiting for network/missing timeout value · Issue #41 · algorithmiaio/algorithmia-python
X Title: Requests hang Indefinitely when waiting for network/missing timeout value · Issue #41 · algorithmiaio/algorithmia-python
Description: Hi, I've been troubleshooting a bug where this client will hang forever waiting for a response in some cases. I noticed that calls using the requests library are not using the timeout= option which is recommended: https://2.python-reques...
Open Graph Description: Hi, I've been troubleshooting a bug where this client will hang forever waiting for a response in some cases. I noticed that calls using the requests library are not using the timeout= option which...
X Description: Hi, I've been troubleshooting a bug where this client will hang forever waiting for a response in some cases. I noticed that calls using the requests library are not using the timeout= option w...
Opengraph URL: https://github.com/algorithmiaio/algorithmia-python/issues/41
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Requests hang Indefinitely when waiting for network/missing timeout value","articleBody":"Hi, \r\n\r\nI've been troubleshooting a bug where this client will hang forever waiting for a response in some cases. \r\n\r\nI noticed that calls using the requests library are not using the `timeout=` option which is recommended:\r\nhttps://2.python-requests.org/en/master/user/quickstart/#timeouts\r\n\r\n\u003e You can tell Requests to stop waiting for a response after a given number of seconds with the timeout parameter. Nearly all production code should use this parameter in nearly all requests. Failure to do so can cause your program to hang indefinitely\r\n\r\nI've put together a PR #40 for changing this to 5 seconds (if this seems low, the notes from requests make this a little clearer: it's the time between bytes rather than the entire request) to establish a sensible default for the library to be making calls under. \r\n\r\nMore info from the docs: \r\n\r\n\u003e timeout is not a time limit on the entire response download; rather, an exception is raised if the server has not issued a response for timeout seconds (more precisely, if no bytes have been received on the underlying socket for timeout seconds). If no timeout is specified explicitly, requests do not time out.","author":{"url":"https://github.com/rwnx","@type":"Person","name":"rwnx"},"datePublished":"2020-09-25T15:00:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/41/algorithmia-python/issues/41"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4ff0aae-5a56-3a1e-8244-cb877231f267 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE3C:1F2208:2DBB77D:3F6B048:6977BB0A |
| html-safe-nonce | 781b64cba39239bfaad429da59741f522e90abf39ecdc1efe4cc071112216a08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTNDOjFGMjIwODoyREJCNzdEOjNGNkIwNDg6Njk3N0JCMEEiLCJ2aXNpdG9yX2lkIjoiMzMxNTYwNjU4MTIzNTEzNzI5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b18990d5f86bfe2b2f0cfb06dbc09b16f98189520af910f9ec28a29da5e9c90f |
| hovercard-subject-tag | issue:709008428 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/algorithmiaio/algorithmia-python/41/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd14e218a8affedbcd4cf5c16fb9978a54dd53ee2c64f3cdde34c3696f7a6af1/algorithmiaio/algorithmia-python/issues/41 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd14e218a8affedbcd4cf5c16fb9978a54dd53ee2c64f3cdde34c3696f7a6af1/algorithmiaio/algorithmia-python/issues/41 |
| og:image:alt | Hi, I've been troubleshooting a bug where this client will hang forever waiting for a response in some cases. I noticed that calls using the requests library are not using the timeout= option which... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rwnx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 831218810e1b66a41a0626c8c15f7f47625846d9a7516c7f43cfc2c61effad83 |
| turbo-cache-control | no-preview |
| go-import | github.com/algorithmiaio/algorithmia-python git https://github.com/algorithmiaio/algorithmia-python.git |
| octolytics-dimension-user_id | 5078755 |
| octolytics-dimension-user_login | algorithmiaio |
| octolytics-dimension-repository_id | 38772089 |
| octolytics-dimension-repository_nwo | algorithmiaio/algorithmia-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38772089 |
| octolytics-dimension-repository_network_root_nwo | algorithmiaio/algorithmia-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b37ffa89d073c0d4a6f07ff42d59120741a74955 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width