Page MenuHomePhabricator

Error in WDQS: "Server error: JSON.parse: unterminated string at line ... column ... of the JSON data"
Closed, DeclinedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Execute the following query in Wikidata Query Service. The query obtains all those items that were born in a place that is located in People's Republic of China (query here)
SELECT ?item {
  ?item wdt:P19/wdt:P131* wd:Q148. 
}

What happens?:

The following error is shown (see image below)

Server error: JSON.parse: unterminated string at line 82924 column 55 of the JSON data
{
  "head" : {
    "vars" : [ "item" ]
  },
  "results" : {
    "bindings" : [ {
      "item" : {
        "type" : "uri",
        "value" : "http://www.wikidata.org/entity/Q7265"
      }
    }, {
      "item" : {
        "type" : "uri",
        "value" : "http://www.wikidata.org/entity/Q7511"
      }
(more lines)
    }, {
      "item" : {
        "type" : "uri",
        "value" : "http://www.wikidata.org/entity/Q151

image.png (1×1 px, 108 KB)

What should have happened instead?:

  • The table of Wikidata items should be shown. This error doesn't happen with other countries. I executed the same query with Uruguay instead of China and the query was succesfully executed (see image below)
SELECT ?item {
  ?item wdt:P19/wdt:P131* wd:Q77. 
}

image.png (1×1 px, 95 KB)

Software version:

  • Wikidata Query Service (as of the time of this writing)

Other information:

  • Browser: Mozilla Firefox 103.0.1

Event Timeline

Gehel subscribed.

This looks like a timeout in Blazegraph, which returns a partial (and thus syntactically invalid) response. There isn't a solution for this kind of issues (sorry).