Title: Sending empty batch results in weird timeout error · Issue #5 · recombee/python-api-client · GitHub
Open Graph Title: Sending empty batch results in weird timeout error · Issue #5 · recombee/python-api-client
X Title: Sending empty batch results in weird timeout error · Issue #5 · recombee/python-api-client
Description: When doing: client.send(Batch([])) i am getting: Traceback` (most recent call last): File "/home/robert/repositories/homeq/playground10.py", line 19, in client.send(Batch([])) File "/home/robert/repositories/homeq/venv/lib/python3.9/site...
Open Graph Description: When doing: client.send(Batch([])) i am getting: Traceback` (most recent call last): File "/home/robert/repositories/homeq/playground10.py", line 19, in client.send(Batch([])) File "/home/robert/re...
X Description: When doing: client.send(Batch([])) i am getting: Traceback` (most recent call last): File "/home/robert/repositories/homeq/playground10.py", line 19, in client.send(Batch([])) File "...
Opengraph URL: https://github.com/recombee/python-api-client/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sending empty batch results in weird timeout error","articleBody":"When doing:\r\n\r\nclient.send(Batch([]))\r\n\r\ni am getting:\r\n\r\nTraceback` (most recent call last):\r\n File \"/home/robert/repositories/homeq/playground10.py\", line 19, in \u003cmodule\u003e\r\n client.send(Batch([]))\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/recombee_api_client/api_client.py\", line 66, in send\r\n return self.__post(request, uri, timeout)\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/recombee_api_client/api_client.py\", line 118, in __post\r\n response = requests.post(uri,\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/api.py\", line 117, in post\r\n return request('post', url, data=data, json=json, **kwargs)\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/api.py\", line 61, in request\r\n return session.request(method=method, url=url, **kwargs)\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/sessions.py\", line 542, in request\r\n resp = self.send(prep, **send_kwargs)\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/sessions.py\", line 655, in send\r\n r = adapter.send(request, **kwargs)\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/adapters.py\", line 435, in send\r\n timeout = TimeoutSauce(connect=timeout, read=timeout)\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/urllib3/util/timeout.py\", line 96, in __init__\r\n self._connect = self._validate_timeout(connect, \"connect\")\r\n File \"/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/urllib3/util/timeout.py\", line 144, in _validate_timeout\r\n raise ValueError(\r\nValueError: Attempted to set connect timeout to 0.0, but the timeout cannot be set to a value less than or equal to 0.\r\n\r\nProcess finished with exit code 1\r\n\r\n\r\nProbably should rather raise something that prevents the thing from going forward at all.","author":{"url":"https://github.com/sheepsy90","@type":"Person","name":"sheepsy90"},"datePublished":"2023-07-11T12:17:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/python-api-client/issues/5"}
| 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:0ae11a90-f6cb-08f4-0516-f306fa188314 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D440:308A6D:174421:1ED616:6982851D |
| html-safe-nonce | 1bcc892e60ebec43f49e10fca3ed3f6772eb399a520b0915b17fc0f3ae08995d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDQwOjMwOEE2RDoxNzQ0MjE6MUVENjE2OjY5ODI4NTFEIiwidmlzaXRvcl9pZCI6IjE2NTc3OTQ2MzcxNDM5MDE0NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 949b8b44f19363343efe94c10130957223ae3e6fda5be4c2444110609cca445d |
| hovercard-subject-tag | issue:1798810439 |
| 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/recombee/python-api-client/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b83153a00d03d2fc69c0470379b4a381c9be9f0442ffc43d214b991e1aebfa4f/recombee/python-api-client/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b83153a00d03d2fc69c0470379b4a381c9be9f0442ffc43d214b991e1aebfa4f/recombee/python-api-client/issues/5 |
| og:image:alt | When doing: client.send(Batch([])) i am getting: Traceback` (most recent call last): File "/home/robert/repositories/homeq/playground10.py", line 19, in client.send(Batch([])) File "/home/robert/re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sheepsy90 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 502ff2009aec8671c806fca4ec6d758f90b6b96901b01d5f0ed23cc438efdf0f |
| turbo-cache-control | no-preview |
| go-import | github.com/recombee/python-api-client git https://github.com/recombee/python-api-client.git |
| octolytics-dimension-user_id | 19200752 |
| octolytics-dimension-user_login | recombee |
| octolytics-dimension-repository_id | 65002560 |
| octolytics-dimension-repository_nwo | recombee/python-api-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65002560 |
| octolytics-dimension-repository_network_root_nwo | recombee/python-api-client |
| 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 | 2e7b93cf13221e895180e11ba3b1028b0b71f0ac |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width