https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
Bug ID: 70820 Summary: Addinhg ability to ignore SSL certificate errors for compat Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: login.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: reza.energy@gmail.com Web browser: --- Mobile Platform: ---
would you please add this patch for compat? https://gerrit.wikimedia.org/r/#/c/160189/ Now when i edit claims it crashes and show this token error
File "/home/reza/compat/wikipedia.py", line 4799, in editclaim raise RuntimeError("API query error: %s" % data) RuntimeError: API query error: {u'servedby': u'mw1191', u'error': {u'info': u"The 'token' parameter must be POSTed", u'code': u'mustposttoken'}}
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
reza1615 reza.energy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |compat (1.0)
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
reza1615 reza.energy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|login.py |General
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com, | |ladsgroup@gmail.com
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- The token error is a different bug caused by changes in the MW API, and not yet fixed for compat. I suspect that has already been raised, but Amir will know.
The ignore SSL cert fix only works with httplib2 used by core, which compat does not use.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
Bawolff (Brian Wolff) bawolff+wn@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bawolff+wn@gmail.com Summary|Addinhg ability to ignore |Add ability to ignore SSL |SSL certificate errors for |certificate errors for |compat |compatibility
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
--- Comment #2 from Amir Ladsgroup ladsgroup@gmail.com --- It is not a warning that can be ignored and it's not related to SSL either.
I fixed it by a little trick in wikipedia.py I can fix it easily but my question is should we fix it?
Best
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
--- Comment #3 from reza1615 reza.energy@gmail.com --- @Amir it stops the bot and it is not a warning also when I added try to repeat the function it will work but for adding references it stop completely.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
--- Comment #4 from Amir Ladsgroup ladsgroup@gmail.com --- You can't ignore errors because they are "errors" what you can ignore are warnings.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE
--- Comment #5 from Amir Ladsgroup ladsgroup@gmail.com ---
*** This bug has been marked as a duplicate of bug 71159 ***
pywikipedia-bugs@lists.wikimedia.org