https://bugzilla.wikimedia.org/show_bug.cgi?id=57768
Web browser: --- Bug ID: 57768 Summary: action=wbeditentity: Missing datavalue key for snaks should raise a more specified message Product: MediaWiki extensions Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: WikidataRepo Assignee: wikidata-b...@lists.wikimedia.org Reporter: duplicate...@googlemail.com CC: wikidata-b...@lists.wikimedia.org Classification: Unclassified Mobile Platform: --- When a json for action=wbeditentity contains a snak, but that snak has no datavalue key the following error is given: {code=internal_api_error_InvalidArgumentException, info=Exception Caught: Wikibase\SnakObject::newFromType got an array with to few constructor arguments} The validation of the json should give a better error here to see the cause of the exception, instead of looking at the source. -- 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