/docs/src/main/paradox/troubleshooting/unsupported-http-method-pri.md

https://github.com/akka/akka-http · Markdown · 13 lines · 10 code · 3 blank · 0 comment · 0 complexity · 1f14ec362db77c1b8d5066605be48f1e MD5 · raw file

  1. # Unsupported HTTP method: PRI
  2. ```
  3. Illegal request, responding with status '501 Not Implemented': Unsupported HTTP method: PRI
  4. ```
  5. This indicates that a HTTP/2 request was received, but the server was not
  6. correctly set up to handle those. You may have to:
  7. * Add the @ref[`akka-http2-support` dependency](../server-side/http2.md#dependency) to the classpath
  8. * Make sure the @ref[`akka.http.server.preview.enable-http2` option](../server-side/http2.md#enable-http-2-support) is enabled
  9. * Make sure you are running @ref[at least JDK version 8u252](../server-side/http2.md#dependency)
  10. * Make sure you are not using @apidoc[Http().bindAndHandle()](Http$) or @apidoc[Http().newServerAt().bindFlow()](ServerBuilder), but @apidoc[Http().newServerAt().bind()](ServerBuilder).