-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
When I use the client.search
function for some channels ids which doesn't exist, instead of returning an empty list it gives me the following error:
Traceback (most recent call last):
File "senti_abuse_analysis.py", line 177, in <module>
response = client.search({"id": {"$in": channel_ids}}, {"updated_at":{"$gt": previous_max_date}}, limit=400)
File "/home/ec2-user/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/stream_chat/client.py", line 358, in search
return self.get("search", params={"payload": json.dumps(params)})
File "/home/ec2-user/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/stream_chat/client.py", line 90, in get
return self._make_request(self.session.get, relative_url, params, None)
File "/home/ec2-user/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/stream_chat/client.py", line 77, in _make_request
return self._parse_response(response)
File "/home/ec2-user/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/stream_chat/client.py", line 46, in _parse_response
raise StreamAPIException(response.text, response.status_code)
stream_chat.base.exceptions.StreamAPIException: StreamChat error code 4: Search failed with error: "There are no searchable channels""
Metadata
Metadata
Assignees
Labels
No labels