Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoRedirection sample fails with a 404 #146

Open
atifaziz opened this issue Aug 14, 2020 · 1 comment
Open

AutoRedirection sample fails with a 404 #146

atifaziz opened this issue Aug 14, 2020 · 1 comment
Assignees

Comments

@atifaziz
Copy link
Owner

Check-out commit 14ecd19 (latest at time of reporting) after cloning this repo.

Run the AutoRedirection sample using the following command-line:

dotnet run -p eg -f netcoreapp3.1 -- AutoRedirection

The samples fails with the following run-time error:

==============================================================================
AutoRedirection
------------------------------------------------------------------------------
System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at WebLinq.HttpQuery.HttpFetchAsync[T](IHttpClient http, HttpConfig config, HttpMethod method, Uri url, HttpContent content, HttpOptions options, Func`3 responseSelector, Func`5 redirectionSelector) in A:\WebLinq\src\Core\HttpQuery.cs:line 190
   at WebLinq.HttpQuery.SendAsync(IHttpClient http, HttpConfig config, Int32 id, HttpMethod method, Uri url, HttpContent content, HttpOptions options) in A:\WebLinq\src\Core\HttpQuery.cs:line 52
   at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServicesImpl.cs:line 16
   at System.Reactive.ExceptionHelpers.ThrowIfNotNull(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServices.cs:line 22
   at System.Reactive.Linq.ObservableImpl.GetEnumerator`1.MoveNext() in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\GetEnumerator.cs:line 74
   at WebLinq.Samples.Program.Wain(String[] args) in A:\WebLinq\eg\Program.cs:line 75
   at WebLinq.Samples.Program.Main(String[] args) in A:\WebLinq\eg\Program.Main.cs:line 11

Also reproducible with cURL:

❯ curl -vsL http://httpbin.org/redirect-to?url=http://example.com/
*   Trying 54.236.246.173...
* TCP_NODELAY set
* Connected to httpbin.org (54.236.246.173) port 80 (#0)
> GET /redirect-to?url=http://example.com/ HTTP/1.1
> Host: httpbin.org
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: awselb/2.0
< Date: Fri, 14 Aug 2020 12:51:25 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 0
< Connection: keep-alive
<
* Connection #0 to host httpbin.org left intact
@atifaziz atifaziz self-assigned this Aug 14, 2020
@atifaziz
Copy link
Owner Author

This seems to be due to postmanlabs/httpbin#617.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant