We have set up a self hosted Java proxy according to the instructions: https://github.com/Esri/resource-proxy. It fails randomly with a popup prompting for credentials often after a long period of inactivity. The code runs without errors locally. Any tips on how to debug?