Handling Service Unavailable Error in Python Client
TLDR Sidharth asked for suggestions to handle a 503 error in Python. Kishore Nallan and Jason provided guidance, links, and context for handling the error with backoff and retry methods.
Feb 08, 2023 (8 months ago)
Sidharth
07:36 AMNeed to handle the following error for Python client,
elif http_code == 503:
return ServiceUnavailable
Any suggestions?
Kishore Nallan
07:40 AMSidharth
07:56 AMJason
05:21 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Handling 503 Errors and Reducing Cluster Pressure
Gustavo faced frequent 503 errors despite having ample memory. Jason suggested handling 503s per Typesense documentation and adjusting settings to reduce unnecessary upserts and cluster pressure.
Resolve Connection Error on Records Upsert
Jainil faced consistent connection errors while upserting records. Jason identified an OOM issue, suggesting a capacity upgrade. Auto-scaling was discussed and the upgrade implementation process, which was in progress, was clarified.
Typesense Error in Unit Testing for Python
Mehdi was encountering errors while running unit tests for Typesense functionalities in Python. Through discussion with Kishore Nallan, they recognized resource constraints might be causing the issue during JSONL file import. As suggested by Kishore Nallan, adding a short sleep after the import resolved the problem.