
Flows Randomly Fail with 501 Status Code Error/Failed to Download File
Hello all,
I have an issue with Tdarr I have been trying to resolve and have not been able to find the answer online or on other forums. I run my server on just regular Windows 11 pro. In my flow, there are 2 actions that Tdarr will randomly fail on with the same error. It runs successfully more often than it fails, but still enough that it is an issue.
I use remote path mappings in my Sonarr setup so that SABnzbd downloads the file to TdarrTV folder, Tdarr performs the work, then copies the file to SABnzbd Downloads folder and deletes the one in TdarrTV. Tdarr then notifies Sonarr and Sonarr grabs the file from SABnzbd downloads. This is a screenshot of the flow:
The first flow Tdarr will randomly fail on is the Delete File flow. This happens more than the other. I have not been able to figure out what causes this to occur and truly seems to be random. It will say the download failed after 5 attempts and give a error 501 status code.
The second flow Tdarr will randomly fail on is the notify Sonarr Flow. This happens less than the first flow that fails, but also still appears to occur randomly. It will give the same error code and fail to notify Sonarr.
I would say overall files flow with no errors 75 percent of the time. 20 percent of the fails will be the Delete file flow error. Then 5 percent of the time it will be the notify sonarr failure.
From what I gathered online, most forums referencing the 501 error code are tied to permissions. Which would make sense to me if this error was happening every single time, but its not. Any help or suggestions would be awesome!