synology NAS active backup for M365 – export log via script
I wrote a script to download the log in Synology NAS active backup for M365. Manually if I click on export everything works. But I need to download it with the script.
The authentication on the NAS is OK, I debugged it. The file downloads but there is an error message inside the code: {“error”:{“code”:101},”success”:false}
I’m stuck, I’m attaching the code, does anyone have any experience with this? It must be possible to download it automatically using a script.