Frequent `SocketTimeoutException` when generating clues
Environment
- Operating system: openSUSE Tumbleweed 20230823
- croiseur version: 0.7
- Java version: OpenJDK 17.0.8
Issue
Generating clues randomly fails with error: "Clue provider OpenAI failed with the following message: java.net.SocketTimeoutException: timeout".
It seems to occur more often when generating clues for an entire grid than when generating clue for a single word.
Spotted gh#TheoKanning/openai-java#241 which seems related. Comments suggest to manually configure a high timeout value (e.g. 50s or 90s).
Steps to reproduce
(Note that it is not 100% reproducible.)
From GUI:
- Create e.g. a 13x13 grid like the one below
- Enable clue generation in "Solve" button menu
- Solve the grid
Expected result
Grid and clues are automatically filled.
Actual result
Grid is filled but clue filling fails after a few second with error message: "Clue provider OpenAI failed with the following message: java.net.SocketTimeoutException: timeout".