Skip to content

odd construction of S3 URL for use locally with Minio #27

@fils

Description

@fils

I am trying to write to a local Minio instance. The error seems odd though. it seems to prepend the bucket name "gleaner" to the front he URL.

Does the S3 layer work with Minio?

// create new S3 file writer
fw, err := s3.NewS3FileWriter(ctx, bucket, key, nil, &aws.Config{Region: aws.String(region),
	Endpoint:    aws.String("http://192.168.86.45:32773/"),
	Credentials: credentials.NewStaticCredentials(accessKeyID, secretAccessKey, "")})
if err != nil {
	log.Println("Can't create s3 file writer", err)
	return
}

errors with

org.go:145: RequestError: send request failed
caused by: Put "http://gleaner.192.168.86.45:32773/orgs/oceanexperts.parquet": dial tcp: lookup gleaner.192.168.86.45: no such host

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