This can happen when the application server's application pool is recycled, or if the same thing happens to the API. Additionally, this can occur if the Public Access user's session is invalidated, such as when the application server restarts, but the API does not. The API and client will handle this on their own, but it can cause a longer wait.