srid/slownews

Handle timeouts in the Haskell backend

Open

#20 opened on Dec 20, 2017

 (0 comments) (0 reactions) (0 assignees)Haskell (11 forks)github user discovery
buggood first issue

Repository metrics

Stars
 (113 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

.. and other http errors. Just retry.

backend: HttpExceptionRequest Request {
  host                 = "www.reddit.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","haskell wreq-0.5.1.0")]
  path                 = "/r/zerocarb/top/.json"
  queryString          = "?sort=top&t=week&limit=3"
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (ConnectionFailure Network.Socket.getAddrInfo: does not exist (nodename nor servname provided, or not known))

Contributor guide