Sc4s2cg created this task.
Sc4s2cg added a project: Pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

Steps to reproduce:

  • python pwb.py login, after creating family and user files
  • get error:
core> python pwb.py login
WARNING: Non-JSON response received from server famwiki:en; the server may be down.
WARNING: Waiting 5 seconds before retrying.
WARNING: Non-JSON response received from server famwiki:en; the server may be down.
WARNING: Waiting 10 seconds before retrying.
Traceback (most recent call last):
  File "\\192.168.1.240\NetShare\core\pywikibot\data\api.py", line 1999, in submit
    result = json.loads(rawdata)
  File "C:\Users\Peter\AppData\Local\Programs\Python\Python36-32\lib\json\__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "C:\Users\Peter\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\Peter\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "pwb.py", line 251, in <module>
    if not main():
  File "pwb.py", line 244, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "pwb.py", line 115, in run_python_file
    main_mod.__dict__)
  File ".\scripts\login.py", line 196, in <module>
    main()
  File ".\scripts\login.py", line 179, in main
    site.login(sysop, autocreate=autocreate)
  File "\\192.168.1.240\NetShare\core\pywikibot\site.py", line 2056, in login
    self.getuserinfo(force=True)
  File "\\192.168.1.240\NetShare\core\pywikibot\site.py", line 2154, in getuserinfo
    uidata = uirequest.submit()
  File "\\192.168.1.240\NetShare\core\pywikibot\data\api.py", line 1906, in submit
    self._add_defaults()
  File "\\192.168.1.240\NetShare\core\pywikibot\data\api.py", line 1697, in _add_defaults
    self.site.version()) >= MediaWikiVersion('1.25wmf5')):
  File "\\192.168.1.240\NetShare\core\pywikibot\site.py", line 2737, in version
    expiry=1).split(' ')[1]
  File "\\192.168.1.240\NetShare\core\pywikibot\site.py", line 1659, in get
    preloaded = self._get_general(key, expiry)
  File "\\192.168.1.240\NetShare\core\pywikibot\site.py", line 1605, in _get_general
    default_info = self._get_siteinfo(props, expiry)
  File "\\192.168.1.240\NetShare\core\pywikibot\site.py", line 1530, in _get_siteinfo
    data = ""
  File "\\192.168.1.240\NetShare\core\pywikibot\data\api.py", line 2368, in submit
    self._data = super(CachedRequest, self).submit()
  File "\\192.168.1.240\NetShare\core\pywikibot\data\api.py", line 2017, in submit
    self.wait()
  File "\\192.168.1.240\NetShare\core\pywikibot\data\api.py", line 2225, in wait
    pywikibot.sleep(self.retry_wait)
  File "\\192.168.1.240\NetShare\core\pywikibot\__init__.py", line 1335, in sleep
    time.sleep(secs)
KeyboardInterrupt
<class 'KeyboardInterrupt'>
CRITICAL: Closing network session.
  • Website is confirmed online, can be seen inside and outside network
  • mywikisite.com/api.php functional
  • api sandbox functional, can create text, edit, etc.
  • Manual python commands using this sample code is successful, I can upload or query the site as needed. This also includes logging in.
  • changing family file to http or https has no effect on error
  • changing family file to http://mymediawiki.com/api.php has no effect on error

TASK DETAIL
https://phabricator.wikimedia.org/T196683

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Sc4s2cg
Cc: Aklapper, pywikibot-bugs-list, Sc4s2cg, Magul, Tbscho, MayS, Salgo60, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to