chenzikun
chenzikun
api/extensions/ext_storage.py ~~~~~~~~~~~~~~~~~~~~~ def get_storage_factory(storage_type: str) -> Callable[[], BaseStorage]: match storage_type: case StorageType.S3: from extensions.storage.opendal_storage import OpenDALStorage kwargs = _load_s3_storage_kwargs() return lambda: OpenDALStorage(scheme=OpenDALScheme.S3, **kwargs) case StorageType.OPENDAL: from extensions.storage.opendal_storage import OpenDALStorage scheme...
second bug cause by the change code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return...
to fix the bug, I have change the code to case StorageType.S3: from extensions.storage.aws_s3_storage import AwsS3Storage return AwsS3Storage
@laipz8200 ~~~~~~~~~~~~~~~~~~~~~ # S3 Configuration # Whether to use AWS managed IAM roles for authenticating with the S3 service. # If set to false, the access key and secret key...
@majian159 使用旧代码,docker挂载进去,给你个参考 volumes: - ./ext_storage.py:/app/api/extensions/ext_storage.py