home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1353443718

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/1955#issuecomment-1353443718 https://api.github.com/repos/simonw/datasette/issues/1955 1353443718 IC_kwDOBm6k_c5Qq-mG 9599 2022-12-15T17:23:12Z 2022-12-15T17:23:55Z OWNER

That may not be the best fix here. It turns out this pattern: python async def get(self, path, **kwargs): async with httpx.AsyncClient(app=self.app) as client: return await client.get(self._fix(path), **kwargs) Doesn't trigger that AsgiLifespan class.

I wrote about that previously in this TIL: https://til.simonwillison.net/asgi/lifespan-test-httpx

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