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

后端 未结 3 423
误落风尘
误落风尘 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:34

    Simply add

    akka.http {
      parsing {
        max-uri-length = 16k
      }
    }
    

    to your application.conf. The prefix play.server is only used for a small subset of convenience features for Akka-HTTP integration into the Playframework, e.g. play.server.akka.requestTimeout. Those are documented in the Configuring the Akka HTTP server backend documentation.

提交回复
热议问题