https://bugzilla.wikimedia.org/show_bug.cgi?id=57531

       Web browser: ---
            Bug ID: 57531
           Summary: internal_api_error_MWException on test.wikidata.org
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: blocker
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: wikidata-b...@lists.wikimedia.org
          Reporter: lydia.pintsc...@wikimedia.de
                CC: addshorew...@gmail.com,
                    wikidata-b...@lists.wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

(copied from
https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#internal_api_error_MWException_on_test.wikidata.org)


I tried to add quantity to a property with bot but I have error: <error
code="internal_api_error_MWException" info="Exception Caught: Internal error in
ApiFormatXml::recXmlPrint: (P10, ...) has integer keys without _element value.
Use ApiResult::setIndexedTagName()." xml:space="preserve" />. This is the claim
that I want add:
{
        "claims" : [{
                        "mainsnak" : {
                                "snaktype" : "value",
                                "property" : "P69",
                                "datavalue" : {
                                        "value" : {
                                                "amount" : "+1000",
                                                "unit" : "1",
                                                "upperBound" : "+1001",
                                                "lowerBound" : "+999"
                                        },
                                        "type" : "quantity"
                                }
                        },
                        "type" : "statement",
                        "rank" : "normal"
                }
        ]
}

My error or some problem in API? --ValterVB (talk) 10:41, 23 November 2013
(UTC)
However the claim is recorded in database. --ValterVB (talk) 09:31, 24 November
2013 (UTC)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to