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

Handle 401 errors on Google Video uploads correctly #1386

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

calumcalder
Copy link
Collaborator

#1262 was created in an attempt to propagate InvalidTokenExceptions from GoogleVideosInterface on 401 errors, but didn't handle the case where an ApiException is raised from photosLibraryClient.uploadMediaItem rather than returned in the UploadMediaItemResponse error field.

This PR adds test cases for both ways the error may be returned, and fixes the above case.

@calumcalder calumcalder merged commit 9723399 into dtinit:master Oct 16, 2024
5 checks passed
@calumcalder calumcalder deleted the fix/401-handling-google-video branch October 16, 2024 10:24
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

Successfully merging this pull request may close these issues.

3 participants