Skip to content

Add Request Timeout + Proper Error Handling to Ollama Calls #20

@Mario5T

Description

@Mario5T

Description

Currently, the application makes requests to the Ollama server without any timeout, retry logic, or structured error handling. This can cause the process to hang indefinitely if the server is unresponsive and lacks resilience against transient network anomalies.
This issue implements production-critical reliability improvements to the textToJSON generation loop by introducing:

  • A configurable request timeout (default 30s)
  • A retry mechanism with a backoff/limit (default 3 retries)
  • Proper exception handling using requests.exceptions.Timeout and RequestException
  • Graceful error messaging to debug networking and resilience issues
    Making this change ensures defensive programming patterns are established without altering the overall architecture.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions