4928: Could not determine the GitLab API version for due to an unexpected error ('HostingServiceHTTPRequest' object has no attribute 'method').


What version are you running?

Reviewboard 4.0.1

What's the URL of the page containing the problem?

What steps will reproduce the problem?

  1. add gitlab repository

What is the expected output? What do you see instead?

Please see the attachment

What operating system are you using? What browser?

CentOS 8

Please provide any additional information below.

python 3.6.8

2021-06-01 105518,529 - ERROR -  - root - Unexpected exception while verifying repository path for hosting service reviewboard.hostingsvcs.gitlab.GitLab object at 0x7faad1dfa978 using plan 'personal' and tool Tool Git Could not determine the GitLab API version for http192.168.9.92 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 usrlocallibpython3.6site-packagesreviewboardscmtoolsforms.py, line 2291, in _verify_repository_path
  File usrlocallibpython3.6site-packagesreviewboardhostingsvcsgitlab.py, line 302, in check_repository
    self._get_repository_name(plan, kwargs))
  File usrlocallibpython3.6site-packagesreviewboardhostingsvcsgitlab.py, line 724, in _find_repository_id
    if self._get_api_version(self.account.hosting_url) == '3'
  File usrlocallibpyth

please help me.

#2 chipx86

Looks to be a regression. We've found the issue, and will issue a fix in 4.0.2 (expected Tuesday of next week).

  • -New
  • +Release-4.0.x
  • +Component:HostingServices
  • +chipx86
#3 chipx86

Review requests up at https://reviews.reviewboard.org/r/11644/ and https://reviews.reviewboard.org/r/11646/.

  • -Confirmed

Well, thank you very much.