~sircmpwn/sr.ht-discuss

7 2

How do I set up the webhooks for hub.sr.ht?

Details
Message ID
<2375eda817d66d1ebbe65b678fd8f01e5ea331d4.camel@ben.gmbh>
DKIM signature
missing
Download raw message
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
Details
Message ID
<C2I1PNL1389R.33J3Q8ANRDKI4@homura>
In-Reply-To
<2375eda817d66d1ebbe65b678fd8f01e5ea331d4.camel@ben.gmbh> (view parent)
DKIM signature
missing
Download raw message
Do you have the full backtrace?
Details
Message ID
<da757f2b34694336589d616b9402d324e047c72b.camel@ben.gmbh>
In-Reply-To
<C2I1PNL1389R.33J3Q8ANRDKI4@homura> (view parent)
DKIM signature
missing
Download raw message
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}
Details
Message ID
<C2I1X55Q46LU.15TC8Q6A6JI30@homura>
In-Reply-To
<da757f2b34694336589d616b9402d324e047c72b.camel@ben.gmbh> (view parent)
DKIM signature
missing
Download raw message
Can you also share the relevant lines from git.sr.ht's web logs?
Details
Message ID
<8b20735631e5c7eaf14d8cc611b9d044143aac0f.camel@ben.gmbh>
In-Reply-To
<C2I1X55Q46LU.15TC8Q6A6JI30@homura> (view parent)
DKIM signature
missing
Download raw message
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 -
Details
Message ID
<C2I1ZIH9KDME.3RI4331J9WXT3@homura>
In-Reply-To
<8b20735631e5c7eaf14d8cc611b9d044143aac0f.camel@ben.gmbh> (view parent)
DKIM signature
missing
Download raw message
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?
Details
Message ID
<2b3c0958e106e0ceb89d9a8f3701dc84719eae66.camel@ben.gmbh>
In-Reply-To
<C2I1ZIH9KDME.3RI4331J9WXT3@homura> (view parent)
DKIM signature
missing
Download raw message
I'm using the latest versions of everything from the git repositories,
on Alpine Linux. All the oauth clients are preauthorized. All of the
services are using the same config.ini in /etc/sr.ht/.
Details
Message ID
<C2I29AFYS7LW.1WAUJQDGX076G@homura>
In-Reply-To
<2b3c0958e106e0ceb89d9a8f3701dc84719eae66.camel@ben.gmbh> (view parent)
DKIM signature
missing
Download raw message
Can you tell me specifically which versions you're using? apk policy
<pkgname> will tell you.
Reply to thread Export thread (mbox)