home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1185925081

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1770#issuecomment-1185925081 https://api.github.com/repos/simonw/datasette/issues/1770 1185925081 IC_kwDOBm6k_c5Gr8fZ 9599 2022-07-15T20:55:41Z 2022-07-15T20:56:16Z OWNER

I think the hook gets called any time any exception makes it to this function: https://github.com/simonw/datasette/blob/950cc7677f65aa2543067b3bbfc2b6acb98b62c8/datasette/app.py#L1374-L1440

Multiple plugins can register for the hook. If they return a Response then that's returned to the user - if they return None then they can quietly do something with the error (log it to Sentry for example) and let some other handler return a response.

I think Datasette should have a default plugin hook implementation which returns the 500 error page.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1306492437  
Powered by Datasette · Queries took 1.19ms · About: github-to-sqlite