2024-08-14 15:00:19,262 - DEBUG - None - AnonymousUser - /api/ - djblets.webapi.auth.backends.base - Attempting authentication on API: username=admin, password=************
2024-08-14 15:00:19,965 - ERROR - - reviewboard.hostingsvcs.gitlab - Unexpected error when linking GitLab account for <WSGIRequest: POST '/api/hosting-service-accounts/'>: string indices must be integers, not 'str'
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/reviewboard/hostingsvcs/gitlab.py", line 345, in authorize
'PRIVATE-TOKEN': credentials['private_token'],
~~~~~~~~~~~^^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
2024-08-14 15:00:19,966 - ERROR - None - admin - /api/hosting-service-accounts/ - djblets.log.middleware - Exception thrown for user admin at
http://rbserver.review/api/hosting-service-accounts/Unexpected error "string indices must be integers, not 'str'"
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/reviewboard/hostingsvcs/gitlab.py", line 345, in authorize
'PRIVATE-TOKEN': credentials['private_token'],
~~~~~~~~~~~^^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/django/views/decorators/vary.py", line 21, in inner_func
response = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/base.py", line 650, in __call__
result = self.call_method_view(
^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reviewboard/webapi/base.py", line 360, in call_method_view
return super(WebAPIResource, self).call_method_view(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/mixins/api_tokens.py", line 62, in call_method_view
return super(ResourceAPITokenMixin, self).call_method_view(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/mixins/oauth2_tokens.py", line 99, in call_method_view
return super(ResourceOAuth2TokenMixin, self).call_method_view(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/base.py", line 941, in call_method_view
return view(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/base.py", line 1123, in post
return self.create(request,
^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reviewboard/webapi/decorators.py", line 176, in _check
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 196, in _checklogin
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 342, in _validate
return view_func(*args, **new_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reviewboard/webapi/resources/hosting_service_account.py", line 200, in create
service.authorize(request, username, password, hosting_url,
File "/venv/lib/python3.11/site-packages/reviewboard/hostingsvcs/gitlab.py", line 365, in authorize
raise HostingServiceError(
reviewboard.hostingsvcs.errors.HostingServiceError: Unexpected error "string indices must be integers, not 'str'"
2024-08-14 15:00:19,969 - ERROR - None - admin - /api/hosting-service-accounts/ - django.request - Internal Server Error: /api/hosting-service-accounts/
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/reviewboard/hostingsvcs/gitlab.py", line 345, in authorize
'PRIVATE-TOKEN': credentials['private_token'],
~~~~~~~~~~~^^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/django/views/decorators/vary.py", line 21, in inner_func
response = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/base.py", line 650, in __call__
result = self.call_method_view(
^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reviewboard/webapi/base.py", line 360, in call_method_view
return super(WebAPIResource, self).call_method_view(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/mixins/api_tokens.py", line 62, in call_method_view
return super(ResourceAPITokenMixin, self).call_method_view(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/mixins/oauth2_tokens.py", line 99, in call_method_view
return super(ResourceOAuth2TokenMixin, self).call_method_view(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/base.py", line 941, in call_method_view
return view(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/resources/base.py", line 1123, in post
return self.create(request,
^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reviewboard/webapi/decorators.py", line 176, in _check
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 196, in _checklogin
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 175, in _call
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/djblets/webapi/decorators.py", line 342, in _validate
return view_func(*args, **new_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/reviewboard/webapi/resources/hosting_service_account.py", line 200, in create
service.authorize(request, username, password, hosting_url,
File "/venv/lib/python3.11/site-packages/reviewboard/hostingsvcs/gitlab.py", line 365, in authorize
raise HostingServiceError(
reviewboard.hostingsvcs.errors.HostingServiceError: Unexpected error "string indices must be integers, not 'str'"
2024-08-14 15:00:24,341 - DEBUG - - root - Reloading logging settings
2024-08-14 15:00:24,345 - DEBUG - - root - Logging to /site/logs/reviewboard.log with a minimum level of DEBUG