Play 2.6, URI length exceeds the configured limit of 2048 characters

后端 未结 3 457
误落风尘
误落风尘 2021-01-06 16:56

I am trying to migrate a Play 2.5 version to 2.6.2. I keep getting the URI-length exceeds error. Anyone knows how to override this?

I tried below Akka setting but s

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-06 17:44

    I was getting error due to header length exceeding default 8 KB(8192). Added the following to build.sbt and it worked for me :D

    javaOptions += "-Dakka.http.parsing.max-header-value-length=16k"
    

    You can try similar for uri length if other options don't work

提交回复
热议问题