Last modified: 2013-03-24 01:36:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48487, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46487 - Adding claim using the api triggers an wikibase-error-constraint-violation-description
Adding claim using the api triggers an wikibase-error-constraint-violation-de...
Status: RESOLVED DUPLICATE of bug 44762
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
https://www.wikidata.org/wiki/Q1427
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-23 13:22 UTC by Maarten Dammers
Modified: 2013-03-24 01:36 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maarten Dammers 2013-03-23 13:22:57 UTC
I'm using the api to add a claim to https://www.wikidata.org/wiki/Q1427. I get an error:

RuntimeError: API query error: {u'servedby': u'mw1136', u'error': {u'info': u'*
A length constraint is triggered for language code "mr".\n* There is {{PLURAL:1|
a constraint|constraints}} violation for {{PLURAL:1|description|descriptions}} "
\u0939\u093e \u0907.\u0938. \u0967\u0967\u096d \u0924..." for {{PLURAL:1|languag
e code|language codes}} "mr".\n', u'code': u'save-failed', u'messages': {u'0': {
u'type': u'error', u'name': u'wikibase-error-constraint-violation-description',
u'parameters': [1, u'mr', u'\u0939\u093e \u0907.\u0938. \u0967\u0967\u096d \u092
4...']}, u'html': {u'*': u'<ul><li> A length constraint is triggered for languag
e code "mr".\n</li><li> There is a constraint violation for description "\u0939\
u093e \u0907.\u0938. \u0967\u0967\u096d \u0924..." for language code "mr".\n</li
></ul>\n'}}}}

The 'mr' description looks very long, but it's already there. Why do I get an api error now? Manual save works.
Comment 1 jeblad 2013-03-24 01:36:52 UTC

*** This bug has been marked as a duplicate of bug 44762 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links