Bug: Server responses with 431 when uri length exceeds headers length limit
#2 472 ouverte le 15 mars 2019
Métriques du dépôt
- Stars
- (1 311 étoiles)
- Métriques de merge PR
- (Merge moyen 1j 10h) (2 PRs mergées en 30 j)
Description
I use Akka = "2.5.19" and AkkaHttp = "10.1.7".
server config:
akka {
http {
parsing {
max-uri-length = 96k
max-header-value-length = 16k
}
}
}
I need to send relatively long query(more than 16k (list of ~ 300-500 uuids)). I was getting 414 status code when akka.http.parsing.max-uri-length was 8k. To fix that I've increased value up to 96k and it partially solved problem. Now server responses with (431,HttpEntity.Strict(text/plain; charset=UTF-8,HTTP header value exceeds the configured limit of 16384 characters)) which seems weird cause I send only only Auth header with short String value. To fix that I've increased akka.http.parsing.max-header-value-length up to 32k. This change has solved issue but it looks like an Akka bug.