Skip to content

Cloudflare R2 S3 Compatibility help #226

@jcerecke

Description

@jcerecke

I'm getting an error trying to get Sleet to init.

> .\Sleet.exe init --source library --verbose
Initializing https://library.example.com/
Verifying library exists.
Pushing https://library.example.com/sleet.packageindex.json/sleet.packageindex.json
Pushing https://library.example.com/sleet.settings.json/sleet.settings.json
Pushing https://library.example.com/index.json/index.json
Pushing https://library.example.com/autocomplete/query/autocomplete/query
Pushing https://library.example.com/search/query/search/query
Failed to upload 'https://library.example.com/search/query'. Retrying.
Failed to upload 'https://library.example.com/sleet.packageindex.json'. Retrying.
Failed to upload 'https://library.example.com/autocomplete/query'. Retrying.
Failed to upload 'https://library.example.com/sleet.settings.json'. Retrying.
Failed to upload 'https://library.example.com/index.json'. Retrying.

I noticed the Pushing line entry has the path doubled up, however the Failed to upload line does not.

I'm using a Cloudflare R2 bucket, which has S3 compatibility and have verified I can connect and upload to the bucket via an S3 client.

In my sleet.json file I've got

  • "path" variable set to my public custom domain, I suspect this might be where I'm falling over. If I try to set it to anything other than a full valid URI I get errors [System.UriFormatException] Invalid URI: The URI is empty. or [System.UriFormatException] Invalid URI: The format of the URI could not be determined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions