Strvm / meta-ai-api

Llama 3 API (MetaAI Reverse Engineered)
236 stars 43 forks source link

Handle ConnectionError #21

Open bryt-frost opened 4 months ago

bryt-frost commented 4 months ago

Handle ConnectionError from requests package when there is internet failure. This causes dev servers to crush. Making it fail safely would be nice.

\requests\adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.meta.ai', 
port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001708DAC4D50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
vinayjain18 commented 3 months ago

Hey there, I can help resolve this issue. Can you assign it to me?