Page MenuHomePhabricator

creating new item on Wikidata fails - A string was expected, but not found in the json
Closed, ResolvedPublic

Description

pwb.py newitem -newpages:5000 -lang:cs

...
Processing [[cs:Boris Peškovič]]
[[cs:Boris Peškovič]] already has an item: [[wikidata:Q443336]].
Processing [[cs:Boříkovy lapálie (rozcestník)]]
Bot: New item with sitelink from [[wikipedia:cs:Boříkovy lapálie (rozcestník)]]
Logging in to wikidata:wikidata as JAnDbot
Traceback (most recent call last):

File "I:\py\rewrite\pwb.py", line 171, in <module>
  run_python_file(fn, argv, argvu)
File "I:\py\rewrite\pwb.py", line 69, in run_python_file
  exec(compile(source, filename, "exec"), main_mod.__dict__)
File "I:\py\rewrite\scripts\newitem.py", line 142, in <module>
  main()
File "I:\py\rewrite\scripts\newitem.py", line 139, in main
  bot.run()
File "I:\py\rewrite\scripts\newitem.py", line 111, in run
  item.editEntity(data, summary=summary)
File "I:\py\rewrite\pywikibot\page.py", line 2786, in editEntity
  baserevid=baserevid, **kwargs)
File "I:\py\rewrite\pywikibot\site.py", line 854, in callee
  return fn(self, *args, **kwargs)
File "I:\py\rewrite\pywikibot\site.py", line 4122, in editEntity
  data = req.submit()
File "I:\py\rewrite\pywikibot\data\api.py", line 458, in submit
  raise APIError(code, info, **result["error"])

pywikibot.data.api.APIError: not-recognized-string: A string was expected, but n
ot found in the json for the langCode cs and argument 'value'
<class 'pywikibot.data.api.APIError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort


Version: core-(2.0)
Severity: critical

Details

Reference
bz69401

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 3:38 AM
bzimport set Reference to bz69401.
bzimport added a subscriber: Unknown Object (????).

Change 154111 had a related patch set uploaded by John Vandenberg:
Fix ItemPage normalizeData, and test cases

https://gerrit.wikimedia.org/r/154111

Change 154111 merged by jenkins-bot:
Fix ItemPage editEntity, and test cases

https://gerrit.wikimedia.org/r/154111

Change 166370 had a related patch set uploaded by John Vandenberg:
Remove comment about fixed bug 69401

https://gerrit.wikimedia.org/r/166370

Change 166370 merged by jenkins-bot:
Remove comment about fixed bug 69401

https://gerrit.wikimedia.org/r/166370