Last modified: 2014-10-18 01:25:57 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 T71401, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69401 - creating new item on Wikidata fails - A string was expected, but not found in the json
creating new item on Wikidata fails - A string was expected, but not found in...
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Highest critical
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-11 14:30 UTC by JAn Dudík
Modified: 2014-10-18 01:25 UTC (History)
3 users (show)

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


Attachments

Description JAn Dudík 2014-08-11 14:30:57 UTC
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
Comment 1 Gerrit Notification Bot 2014-08-14 18:49:00 UTC
Change 154111 had a related patch set uploaded by John Vandenberg:
Fix ItemPage normalizeData, and test cases

https://gerrit.wikimedia.org/r/154111
Comment 2 Gerrit Notification Bot 2014-08-26 10:53:13 UTC
Change 154111 merged by jenkins-bot:
Fix ItemPage editEntity, and test cases

https://gerrit.wikimedia.org/r/154111
Comment 3 Amir Ladsgroup 2014-08-26 10:55:06 UTC
Checked and worked okay
Comment 4 Gerrit Notification Bot 2014-10-13 07:15:06 UTC
Change 166370 had a related patch set uploaded by John Vandenberg:
Remove comment about fixed bug 69401

https://gerrit.wikimedia.org/r/166370
Comment 5 Gerrit Notification Bot 2014-10-14 06:28:26 UTC
Change 166370 merged by jenkins-bot:
Remove comment about fixed bug 69401

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

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


Navigation
Links