RingRecordingDownload icon indicating copy to clipboard operation
RingRecordingDownload copied to clipboard

[BUG] The Ring device with Id "unknown" could not be found

Open blackverde opened this issue 1 year ago • 9 comments

Describe the bug In Windows 10 version and Mac, I downloaded ringdownloaded 4.0

But when I run The command I have next issues image

Versions (please complete the following information):

  • OS: Windows 10, Mac
  • RingRecordingDownload: 4.0

blackverde avatar Aug 24 '24 23:08 blackverde

I'm still getting these regularly too, but with successful downloads both before and after. But it looks like the same videos that fail if I try again. So some problem with the individual videos maybe?

abulsme avatar Aug 29 '24 23:08 abulsme

The problem is with all the videos, I try different days, and different ranges and the result is always the same. The "unkown" seems like some casting or conversion error. Even with different PCs and different ring devices.

blackverde avatar Sep 12 '24 21:09 blackverde

I have debugged the project and this request for example fails: Request: https://api.ring.com/clients_api/dings/7413806503440862020/share/download?disable_redirect=true Response: {StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers: { Date: Thu, 12 Sep 2024 22:32:34 GMT Connection: keep-alive X-XSS-Protection: 1; mode=block Strict-Transport-Security: max-age=10886400; includeSubDomains; preload Server: api.ring.com api-sreqs.ring.com x-upstream-resp: 404 Server-Version: 0b608e9059b88d30e86e6ee18877730162ed4ee8 X-Request-ID: fd5f742d7dd16ee43cbb85494685fada Server-Region: us-east-1 X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Content-Type: application/json Content-Length: 53 }}

blackverde avatar Sep 12 '24 22:09 blackverde

I found this link, apparently you need to have an active subscription https://github.com/jimhigson/ring-api/issues/12

blackverde avatar Sep 12 '24 22:09 blackverde

Maybe controlling this error and displaying a custom message would be great.

blackverde avatar Sep 12 '24 22:09 blackverde

I definitely have examples where I get this failure on some videos but not others. Example from a few moments ago:

Ring Recordings Download Tool v4.0.0.0 by Koen Zomers

Connecting to Ring services Got Refresh token at 09/13/2024 19:41:47 Authenticating using refresh token from previous session Got Refresh token at 09/13/2024 19:41:47 Got Refresh token at 09/13/2024 19:41:49 Downloading all historical events between Thursday 1 August 2024 00:00:00 and Saturday 31 August 2024 23:59:59 for Ring device XXXXXXXXX 888 items found, downloading to /home/abulsme/RingPorchBUP 1 - 2024-08-31 22-45-15 (7409546647184476575).mp4... done (6 MB) Waiting for 0 seconds before continuing... 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 2/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 3/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 4/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 5/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 6/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 7/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 8/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 9/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Retrying 10/10. 2 - 2024-08-31 20-52-49 (7409518038407317919).mp4... failed (The Ring device with Id 'unknown' could not be found). Giving up. Waiting for 0 seconds before continuing... 3 - 2024-08-31 20-03-10 (7409504878627522975).mp4... done (7 MB) Waiting for 0 seconds before continuing... 4 - 2024-08-31 19-54-07 (7409502546460281247).mp4... done (7 MB) Waiting for 0 seconds before continuing... 5 - 2024-08-31 19-45-26 (7409500308782320031).mp4... done (6 MB) Waiting for 0 seconds before continuing... 6 - 2024-08-31 19-23-16 (7409494596475816351).mp4... done (7 MB) Waiting for 0 seconds before continuing... 7 - 2024-08-31 19-12-18 (7409492169819294111).mp4... done (5 MB) Waiting for 0 seconds before continuing... 8 - 2024-08-31 19-04-55 (7409489867716823455).mp4... done (5 MB) Waiting for 0 seconds before continuing... 9 - 2024-08-31 17-03-55 (7409458686254254495).mp4... done (6 MB) Waiting for 0 seconds before continuing... 10 - 2024-08-31 17-03-24 (7409458553110268319).mp4... done (4 MB) Waiting for 0 seconds before continuing...

Maybe there is more than one cause for this error.

If I repeat the command, it succeeds and fails on exactly the same videos, indicating it isn't something intermittent.

abulsme avatar Sep 14 '24 02:09 abulsme

Basically we get that error when this file is not found on the server when trying to download it. It must be some kind of security imposed by Ring so that you can't download without paying.

blackverde avatar Sep 14 '24 10:09 blackverde

Although it is curious that some of your files are allowed, I don't know what the pattern would be.

blackverde avatar Sep 14 '24 10:09 blackverde

In my case, I do have an active paid account, so I am guessing those files may be missing for other reasons. Now, no idea what those reasons are. Maybe a zero length file that never got uploaded to Ring properly or something? Or a corrupted file? Not sure.

abulsme avatar Sep 14 '24 17:09 abulsme