Response reason phrase exceeds the configured limit of 64 characters

1,730 views
Skip to first unread message

Tim Pigden

unread,
Feb 21, 2015, 10:08:58 AM2/21/15
to akka...@googlegroups.com
Hi - I get the following. Not sure how to find out what the response was or how to change the configuration. Any help much appreciated as I'm now stuck.

akka.http.model.IllegalResponseException: Response reason phrase exceeds the configured limit of 64 characters
at akka.http.engine.client.HttpClient$$anonfun$2.applyOrElse(HttpClient.scala:89) ~[akka-http-core-experimental_2.11-1.0-M3.jar:1.0-M3]
at akka.http.engine.client.HttpClient$$anonfun$2.applyOrElse(HttpClient.scala:86) ~[akka-http-core-experimental_2.11-1.0-M3.jar:1.0-M3]


Tim Pigden

unread,
Feb 21, 2015, 11:05:35 AM2/21/15
to akka-user@googlegroups com
to answer myself, config (note you need to use "client" to override it)
akka.http.client.parsing {
max-response-reason-length = 512
}

--
>>>>>>>>>> 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 a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/KqfZ18SWN78/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Tim Pigden
Optrak Distribution Software Limited
+44 (0)1992 517100
http://www.linkedin.com/in/timpigden
http://optrak.com
Optrak Distribution Software Ltd is a limited company registered in England and Wales.
Company Registration No. 2327613 Registered Offices: Suite 6,The Maltings, Hoe Lane, Ware, SG12 9LR England 
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Optrak Distribution Software Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.

Reid Spencer

unread,
Feb 21, 2015, 2:51:53 PM2/21/15
to akka...@googlegroups.com
Tim,


While setting the value higher will undoubtedly fix the problem, you have to ask yourself why your server is sending back such large response reason phrases when the standard shows a limit of 31 characters for these. What's the reason phrase you are getting?

Reid. 

Tim Pigden

unread,
Feb 21, 2015, 6:44:52 PM2/21/15
to akka-user@googlegroups com
Hi - it's a reasonable question. I found Mathias's comment.

What I'm getting back is the full path name of the missing resource. And since I'm nesting resources and using 64-bit uuids in resource names this is way over 64 characters.
I'm using the exist xml database but I have no (easy) way to control it's responses. Of course if I don't ask for what's not there, the problem doesn't manifest itself and theoretically i know what is there but "somebody else" might have deleted it.

From my reading of the second post, the 31 characters is not a defined standard, merely the largest standard message, and no defined maximum. 

Since the eXist database is only serving my application on a local net my easiest solution is just to up the count.




Reply all
Reply to author
Forward
0 new messages