Comments (4)
Agreed. However, I'm not sure how to generalize a trigger to take over requests for the next service.
from armeria.
This issue will require two following changes:
- Make
DecodeResult.NOT_FOUND
not fail immediately. LetHttpServerHandler
try again until it tries all matching services. - Define a mechanism for
ServiceInvocationHandler
that does the same job withDecodeResult.NOT_FOUND
.
Perhaps we could define some exception type? We have ServiceNotFoundException
already, so we could use it for this purpose. It's actually the exception used when HttpServerHandler
gets DecodeResult.NOT_FOUND
, so it seems to make sense to me.
Another issue to consider is the case where a service wants to tell the session layer that the path does not exist and it does not want other services to take the request over. However, I'm not sure if we should consider this because usually they will just end up hitting the catch-all path mapping or making HttpServerHandler
return 404.
from armeria.
Another issue to consider is the case where a service wants to tell the session layer that the path does not exist and it does not want other services to take the request over. However, I'm not sure if we should consider this because usually they will just end up hitting the catch-all path mapping or making HttpServerHandler return 404.
I think we need to consider the case when a user does want the last service to catch 404
and response with the custom error page. In this case, propagation of 404
should not be done.
from armeria.
This actually was fixed in #60 slightly differently.
from armeria.
Related Issues (20)
- Armeria Request and Response Metrics Questions HOT 3
- Version Upgrade failure to 1.26.2 with spring 3.1.x HOT 7
- Malformed JSON request to a JSON around gRPC service continues with an empty request HOT 1
- Support sending arbitrary content for gRPC transcoding
- Compatibility with armeria and boot 3.2 versions is broken. HOT 2
- Allow customizing the `MeterIdPrefix` of `CircuitBreaker` metrics. HOT 1
- [Docs] Omit "$" character when copying code HOT 1
- `RequestContextExportingAppender` has a dependency on `Flags` which partially breaks logging HOT 5
- Convert `RequestTimeoutException` to gRPC `Status` using `GrpcExceptionHandlerFunction` HOT 1
- Test failure: `com.linecorp.armeria.server.InitiateConnectionShutdownTest`
- Confusion clamping DNS TTL values between ClientFactory and DnsEndpointGroup subclasses
- Allow custom gRPC status mapping rule in gRPC client
- Test failure: `com.linecorp.armeria.server.JavaHttpClientUpgradeTest.http1RequestDecoderIsRemovedAfterHandlingLargeData()`
- Add `@GrpcInterceptor` HOT 1
- Suggestion: Can we expand the support HOT 5
- Test failure: `com.linecorp.armeria.internal.common.stream.FixedStreamMessageTest`
- Service discovery with Nacos HOT 2
- grpc UNAVAILABLE status returned when calling grpc-json rpc with invalid Number (Long, Integer, ...) HOT 6
- Annotated services do not work with `Single<HttpResult<T>>`
- Consider adding `AnnotatedServiceConfig` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from armeria.