Skip to content

Commit

Permalink
fix(config): import RetrofitConfiguration class (#2068)
Browse files Browse the repository at this point in the history
to get a okhttp3.logging.HttpLoggingInterceptor$Level bean to fix the

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 2 of constructor in com.netflix.spinnaker.config.OkHttp3ClientConfiguration required a bean of type 'okhttp3.logging.HttpLoggingInterceptor$Level' that could not be found.

Action:

Consider defining a bean of type 'okhttp3.logging.HttpLoggingInterceptor$Level' in your configuration.

message on startup.  More specifically, from

$ ./gradlew build halyard-web:installDist
$ docker build -f Dockerfile.slim -t halyard:test-me .
$ docker run --rm halyard:test-me
  • Loading branch information
dbyron-sf authored Jul 18, 2023
1 parent 3b99aa9 commit 95c6375
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.jakewharton.retrofit.Ok3Client;
import com.netflix.spinnaker.config.OkHttp3ClientConfiguration;
import com.netflix.spinnaker.config.OkHttpClientComponents;
import com.netflix.spinnaker.config.RetrofitConfiguration;
import com.netflix.spinnaker.config.okhttp3.OkHttpClientProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -31,7 +32,11 @@
import retrofit.RestAdapter;

@Configuration
@Import({OkHttp3ClientConfiguration.class, OkHttpClientComponents.class})
@Import({
OkHttp3ClientConfiguration.class,
OkHttpClientComponents.class,
RetrofitConfiguration.class
})
class RetrofitConfig {
@Autowired OkHttp3ClientConfiguration okHttpClientConfig;

Expand Down

0 comments on commit 95c6375

Please sign in to comment.