#1846·loco

OpenDAL fails at runtime due to lacking an HTTP transport

Author: mccormicktCreated Sep 28, 2026Updated Sep 28, 2026

Description

Problem

The S3, Azure Blob and GCS drivers can't send any HTTP request. Every operation fails before anything goes over the network, with:

ConfigInvalid (persistent) at write, context: { advice: call HttpTransporter::install_default before using HTTP services, called: HttpTransporter::default, service: s3, path: probe.txt, written: 5 } => default HTTP transport is not installed

opendal 0.58 moved its HTTP client behind optional http-transport-* features. It installs a process-wide transport only through opendal::install_default() or the auto-register-services feature. Both features are opendal defaults. Loco declares opendal with default-features = false, storage_aws_s3, storage_azure and storage_gcp enable only services-*, and Loco never installs a transport.

To Reproduce

Run the ignored presign_s3_roundtrip test and view the error:

bash
# Start RustFS and create the test bucket
docker run -d --rm --name loco-rustfs -p 9000:9000 \
  -e RUSTFS_ACCESS_KEY=rustfsadmin -e RUSTFS_SECRET_KEY=rustfsadmin \
  rustfs/rustfs:latest
sleep 5
curl -fsS -X PUT --aws-sigv4 "aws:amz:us-east-1:s3" \
  --user rustfsadmin:rustfsadmin http://127.0.0.1:9000/loco-presign-test

# Run the ignored S3 round-trip test
LOCO_TEST_S3_ENDPOINT=http://127.0.0.1:9000 \
LOCO_TEST_S3_BUCKET=loco-presign-test \
LOCO_TEST_S3_ACCESS_KEY_ID=rustfsadmin \
LOCO_TEST_S3_SECRET_ACCESS_KEY=rustfsadmin \
cargo test -p loco-rs --features storage_aws_s3 --lib presign_s3_roundtrip -- --ignored

test storage::drivers::aws_presign_tests::presign_s3_roundtrip_get_and_put ... FAILED

failures:

---- storage::drivers::aws_presign_tests::presign_s3_roundtrip_get_and_put stdout ----

thread 'storage::drivers::aws_presign_tests::presign_s3_roundtrip_get_and_put' (7409875) panicked at src/storage/drivers/aws_presign_tests.rs:47:10:
upload probe object: Store(ConfigInvalid (persistent) at write => default HTTP transport is not installed

Context:
   advice: call HttpTransporter::install_default before using HTTP services
   called: HttpTransporter::default
   service: s3
   path: loco-presign-probe.txt
   written: 18
)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    storage::drivers::aws_presign_tests::presign_s3_roundtrip_get_and_put

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 592 filtered out; finished in 0.01s

Expected Behavior

Tests to pass and a default http transport and crypto provider to be automatically selected.

Environment:

MacOS 27

Additional Context

We could opt to include a more robust feature set with the ability to disable this or opt for a custom transport, but I think the defaults are sane and is the path of least resistance here.