~yegle


#88 Ctrl+Space in the config generator is not accessible 2 years ago

Comment by ~yegle on ~tsileo/microblog.pub

#88 Ctrl+Space in the config generator is not accessible 2 years ago

Comment by ~yegle on ~tsileo/microblog.pub

#90 "local actor should not be fetched" when trying to reply to a message I was mentioned. 2 years ago

Ticket created by ~yegle on ~tsileo/microblog.pub

I was getting "internal server error" when trying to reply to https://meow.cloud/@RinCat/109537559948758693, where the me is me on my microblog.pub instance.

Full traceback from the log:

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/opt/venv/.venv/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 404, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/opt/venv/.venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/opt/venv/.venv/lib/python3.10/site-packages/fastapi/applications.py", line 269, in __call__
    await super().__call__(scope, receive, send)
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/opt/venv/.venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/app/./app/main.py", line 175, in __call__
    await self.app(scope, receive, send_wrapper)  # type: ignore
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/exceptions.py", line 93, in __call__
    raise exc
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/exceptions.py", line 82, in __call__
    await self.app(scope, receive, sender)
  File "/opt/venv/.venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/opt/venv/.venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/routing.py", line 670, in __call__
    await route.handle(scope, receive, send)
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/routing.py", line 266, in handle
    await self.app(scope, receive, send)
  File "/opt/venv/.venv/lib/python3.10/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/opt/venv/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/opt/venv/.venv/lib/python3.10/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
    return await dependant.call(**values)
  File "/app/./app/admin.py", line 115, in get_lookup
    await fetch_actor(
  File "/app/./app/actor.py", line 193, in fetch_actor
    raise ValueError("local actor should not be fetched")
ValueError: local actor should not be fetched

#88 Ctrl+Space in the config generator is not accessible 2 years ago

Ticket created by ~yegle on ~tsileo/microblog.pub

The config generator prompt to enter the self description and ends with Ctrl+Space: https://git.sr.ht/~tsileo/microblog.pub/tree/v2/item/scripts/config_wizard.py#L63

Unfortunately Ctrl+space is the default keyboard shortcuts in most operating systems to switch the input method: AFAIKT it's common in Windows/Linux/ChromeOS (macOS users probably are fine as they use Command+Space).