[WARN]:非法请求,响应状态为“501 Not Implemented”:不支持的 HTTP 方法:PROXY

问题描述 投票:0回答:0

启动 ActorSystem 时,会生成以下警告:

logMessage="Illegal request, responding with status '501 Not Implemented': Unsupported HTTP method: PROXY", logSource="akka.actor.ActorSystemImpl(CustomerService)"

为所有端口打开 AWS ACL 可解决此问题。

如何停止这些警告?

编辑:

akka
配置如下:

akka {

  loglevel = INFO
  log-config-on-start = "off"

  http.server {
    idle-timeout = "60 seconds"
    request-timeout = "20 seconds"
    preview.enable-http2 = on
  }
  actor {
    provider = "akka.cluster.ClusterActorRefProvider"
    debug {
      receive = on
      unhandled = on
    }
  }
  remote {
    artery {
      enabled = on
      transport = tls-tcp
      canonical.hostname = "0.0.0.0"
      canonical.port = 2552
      bind.hostname = "0.0.0.0"
      bind.port = 2552
      log-sent-messages = on
      log-received-messages = off

      ssl.config-ssl-engine {
        key-store = "default-keystore.jks"
        trust-store = "default-truststore.jks"
        key-store-password = "default"
        key-password = "default"
        trust-store-password = "default"
        protocol = "TLSv1.2"
        enabled-algorithms = [TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384]
      }
    }
    watch-failure-detector {
      threshold = 12.0
    }
  }
}
amazon-web-services scala akka
© www.soinside.com 2019 - 2024. All rights reserved.