wdq icon indicating copy to clipboard operation
wdq copied to clipboard

Catch and report API timeout

Open merkys opened this issue 2 years ago • 7 comments

For some queries the server timeouts, but wdq dies with rather obscure message about failure to parse JSON. Failcase:

SELECT ?item ?smiles ?itemLabel
     WHERE { ?item wdt:P31 wd:Q11173 .
             ?item wdt:P233 ?smiles .
             SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }

It would be great if wdq could check for the HTTP return status (I believe server-side timeouts should set a proper one) and report it back to the user.

merkys avatar Sep 20 '21 13:09 merkys