I upgraded reviewboard to version 4.0.x, then try to link a repository based on gitlab, no luck.
ERROR - - root - Unexpected exception while verifying repository path for hosting service <reviewboard.hostingsvcs.gitlab.GitLab object at 0x7ff88086b090> using plan 'group' and tool <Tool: Git>: Could not determine the GitLab API version for https://git.xxxx.com due to an unexpected error ('HostingServiceHTTPRequest' object has no attribute 'method'). Check to make sure the URL can be resolved from this server and that any SSL certificates are valid and trusted. Traceback (most recent call last):
File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/scmtools/forms.py", line 2291, in _verify_repository_path
**repository_extra_data)
File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 302, in check_repository
self._get_repository_name(plan, kwargs))
File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 724, in _find_repository_id
if self._get_api_version(self.account.hosting_url) == '3':
File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 1230, in _get_api_version
lookup_callable=lambda: self._try_api_versions(
File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/venv/lib/python3.7/site-packages/djblets/cache/backend.py", line 311, in cache_memoize
data = lookup_callable()
File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 1233, in <lambda>
path='/projects?per_page=1',
File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 1310, in _try_api_versions
causes=errors,
reviewboard.hostingsvcs.gitlab.GitLabAPIVersionError: Could not determine the GitLab API version for https://git.xxxx.com due to an unexpected error ('HostingServiceHTTPRequest' object has no attribute 'method'). Check to make sure the URL can be resolved from this server and that any SSL certificates are valid and trusted.
Plural value must be an integer, got AdminErrorList
Traceback (most recent call last):