Error when creating new repo for new wiki

The following error occurs when creating a new wiki with a new git repo, after submitting the "create new ref" form:

[2022-02-14 14:50:28 +0000] [4763] [ERROR] Socket error processing request.
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/lib/python3.9/site-packages/srht/oauth/__init__.py", line 43, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/mansrht/blueprints/create.py", line 142, in select_ref_POST
    repo_dict = backend.create_repo(repo_name)
  File "/usr/lib/python3.9/site-packages/mansrht/repo.py", line 128, in create_repo
    return _request_post(url, self.owner, data={"name": repo_name})
  File "/usr/lib/python3.9/site-packages/mansrht/repo.py", line 24, in _request_post
    raise Exception(r.text)
Exception: {"errors": [{"reason": "enums must be strings"}]}
Assigned to
2 years ago
2 years ago
No labels applied.

~bitfehler 2 years ago

I can finally reproduce locally and sort of know the problem is, but have a question: what is the relationship between the visibility of a wiki and that of the underlying repo? can there be the case where it differs?

~sircmpwn 2 years ago

I'm not certain what the actual state of affairs is, but the desired state of affairs is that they can be configured independently of each other.

~sircmpwn REPORTED FIXED 2 years ago

Conrad Hoffmann referenced this ticket in commit d2ab9ce.

Register here or Log in to comment, or comment via email.