Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Sending empty batch results in weird timeout error #5

Copy link
Copy link
@sheepsy90

Description

@sheepsy90
Issue body actions

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-packages/recombee_api_client/api_client.py", line 66, in send
return self.__post(request, uri, timeout)
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/recombee_api_client/api_client.py", line 118, in __post
response = requests.post(uri,
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/api.py", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/requests/adapters.py", line 435, in send
timeout = TimeoutSauce(connect=timeout, read=timeout)
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/urllib3/util/timeout.py", line 96, in init
self._connect = self._validate_timeout(connect, "connect")
File "/home/robert/repositories/homeq/venv/lib/python3.9/site-packages/urllib3/util/timeout.py", line 144, in _validate_timeout
raise ValueError(
ValueError: Attempted to set connect timeout to 0.0, but the timeout cannot be set to a value less than or equal to 0.

Process finished with exit code 1

Probably should rather raise something that prevents the thing from going forward at all.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.