Fediverse search system

Fediver

beta version

【Self】の検索結果


"You better not miss the target"

Self-OC "Apprentice": Got it from Garry Mod

Stage: Skaaw

Sniper Rifle: SAB64


型アノテーションちゃんとつけようとするとやばいのがたまにいる


class ICacheService(ABC):
    @abstractmethod
    def cached[T, **P](self, key_generator: Optional[Callable[Concatenate[Callable, P], int]] = None) -> Callable[[Callable[P, Awaitable[T]]], Callable[P, Awaitable[tuple[T, bool]]]]:
        """
        キャッシュを利用するためのデコレータ
        """
        pass


ひょっとしてCloudflare Tunnel使ってMisskey動かしてるときってストリーミング見れない??
こんなエラーが出るんだけど

Traceback (most recent call last):
  File "/tmp/test.py", line 33, in <module>
    asyncio.run(brm.main())
  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.10/site-packages/brcore/core.py", line 126, in main
    await asyncio.create_task(self.__runner(backgrounds))
  File "/usr/local/lib/python3.10/site-packages/brcore/core.py", line 209, in __runner
    raise e
  File "/usr/local/lib/python3.10/site-packages/brcore/core.py", line 144, in __runner
    async with websockets.connect(self.__WS_URL) as ws:
  File "/usr/local/lib/python3.10/site-packages/websockets/asyncio/client.py", line 587, in __aenter__
    return await self
  File "/usr/local/lib/python3.10/site-packages/websockets/asyncio/client.py", line 543, in __await_impl__
    await self.connection.handshake(
  File "/usr/local/lib/python3.10/site-packages/websockets/asyncio/client.py", line 114, in handshake
    raise self.protocol.handshake_exc
  File "/usr/local/lib/python3.10/site-packages/websockets/client.py", line 325, in parse
    self.process_response(response)
  File "/usr/local/lib/python3.10/site-packages/websockets/client.py", line 142, in process_response
    raise InvalidStatus(response)
websockets.exceptions.InvalidStatus: server rejected WebSocket connection: HTTP 403


@mai_llj@shahu.ski Dockerで起動するとdatabase.dbという空のディレクトリが作成されています
touch database.dbで空のファイルを作成すると以下のようにdatabase.dbはディレクトリではないという旨のエラーが出ます

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/jj1guj/Federation-Delay-Metrics-Aggregator/data/database.db" to rootfs at "/app/database.db": mount src=/home/jj1guj/Federation-Delay-Metrics-Aggregator/data/database.db, dst=/app/database.db, dstFd=/proc/thread-self/fd/9, flags=0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type