Exception caught: Object reference not set to an instance of an object. #26
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, this message is appearing in sequence when I try to download via Custom
When I try to download some individual media, it also appears.
The message is this:
Exception caught: Object reference not set to an instance of an object.
StackTrace: at OF_DL.Helpers.DownloadHelper.OnError(Object sender, ConversionErrorEventArgs e)
at FFmpeg.NET.FFmpegProcess.OnException(List`1 messages, FFmpegParameters parameters, Int32 exitCode, Exception caughtException)
at FFmpeg.NET.FFmpegProcess.ExecuteAsync(ProcessStartInfo startInfo, FFmpegParameters parameters, CancellationToken cancellationToken)
at FFmpeg.NET.FFmpegProcess.ExecuteAsync(CancellationToken cancellationToken)
at FFmpeg.NET.Engine.ExecuteAsync(FFmpegParameters parameters, CancellationToken cancellationToken)
at FFmpeg.NET.Engine.ExecuteAsync(String arguments, CancellationToken cancellationToken)
at OF_DL.Helpers.DownloadHelper.DownloadDrmMedia(String user_agent, String policy, String signature, String kvp, Stri a_id,
Also experiencing this. I debugged it, only to discover that the error handler itself seems to be throwing the exception.
I pulled out the ffmpeg command it was running, and has a look at that. It looks like the app is failing to get the encryption key for the manifest, and being given an error message instead.
When you inspect the html being passed where the encryption key is expected, it looks like OF's got some new anti-scraping software that's blocking the request. 🤔 That's as far as I've looked into it so far.
ffmpeg command & error listed below:
I am getting the same error message
same issue
I deleted the entire ofdl folder and tried to redo the installation process.
I noticed that ffmpeg has a new version: 2025-06-08-git-5fea5e3e11
https://www.gyan.dev/ffmpeg/builds/
So I downloaded and replaced the ffmpeg.exe file in the ofdl folder. When I logged into ofdl using the browser that ofdl opens, the media I wanted to download (video) appeared blurry and with the following message:
"Your browser does not support this type of media. Enable DRM in this browser or use another browser or device."
Of course, I redid the process without this new version of ffmpeg and the same message appeared on the media. When I opened ofdl in my default browser, the media loaded normally.
Could the problem be something in this browser that ofdl opens? Unfortunately, I don't know anything about programming to try to solve it, but I really need this program.
The git master (nightly) builds on https://www.gyan.dev/ffmpeg/builds/ are broken right now. The decryption doesn't work. The release builds on the same page work though. That is the version shipped with OF-DL.
Concerning the "Your browser does not support this type of media. Enable DRM in this browser or use another browser or device." message, you only need to use the automatically opened browser window to log into OF. Once you login, switch back to the OF-DL program window. Once you see that OF-DL successfully grabbed the auth from the browser window, you can close out of the Chrome/Chromium window. OF-DL only uses the browser window to fetch the auth details. The browser is not used for anything else.
Have you downloaded CDM keys using the discord bot? If not, that would be my first recommendation (other than using the recommended version of FFmpeg). Assuming you have joined the OF-DL discord server, you can access the bot from this link (or the pinned post in the #ofdl support forum)
It wasn't on Discord, I downloaded it from this site.
I logged into Discord, went to the of-dl support area, clicked on the pinned post CDM/DRM Key BOT, generated my key, followed the step-by-step instructions and it worked.
Thank you very much @whimsical-c4lic0 .
Which site and where is discord server?🙏 and thanks... never mind, the discord invite is on the website. thanks @eeduardoaugusto but where did you download ffmpeg from? I still have issues
There is no need to download FFmpeg. It is included in the OF-DL zip file.