-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Custom Aggregator does not receive downstream responses. #1287
Comments
Hello,
And it actually works, both in the acceptance tests and in my sample program. I think the docs should be updated with the sample Custom Aggregator. I'll try to make a PR soon. |
The issue has been accepted due to open PR #1330 by @jlukawska : |
Hi Mett! I would say that your description is perfect, the best I've seen in backlog. 🥇
This is very important to create such mini-repos to be able to reproduce a bug easily. Matt, |
…1826) * Cleanup of Multiplexing middleware, avoiding creating copies of the Http context if only one downstream route. * updating comments * preparing rebase, it's a hack. * fixing test case "Copy_User_ToTarget", method name has changed. * adding some unit tests, checking that if 1 route, ProcessSingleRoute is called and no copies of context are made, if more than 2 Map is called, then more than 2 copies are created. * Applying refactoring suggested. * some code cleanup * Some code cleanup in Aggregate Logic * Cleanup in Aggregate Tests, verifying multiplexer cleanup * Finalizing unit test, with complex keys. * some code refactoring and applying suggestions from reviews * Update requestaggregation.rst Recover docs * updating docs * Update requestaggregation.rst * Update requestaggregation.rst * Code review by @raman-m * Inherit `Steps` functionality instead of private aggregation --------- Co-authored-by: Raman Maksimchuk <dotnet044@gmail.com>
Expected Behavior
The content of the responses is passed to the custom aggregator with 200 status codes.
Actual Behavior
Responses passed to implementation of the
IDefinedAggregator
are 404 and their bodies are empty (despite the actual downstream requests apparently succeeding). Perhaps I am missing something blatantly obvious but I am stumped. Could be that the documentation just hasn't quite caught up yet as this extension point seems to have drastically changed recently as noted in this issue: #1069.Steps to Reproduce the Problem
I have created a minimal repro here: https://github.com/MJeorrett/OcelotAggregationIssue. It contains 2 self hosted aspnet core servers, running on
localhost:5201
andlocalhost:5202
, and an server running ocelot (including an aggregated edpoint) onlocalhost:5200
.Note: *If i downgrade the project to version 14.1.3 of Ocelot, the custom aggregator is passed the successful responses as expected, see this branch in the linked repo.
ocelot.json
configures aggregate endpoint like so:MyAggregator
is implemented like so:If you look at the logs from the OcelotAggregation project it seems that the downstream requests succeed but the response passed to my custom aggregator are 404:
Specifications
The text was updated successfully, but these errors were encountered: