Skip to content

HttpRequestException: Response status code does not indicate success: 302 (Found) #745

@whitesnakeftw

Description

@whitesnakeftw

Latest beta throws this error with some .ts streams:

Unhandled exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 302 (Found).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() + 0xd9
   at N_m3u8DL_RE.DownloadManager.HTTPLiveRecordManager.<RecordStreamAsync>d__14.MoveNext() + 0x92d
--- End of stack trace from previous location ---
   at N_m3u8DL_RE.DownloadManager.HTTPLiveRecordManager.<>c__DisplayClass17_0.<<StartRecordAsync>b__5>d.MoveNext() + 0x55
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__53`1.<<ForEachAsync>b__53_0>d.MoveNext() + 0x108
--- End of stack trace from previous location ---
   at N_m3u8DL_RE.DownloadManager.HTTPLiveRecordManager.<>c__DisplayClass17_0.<<StartRecordAsync>b__0>d.MoveNext() + 0x5b
--- End of stack trace from previous location ---
   at Spectre.Console.Progress.<>c__DisplayClass31_0.<<StartAsync>b__0>d.MoveNext() + 0x67
--- End of stack trace from previous location ---
   at Spectre.Console.Progress.<>c__DisplayClass32_0`1.<<StartAsync>b__0>d.MoveNext() + 0x2c0
--- End of stack trace from previous location ---
   at Spectre.Console.Internal.DefaultExclusivityMode.<RunAsync>d__3`1.MoveNext() + 0x173
--- End of stack trace from previous location ---
   at Spectre.Console.Progress.<StartAsync>d__32`1.MoveNext() + 0x6d
--- End of stack trace from previous location ---
   at Spectre.Console.Progress.<StartAsync>d__31.MoveNext() + 0x5e
--- End of stack trace from previous location ---
   at N_m3u8DL_RE.DownloadManager.HTTPLiveRecordManager.<StartRecordAsync>d__17.MoveNext() + 0x5b
--- End of stack trace from previous location ---
   at N_m3u8DL_RE.Program.<DoWorkAsync>d__3.MoveNext() + 0x302
--- End of stack trace from previous location ---
   at System.CommandLine.Command.<>c__DisplayClass33_0.<<SetAction>b__0>d.MoveNext() + 0x51
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.InvocationPipeline.<InvokeAsync>d__0.MoveNext() + 0x1d2

This did not happen in older versions like 20240630, so it must have been introduced recently. Here is an example url with which it happens.

To reproduce, just run: N_m3u8DL-RE --live-pipe-mux http://urlhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions