Page MenuHomePhabricator

Add ability to ignore SSL certificate errors for compatibility
Closed, DuplicatePublic

Description

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'}}


Version: compat-(1.0)
Severity: normal

Details

Reference
bz70820

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:59 AM
bzimport set Reference to bz70820.
bzimport added a subscriber: Unknown Object (????).

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.

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

@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.

You can't ignore errors because they are "errors" what you can ignore are warnings.

  • This bug has been marked as a duplicate of bug 71159 ***