sim0n00ps / OF-DL

C# console app to download all of the media from Onlyfans accounts with DRM video downloading support
667 stars 60 forks source link

Exception caught: Error while copying content to a stream. #455

Closed badbeezy closed 3 weeks ago

badbeezy commented 1 month ago

I receive the following error on startup now. Any reason why?

Exception caught: Error while copying content to a stream.

                                                      StackTrace:    at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)

at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at OF_DL.Helpers.APIHelper.BuildHeaderAndExecuteRequests(Dictionary2 getParams, String endpoint, HttpClient client) at OF_DL.Helpers.APIHelper.GetAllSubscriptions(Dictionary2 getParams, String endpoint, Boolean includeRestricted)

Inner Exception: Exception caught: The decryption operation failed, see inner exception.

                                                                   StackTrace:    at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1 buffer, CancellationToken cancellationToken)

at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Http.HttpConnection.FillAsync(Boolean async) at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsyncCore(Stream destination, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionResponseContent.g__Impl|6_0(Stream stream, TransportContext context, CancellationToken cancellationToken) at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer) Exception caught: Object reference not set to an instance of an object.

                                                                   StackTrace:    at OF_DL.Program.DownloadAllData(APIHelper m_ApiHelper, Auth Auth, Config Config)

at OF_DL.Program.Main(String[] args)

Press any key to exit.

melithine commented 1 month ago

Try updating to 1.7.67 and see if it still persists.