Internal Server Error for some requests to models/gemini-1.5-pro-latest

Welcome to the forum. It has been random, with the anecdotal observation that the -0827 model exhibits less http status 500. The most effective recommendation I have is to use retry with both 429 and 500 http status codes (Wierd Error when calling api - #4 by OrangiaNebula ) or with 429, 500 and 503 (Why always getting Status 429? Very frustrating - #17 by OrangiaNebula).