https://bugzilla.wikimedia.org/show_bug.cgi?id=46487
Web browser: ---
Bug ID: 46487
Summary: Adding using the api triggers an
wikibase-error-constraint-violation-description
Product: MediaWiki extensions
Version: unspecified
Hardware: All
URL: https://www.wikidata.org/wiki/Q1427
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataClient
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l