There obviously isn't any documentation yet on man.sr.ht for the hub,
so I figured I'd ask on this list. I got hub.sr.ht installed and
working, but I can't add any repositories, trackers, or lists to a
project. I get the following:
Exception: Failed to create webhook: {"next": null, "results": [], "total": 0, "results_per_page": 50}
Is there something I'm missing? -ben
On Mon, 2020-05-04 at 11:21 -0400, Drew DeVault wrote:
> Do you have the full backtrace?
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/flask/app.py", line 2334, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python3.8/site-packages/werkzeug/wsgi.py", line 826, in __call__
return app(environ, start_response)
File "/usr/lib/python3.8/site-packages/flask/app.py", line 2320, in wsgi_app
response = self.handle_exception(e)
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1766, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.8/site-packages/flask/_compat.py", line 36, in reraise
raise value
File "/usr/lib/python3.8/site-packages/flask/app.py", line 2317, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1840, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1743, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.8/site-packages/flask/_compat.py", line 36, in reraise
raise value
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1838, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1824, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/blowry/core.sr.ht/srht/oauth/__init__.py", line 40, in wrapper
return f(*args, **kwargs)
File "/home/blowry/hub.sr.ht/hubsrht/blueprints/sources.py", line 128, in git_new_POST
git.ensure_repo_webhooks(repo)
File "/home/blowry/hub.sr.ht/hubsrht/services.py", line 89, in ensure_repo_webhooks
ensure_webhooks(owner, url, config)
File "/home/blowry/core.sr.ht/srht/api.py", line 109, in ensure_webhooks
raise Exception(f"Failed to create webhook: {r.text}")
Exception: Failed to create webhook: {"next": null, "results": [], "total": 0, "results_per_page": 50}
On Mon, 2020-05-04 at 11:31 -0400, Drew DeVault wrote:
> Can you also share the relevant lines from git.sr.ht's web logs?
127.0.0.1 - - [04/May/2020 10:32:43] "GET /api/repos?start=-1 HTTP/1.0" 200 -
127.0.0.1 - - [04/May/2020 10:32:48] "GET /api/repos/test-repository HTTP/1.0" 200 -
127.0.0.1 - - [04/May/2020 10:32:48] "GET /api/user/webhooks?start=-1 HTTP/1.0" 200 -
127.0.0.1 - - [04/May/2020 10:32:48] "GET /api/~blowry/repos/test-repository/webhooks?start=-1 HTTP/1.0" 200 -
127.0.0.1 - - [04/May/2020 10:32:48] "GET /api/~blowry/repos/test-repository/webhooks HTTP/1.0" 200 -
This is totally bizzare. What version of core.sr.ht, hub.sr.ht,
scm.sr.ht, and git.sr.ht are you running? What distro are you on? Have
you set your applications to be preauthorized meta.sr.ht clients in the
database? Are all of the keys in your config.ini files consistent
between each service?