Closed JoelProminic closed 1 year ago
The timeout is updated to 5 seconds. I'll leave this open for a while to see if the case triggers again.
I still got a timeout on this today:
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:05 PM HTTP JVM: Could not rea
d configured Genesis URL.
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: Exception:
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: org.apache.co
mmons.httpclient.ConnectTimeoutException: The host did not accept the connection
within timeout of 5000 ms
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at org.a
pache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(Reflectio
nSocketFactory.java:155)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at org.a
pache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(Defa
ultProtocolSocketFactory.java:125)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at org.a
pache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at org.a
pache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.
java:387)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at org.a
pache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.jav
a:171)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at org.a
pache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at org.a
pache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at util.
SimpleHTTPClient.getPage(SimpleHTTPClient.java:90)
[001274:000267-00007F2C36DEE700] 05/17/2023 12:08:10 PM HTTP JVM: at genes
is.GenesisRead.getGenesisAppList(GenesisRead.java:132)
The timeout was updated as expected, but there seems to be cases where the response from the Genesis API is unusually slow - this should be investigated separately. This is more rare after the update, so I'll close this issue for now.
Testing on the Super.Human.Installer servers, I'm seeing occasional timeouts when connecting to the Genesis API.
Normally the API is very fast, so I suspect this is triggering on view refreshes.
I should increase the timeout on the agent side, to at least 5 seconds to give it more time to finish. 5 seconds wouldn't be unreasonably slow for loading this interface (but it is certainly not ideal).