Connects But Need Help with Errors #452
dadipsetdon
started this conversation in
General
Replies: 1 comment
-
Hi there and sorry for the late reply. This looks like an issue with the file download itself, however, I fully agree that the log output is neither clear nor helpful. A re-write of the tool is in progress, stay tuned! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am able to run the container on my QNAP NAS using Portainer and connect to the cameras. However, I don't understand the errors I get. The command I run is: 'download' '--address=192.168.1.1' '--username=homeassistant' '--password=xxxxx' '--no-use-subfolders' '--cameras=all' --start 2023-06-01T07:00:00 --end 2023-12-31T12:00:00 '/downloads'
The logs show:
Downloading video files between 2023-06-01 07:00:00 and 2023-12-31 12:00:00 from 'https://192.168.1.1:443/proxy/protect/api/video/export' for camera G4 Doorbell
Downloading footage for camera 'G4 Doorbell' (xxxxxxx)
Downloading video for time range 2023-06-01 07:00:00 - 2023-06-01 07:59:59.999000 to /downloads/G4 Doorbell (xxxx) - 2023-06-01 - 07.00.00.mp4
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/protect_archiver/downloader/download_file.py", line 86, in download_file
error_message = data.get("error") or data or "(no information available)"
AttributeError: 'NoneType' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/protect_archiver/cli/download.py", line 252, in download
Downloader.download_footage(
File "/usr/local/lib/python3.8/site-packages/protect_archiver/downloader/init.py", line 54, in download_footage
return download_footage(client, start, end, camera, disable_alignment, disable_splitting)
File "/usr/local/lib/python3.8/site-packages/protect_archiver/downloader/download_footage.py", line 78, in download_footage
download_file(client, video_export_query, filename)
File "/usr/local/lib/python3.8/site-packages/protect_archiver/downloader/download_file.py", line 145, in download_file
except Errors.DownloadFailed:
TypeError: catching classes that do not inherit from BaseException is not allowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/protect-archiver", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/protect_archiver/cli/init.py", line 21, in main
cli.main()
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/protect_archiver/cli/download.py", line 265, in download
except Errors.ProtectError as e:
TypeError: catching classes that do not inherit from BaseException is not allowed
Beta Was this translation helpful? Give feedback.
All reactions