Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to define timeout for mediaItems().batchCreate().execute()? #2463

Open
and7ey opened this issue Aug 10, 2024 · 0 comments
Open

No way to define timeout for mediaItems().batchCreate().execute()? #2463

and7ey opened this issue Aug 10, 2024 · 0 comments
Assignees

Comments

@and7ey
Copy link

and7ey commented Aug 10, 2024

I am migrating my old Python 2.7 version to Python 2.10.

response = requests.post('https://photoslibrary.googleapis.com/v1/uploads', headers=headers, data=data)

works fine, but when I call

response = gphotos.mediaItems().batchCreate(body=body).execute()

I get the following exception (<class 'TimeoutError'>, TimeoutError(110, 'Connection timed out'), <traceback object at 0x42266b88>)

The Google console shows multiple timeout errors.

What could be wrong here? Is there any way to increase timeout for execute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants