screeny05 / letterboxd-list-radarr

Connect radarr to letterboxd.com lists
https://letterboxd-list-radarr.onrender.com
MIT License
285 stars 27 forks source link

Unable to connect to list: Failed to read complete http response #11

Closed gressh0ppe closed 3 years ago

gressh0ppe commented 4 years ago

I'm setting up the list as instructed, but I keep getting this error. I have gotten this to work on other Radarr-instances earlier, so I don't know what the problem could be.

System.Net.WebException: Failed to read complete http response ---> System.Net.WebException: Expecting chunk trailer.
  at System.Net.MonoChunkStream.ThrowExpectingChunkTrailer () [0x00000] in /private/tmp/mono-20200515-63797-1y816nh/mono-6.8.0.123/mcs/class/System/System.Net/MonoChunkStream.cs:118 
  at System.Net.MonoChunkStream.FinishReading (System.Threading.CancellationToken cancellationToken) [0x00140] in /private/tmp/mono-20200515-63797-1y816nh/mono-6.8.0.123/mcs/class/System/System.Net/MonoChunkStream.cs:107 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000e8] in /private/tmp/mono-20200515-63797-1y816nh/mono-6.8.0.123/mcs/class/System/System.Net/HttpWebRequest.cs:956 
  at System.Net.WebConnectionStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x0007e] in /private/tmp/mono-20200515-63797-1y816nh/mono-6.8.0.123/mcs/class/System/System.Net/WebConnectionStream.cs:138 
  at NzbDrone.Common.Extensions.StreamExtensions.ToBytes (System.IO.Stream input) [0x0001c] in C:\projects\radarr-usby1\src\NzbDrone.Common\Extensions\StreamExtensions.cs:13 
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x0021d] in C:\projects\radarr-usby1\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:130 
   --- End of inner exception stack trace ---
  at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x002a6] in C:\projects\radarr-usby1\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:147 
  at NzbDrone.Common.Http.Dispatchers.FallbackHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x0009d] in C:\projects\radarr-usby1\src\NzbDrone.Common\Http\Dispatchers\FallbackHttpDispatcher.cs:47 
  at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x0007e] in C:\projects\radarr-usby1\src\NzbDrone.Common\Http\HttpClient.cs:121 
  at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in C:\projects\radarr-usby1\src\NzbDrone.Common\Http\HttpClient.cs:57 
  at NzbDrone.Core.NetImport.HttpNetImportBase`1[TSettings].FetchNetImportResponse (NzbDrone.Core.NetImport.NetImportRequest request) [0x00057] in C:\projects\radarr-usby1\src\NzbDrone.Core\NetImport\HttpNetImportBase.cs:137 
  at NzbDrone.Core.NetImport.HttpNetImportBase`1[TSettings].FetchPage (NzbDrone.Core.NetImport.NetImportRequest request, NzbDrone.Core.NetImport.IParseNetImportResponse parser) [0x00000] in C:\projects\radarr-usby1\src\NzbDrone.Core\NetImport\HttpNetImportBase.cs:113 
  at NzbDrone.Core.NetImport.HttpNetImportBase`1[TSettings].TestConnection () [0x0000e] in C:\projects\radarr-usby1\src\NzbDrone.Core\NetImport\HttpNetImportBase.cs:151 
romanobrien commented 3 years ago

I've run into the same error - haven't found a solution yet. Really wish I could get this working again.

screeny05 commented 3 years ago

I've improved the handling of streaming the response, so the heroku-loadbalancer accepts my great offerings.

This should be fixed, as the response is now correctly streamed and won't die.

I guess the problem was, that the application didn't send the correct Transfer-Encoding header which resulted in the heroku-loadbalancer not pushing the chunked responses from the application.

If this problem persists, feel free to re-open this issue.