| Sc4s2cg updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
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](https://www.mediawiki.org/wiki/API:Edit/Editing_with_Python) 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 errorpeter@peter-BHYVE2:~/NetShare/core$ python3 pwb.py login
WARNING: Non-JSON response received from server finwiki:en; the server may be down.
WARNING: Waiting 5 seconds before retrying.
WARNING: Non-JSON response received from server finwiki:en; the server may be down.
WARNING: Waiting 10 seconds before retrying.
^CTraceback (most recent call last):
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 1999, in submit
result = json.loads(rawdata)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/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 "/home/peter/NetShare/core/pywikibot/site.py", line 2056, in login
self.getuserinfo(force=True)
File "/home/peter/NetShare/core/pywikibot/site.py", line 2154, in getuserinfo
uidata = uirequest.submit()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 1906, in submit
self._add_defaults()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 1697, in _add_defaults
self.site.version()) >= MediaWikiVersion('1.25wmf5')):
File "/home/peter/NetShare/core/pywikibot/site.py", line 2737, in version
expiry=1).split(' ')[1]
File "/home/peter/NetShare/core/pywikibot/site.py", line 1659, in get
preloaded = self._get_general(key, expiry)
File "/home/peter/NetShare/core/pywikibot/site.py", line 1605, in _get_general
default_info = self._get_siteinfo(props, expiry)
File "/home/peter/NetShare/core/pywikibot/site.py", line 1530, in _get_siteinfo
data = "" /> File "/home/peter/NetShare/core/pywikibot/data/api.py", line 2368, in submit
self._data = super(CachedRequest, self).submit()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 2017, in submit
self.wait()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 2225, in wait
pywikibot.sleep(self.retry_wait)
File "/home/peter/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
* API is located at wiki.[REDACTED].com/api.php and is functional
* api sandbox functional, can create text, edit, etc.
* Manual python commands using [this sample code](https://www.mediawiki.org/wiki/API:Edit/Editing_with_Python) 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
* manually creating family file has no effect (see comments)
Results of python pwb.py version:
...
```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](https://www.mediawiki.org/wiki/API:Edit/Editing_with_Python) 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 errorpeter@peter-BHYVE2:~/NetShare/core$ python3 pwb.py login
WARNING: Non-JSON response received from server finwiki:en; the server may be down.
WARNING: Waiting 5 seconds before retrying.
WARNING: Non-JSON response received from server finwiki:en; the server may be down.
WARNING: Waiting 10 seconds before retrying.
^CTraceback (most recent call last):
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 1999, in submit
result = json.loads(rawdata)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/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 "/home/peter/NetShare/core/pywikibot/site.py", line 2056, in login
self.getuserinfo(force=True)
File "/home/peter/NetShare/core/pywikibot/site.py", line 2154, in getuserinfo
uidata = uirequest.submit()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 1906, in submit
self._add_defaults()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 1697, in _add_defaults
self.site.version()) >= MediaWikiVersion('1.25wmf5')):
File "/home/peter/NetShare/core/pywikibot/site.py", line 2737, in version
expiry=1).split(' ')[1]
File "/home/peter/NetShare/core/pywikibot/site.py", line 1659, in get
preloaded = self._get_general(key, expiry)
File "/home/peter/NetShare/core/pywikibot/site.py", line 1605, in _get_general
default_info = self._get_siteinfo(props, expiry)
File "/home/peter/NetShare/core/pywikibot/site.py", line 1530, in _get_siteinfo
data = "" /> File "/home/peter/NetShare/core/pywikibot/data/api.py", line 2368, in submit
self._data = super(CachedRequest, self).submit()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 2017, in submit
self.wait()
File "/home/peter/NetShare/core/pywikibot/data/api.py", line 2225, in wait
pywikibot.sleep(self.retry_wait)
File "/home/peter/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
* API is located at wiki.[REDACTED].com/api.php and is functional
* api sandbox functional, can create text, edit, etc.
* Manual python commands using [this sample code](https://www.mediawiki.org/wiki/API:Edit/Editing_with_Python) 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
* manually creating family file has no effect (see comments)
Results of python pwb.py version:
...
TASK DETAIL
EMAIL PREFERENCES
To: Sc4s2cg
Cc: Chicocvenancio, Framawiki, Dvorapa, Aklapper, pywikibot-bugs-list, Sc4s2cg, Magul, Tbscho, MayS, Salgo60, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Chicocvenancio, Framawiki, Dvorapa, 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
