Hi Dimitry,

that message is a different one. It means that your code is issuing 
requests with an explicit header `RawHeader("User-Agent", ...)` somewhere.

Johannes

On Thursday, February 23, 2017 at 8:10:03 PM UTC+1, 
dmitriy...@alisagaming.com wrote:
>
> Hi everyone.
>
> I've been using akka with spray and, later, akka-http.
>
> Right now I'm confused with configuration and *illegalHeaderWarnings* in 
> particular.
>
> First, I added this to my *application.conf*:
>
>
> akka.http {
>
>  host-connection-pool {
>  parsing.illegal-header-warnings = off
>  parsing.error-logging-verbosity = off
>  }
>
>  parsing.illegal-header-warnings = off
>
>  server {
>  idle-timeout=600s
>  request-timeout=600s
>  remote-address-header=true
>  }
>
> }
>
>
>
> With no result. I've overridden the values programmatically:
>
> private val settings = ConnectionPoolSettings(config = 
> Application.system.settings.config)
> private val cs = settings.connectionSettings
> private val ps = settings.connectionSettings.parserSettings
> private val _settings = 
> settings.withConnectionSettings(cs.withParserSettings(ps.withIllegalHeaderWarnings(false)))
> lazy val pool = Http().cachedHostConnectionPoolHttps[Int](
>  host = "<hostname>"
>  , port = 443
>  , settings = _settings
>  , connectionContext = SSLSupport.sslContext
> )
>
> Same here. I keep receiving thousands of beautiful messages like this:
>
>
> [WARN] [02/23/2017 18:51:24.596] [default-akka.actor.default-dispatcher-9] 
> [akka.actor.ActorSystemImpl(default)] Explicitly set HTTP header 'User-Agent: 
> akka-http/10.0.3' is ignored, illegal RawHeader
>
> What can I do now?
>
> It seems that the related bugs were closed in 2015.
>
> --
> WBR
> Dmitry
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to