Problem ... I am connecting to a flaky Postgres DB. Sometimes the connection is dropped.
I can run the same query in Studio or programmatically where sometimes I get results and sometimes I don't. According to stardog.log and the API return codes, all the queries are successful. But, really, they aren't.
I don't understand how a query can return successfully (no error in the log) but also fail as you describe. Sometimes connections go stale while sitting in our connection pool, but that type of failure leads to errors in the log, so I'm not confident that's what's happening here.
Could you add this entry to your server/dbms/log4j2.xml file and restart and share the results, indicating which queries were successful and which failed?