-
Notifications
You must be signed in to change notification settings - Fork 596
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
Timeout-Access header always contains incorrect value "<function1>" #64
Comments
I'm not quite sure it should print everything it has inside it - it's mostly very internal things (and the entire HttpRequest etc). I assume you saw it by printing the HttpRequest somewhere - which contains the Timeout-Access header, which contains the impl... I'd actually say that
|
@ktoso, ok, I understand. But how can I retrieve value of timeout from this header? According to official documentation, "the HTTP server layer attaches a |
The |
The bad thing about that header: it fails validation in akka-http itself.
Maybe we are doing proxying wrong and there's more correct way? Is it possible to avoid generation of that header at all? As final measure we could set akka.actor.* logging to errors only... but that would still fail validation every time somewhere in akka :\ |
There are always headers that cannot be directly proxied. You can filter it out by name. We should also just ignore internal headers instead of logging a warning. |
ref #911 |
Any change on this issue ? We are using akka as a proxy and keep getting "HTTP header 'Timeout-Access: ' is not allowed in requests" when on server side the query is read. To tackle the issue, I choose to rewrite this header as a raw header before sending the request to the client. But clearly the 2 fixes should be on akka side like I mention below.
|
No, this is not the right approach. This is a header that should not be send over the wire (because no one but akka-http understands its meaning), hence the warning. I think we can probably just ignore any |
Tuesday Mar 22, 2016 at 16:00 GMT
Originally opened as akka/akka#20120
Following path returns response "Timeout-Access = ":
It's because
TimeoutAccessImpl
does not overridetoString
which inherited by default fromscala.Function1
.The text was updated successfully, but these errors were encountered: