It seems possible that there is no content-disposition to fetch the filename (reported in https://www.outsystems.com/forums/discussion/43718/binarydownload-getting-error/)
You will no longer get an error, however, you might get an empty filename, I'm not sure how to manage around that. It might be an idea to analyse the binary to get the mime-type to atleast create a stub filename with the extension. But that would severaly impact the speed.
Added filename, which it's trying to get from file disposition and if that's not available it will look if the stream is a file stream, if it is it will be able to receive the filename from that. If all fails, the filename will be empty.
I also added the headers received from the endpoint, which can be mostly used for debug purposes, but perhaps you have some other uses for it.