Skip to content
Snippets Groups Projects
Commit 0bf1c826 authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar)
Browse files

Raise an error when RemoteGraphClient URL is wrong

We used to allow users to create a RemoteGraphClient with any URL.
This gets surprising results if the HTTP server is up, but the location
is wrong. As the HTTP Graph API will return 404 for unknown SWHIDs,
a client can fail to notice the configuration problem and silently get
wrong results.

Instead, we now query the `/stats` endpoint on instanciation and raise
exceptions in case of 404, connection error or unexpected content in
stats results.

Closes #4789
parent fb9a219a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment