Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2825·google-api-python-client

Can retrying a non-resumable Drive files.create after HTTP 502 create a duplicate?

Author: tipaCreated Sep 24, 2026Updated Sep 26, 2026

The Drive error guide recommends retrying 5xx errors. When num_retries > 0, the Python client retries responses with status ≥500, including on its non-resumable request path.

For a multipart Drive files.create POST, could the file be created successfully but the client receive a 502? If so, repeating the request could create a duplicate file.

Is retrying a non-resumable files.create after a 502 safe? If it isn’t, what approach do you recommend for handling this ambiguous result?

Source: googleapis/google-api-python-client

View original on GitHubView discussion on GitHub