Skip to content
Snippets Groups Projects
Jérémy Bobbio (Lunar)'s avatar
Jérémy Bobbio (Lunar) authored
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
0bf1c826
History
Name Last commit Last update