Comment by ๐Ÿ˜บ swee

Re: "Hi from Gem2Browser"

In: u/swee

@pista I made an update that requires the manual use of the hypercorn command, you can try using the webserver using `hypercorn --bind=0.0.0.0:2009 server:app` and it should work properly

๐Ÿ˜บ swee [OP]

2025-01-19 ยท 1 year ago

3 Later Comments โ†“

๐Ÿ’Ž pista ยท 2025-01-19 at 15:32:

No change really. It's probably the fault of the Python libraries, not you.

[ERROR] Error in ASGI Framework

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/hypercorn/asyncio/task_group.py", line 21, in _handle

await invoke_asgi(app, scope, receive, send)

File "/usr/lib/python3/dist-packages/hypercorn/utils.py", line 242, in invoke_asgi

asgi_instance = app(scope)

TypeError: Flask.__call__() missing 1 required positional argument: 'start_response'

๐Ÿ˜บ swee [OP] ยท 2025-01-19 at 19:40:

@pista ugh, who knows what'll fix that than, maybe even using a different ASGI/WSGI framework could fix it, though I only tested the flask app on hypercorn and flask dev mode :p

๐Ÿ˜บ swee [OP] ยท 2025-02-17 at 05:35:

@pista Just found out about your problem...

Apparently the hypercorn and flask versions provided by Ubuntu **jammy** and older are outdated and break.

So what I'd recommend you to do is either use venv, use pip, or upgrade to Ubuntu Noble

Original Post

๐Ÿ˜บ swee

Hi from Gem2Browser โ€” I added a feature to my HTTP to Gemini that can load client certs! :3

๐Ÿ’ฌ 13 comments ยท 1 like ยท 2025-01-15 ยท 1 year ago