https://bugzilla.wikimedia.org/show_bug.cgi?id=47808
--- Comment #2 from MZMcBride <[email protected]> --- --- $ python Python 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import wikitools >>> w = wikitools.Wiki('http://en.wikipedia.beta.wmflabs.org/w/api.php') >>> w.login('M', 'h') True >>> p = wikitools.Page(w, 'Test') >>> p.edit('test') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.macosx-10.8-intel/egg/wikitools/page.py", line 538, in edit File "build/bdist.macosx-10.8-intel/egg/wikitools/api.py", line 143, in query wikitools.api.APIError: (u'internal_api_error_MWException', u'Exception Caught: Unable to connect to redis server.') --- Though it seems to be intermittent. When re-testing, I was able to succesfully edit: --- >>> p.edit('test') {u'edit': {u'nochange': u'', u'contentmodel': u'wikitext', u'pageid': 6401, u'result': u'Success', u'title': u'Test'}} >>> p.edit('test2') {u'edit': {u'pageid': 6401, u'title': u'Test', u'newtimestamp': u'2013-04-28T23:30:10Z', u'contentmodel': u'wikitext', u'result': u'Success', u'oldrevid': 56971, u'newrevid': 56972}} >>> p.edit('test3') {u'edit': {u'pageid': 6401, u'title': u'Test', u'newtimestamp': u'2013-04-28T23:30:17Z', u'contentmodel': u'wikitext', u'result': u'Success', u'oldrevid': 56972, u'newrevid': 56973}} --- "Exception Caught: Unable to connect to redis server." <-- Is there a log of these exceptions? -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
