Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 177
    • Issues 177
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #335

Closed
Open
Opened Mar 25, 2024 by Fabien Maniere@fmaniere
  • Report abuse
  • New issue
Report abuse New issue

[API search] When an external service is down (HAL or other), display a message with a more explicit text

This morning, the HAL services are down (including the API).
In this case, Gargantext display this message as an error:

ExternalAPIError (FailureResponse (Request {requestPath = (BaseUrl {baseUrlScheme = Https, baseUrlHost = "api.archives-ouvertes.fr", baseUrlPort = 443, baseUrlPath = ""},"/search"), requestQueryString = fromList [("q",Just "%28fr_title_t%3A%28grossesse%29%20OR%20fr_abstract_t%3A%28grossesse%29%29"),("fl",Just "docid%2Ctitle_s%2Cen_abstract_s%2CsubmittedDate_s%2Csource_s%2CauthFullName_s%2CauthOrganism_s"),("fq",Just "language_s%3Afr"),("start",Just "0"),("rows",Just "0")], requestBody = Nothing, requestAccept = fromList [application/json;charset=utf-8,application/json], requestHeaders = fromList [], requestHttpVersion = HTTP/1.1, requestMethod = "GET"}) (Response {responseStatusCode = Status {statusCode = 503, statusMessage = "Service Unavailable"}, responseHeaders = fromList [("content-length","107"),("cache-control","no-cache"),("content-type","text/html")], responseHttpVersion = HTTP/1.1, responseBody = "<html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>\n"}))

Is it possible to display a more explicit message, for non-technical users

Edited Mar 25, 2024 by Fabien Maniere
Assignee
Assign to
Epic 0.0.6.9.9
Milestone
Epic 0.0.6.9.9
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#335