"Configured connecting timeout of 10 seconds expired, stopping" breaking connections forever

瀏覽次數:205 次
跳到第一則未讀訊息

Glenn / devalias

未讀,
2015年5月13日 晚上9:22:372015/5/13
收件者:spray...@googlegroups.com

Spray 1.3.x
Akka 2.3.x

Using the high level spray-client api (http://spray.io/documentation/1.2.3/spray-client/) from an instantiated 'RestClient' type class to make posts against mandrills api.

Post("https://mandrillapp.com/api/1.0/messages/send.json", myJson)
 

Our email stopped working, so I went digging through our logs and came across:

[WARN  05:43:47.734UTC] ([s.can.client.HttpClientConnection | akka://Foo/user/IO-HTTP/group-0/20 | Foo-akka.actor.default-dispatcher-8] 
Configured connecting timeout of 10 seconds expired, stopping

After which we continue getting messages like

[WARN  05:43:47.748UTC] ([s.can.client.HttpHostConnectionSlot | akka://Foo/user/IO-HTTP/host-connector-12/0 | Foo-akka.actor.default-dispatcher-8] 
  Connection attempt to mandrillapp.com:443 failed in response to POST request to /api/1.0/messages/send.json with 5 retries left, retrying...  
 
until I restarted the server.


I assume at the time the first hit to mandrills api happened it was inacessible for some reason, but then it seems like from that point on it just remained dead and never tried to access it again? Does that sound like what you guys would expect of the behaviour? And if so, what would be the 'solution' to make it retry the connection part when we make a request if it failed initially?

Been digging around and can't seem to come up with anything aside from getting deeper into the host level API and managing it all manually myself, or reinstantiating the restclient everytime we want to make a call (it's basically instantiated once in this Actor, and keeps getting used until that actor dies/is restarted/etc)

Any help would be hugely appreciated!

Cheers :)

Johannes Rudolph

未讀,
2015年6月4日 凌晨3:31:062015/6/4
收件者:spray...@googlegroups.com
Hi Glenn,

this looks like a bug. Could you file an issue?

Thanks!
Johannes


--
You received this message because you are subscribed to the Google Groups "spray.io User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/spray-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/spray-user/15ace804-58be-4150-a507-fac42680e0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

Arpit

未讀,
2015年11月9日 凌晨3:14:012015/11/9
收件者:spray.io User List
Is this issue resolved? I am facing similar issue.

Johannes Rudolph

未讀,
2015年11月9日 清晨5:35:292015/11/9
收件者:spray.io User List
Hi Arpit,

I don't think it has been resolved. I filed an issue here:


Johannes

Arpit

未讀,
2015年11月9日 清晨6:04:402015/11/9
收件者:spray.io User List
Thanks Johannes.
回覆所有人
回覆作者
轉寄
0 則新訊息