Skip to content

Unsupported OkHttp library found. Must use okhttp >= 4.8.1 #1298

Description

@ruempel

I use MinIO 8.3.6 in a Gradle-based Spring Boot project. When building the client with MinioClient.builder().endpoint(ENDPOINT).credentials(ACCESS_KEY, SECRET_KEY).build();, the following dependency exception occurs:

Caused by: java.lang.RuntimeException: Unsupported OkHttp library found. Must use okhttp >= 4.8.1
	at io.minio.S3Base.<clinit>(S3Base.java:100)

Workaround

You can force okhttp to be used in a newer version (com.squareup.okhttp3:okhttp:4.9.3 works), but the proper version should be satisfied out of the box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions