#5461 /usr/local/bin/bz-review-report.py script failing
Closed: Fixed None Opened 7 years ago by kevin.

The weekly /usr/local/bin/bz-review-report.py is failing with a traceback:

{{{
Report for 7 days.
Traceback (most recent call last):
File "/usr/local/bin/bz-review-report.py", line 295, in <module>
bug_list = bz.query(bug_list_query)
File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 1203, in query
r = self._query(query)
File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 1194, in _query
return self._proxy.Bug.search(query)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in call
return self.__send(self.__name, args)
File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 168, in _ServerProxy__request
ret = ServerProxy._ServerProxy__request(self, methodname, params)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 259, in request
return self._request_helper(url, request_body)
File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 245, in _request_helper
raise sys.exc_info()[1]
xmlrpclib.Fault: <Fault 32000: 'The cookies or token provide were not valid or have expired. You may login again to get new cookies or a new token.'>
}}}


Yes, it's exactly as the error message says. ~/.bugzillacookies or ~/.bugzillatoken got outdated. The attached patch refrains from their usage.

That seems to work and fixes this issue.

Thanks!

Login to comment on this ticket.

Metadata