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

Error 500 while downloading some videos #301

Closed
Flavien opened this issue Feb 23, 2021 · 8 comments
Closed

Error 500 while downloading some videos #301

Flavien opened this issue Feb 23, 2021 · 8 comments
Assignees

Comments

@Flavien
Copy link

Flavien commented Feb 23, 2021

Describe the bug

During the download, some of my videos are returning an error 500 and don't get downloaded. What's interesting is that if I request a Takeout archive, these videos are also missing from the archive (the JSON exists, but the corresponding video is missing). Is that a known issue with Google Photos? Any known workaround?

02-23 15:49:19 gphotos.BadIds DEBUG    BAD ID ABRd85LLd<redacted> for photos/2006/07/CIMG0410.AVI
Traceback (most recent call last):
  File "/usr/lib64/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/ec2-user/.local/share/virtualenvs/gphotos-sync-xvL8wJQh/lib/python3.7/site-packages/gphotos/GooglePhotosDownload.py", line 272, in do_download_file
    response.raise_for_status()
  File "/home/ec2-user/.local/share/virtualenvs/gphotos-sync-xvL8wJQh/lib/python3.7/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://video-downloads.googleusercontent.com/<redacted>
@Flavien
Copy link
Author

Flavien commented Feb 23, 2021

Also, when trying to open the video URL (which normally works) for one of those found in the bad ID file, I get a page saying:

Can’t access photo
This photo doesn’t exist or your current account doesn’t have permission to view it.

(I do have permission)

@gilesknap
Copy link
Owner

Hi,
Yes I have seen videos go 'bad' in the library. The ultimate test is to use the web UI to search for the filename and see if you can open it that way. In the past I have found I cannot. The video is not recoverable at that point. Its probably due to some transcoding issue - Google does not like your raw files taking up their disk space I guess.

@Flavien
Copy link
Author

Flavien commented Feb 23, 2021

I can search the filenames of the videos just fine on the website, and they play without any problem. I can even download them from there.

@gilesknap
Copy link
Owner

So I have historically seen this too. Note that 500 means the server crashed trying to service a request so its a google issue. See the first (crossed out) issue in #119.

You may notice that I have kind of given up on Google fixing the remaining problems :-(

@Flavien
Copy link
Author

Flavien commented Feb 23, 2021

I did a bit more digging in the API, and I have found that these problem items are showing as processing:

    {
      "id": "xxx",
      "productUrl": "xxx",
      "baseUrl": "xxx",
      "mimeType": "video/mp4",
      "mediaMetadata": {
        "creationTime": "2009-09-12T01:07:09Z",
        "video": {
          "status": "PROCESSING"
        }
      },
      "filename": "CIMG7875.AVI"
    },

Which is odd as some of these have been uploaded months, if not years ago. The app and the web UI don't show the video as processing and it's able to play it just fine...

@gilesknap
Copy link
Owner

gilesknap commented Feb 23, 2021 via email

@Flavien
Copy link
Author

Flavien commented Feb 24, 2021

I've opened this bug: https://issuetracker.google.com/issues/181055574.

@gilesknap
Copy link
Owner

Thanks. have upated #119 to include your new info and will close this ticket.

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

No branches or pull requests

2 participants