Initial Okta Spring Boot Connection - Error: Could not extract response

Java Spring

On startup I receive a:

org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class com.okta.spring.oauth.discovery.OidcDiscoveryMetadata] and content type [text/html;charset=utf-8]
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(
	at org.springframework.web.client.RestTemplate.doExecute(
	at org.springframework.web.client.RestTemplate.execute(
	at org.springframework.web.client.RestTemplate.getForObject(
	at com.okta.spring.oauth.OktaPropertiesMappingEnvironmentPostProcessor.discoveryPropertiesSource(
	at com.okta.spring.oauth.OktaPropertiesMappingEnvironmentPostProcessor.postProcessEnvironment(

I currently can’t recall how to add a message converter and am working on it. Just thought the tutorial should have that information rather than say: “That’s it!”

What is the appropriate url for the issuer (okta.oauth2.issuer)?

Can you share your configuration of the Okta Spring Boot Library?

I think there might be something wrong with the issuer.

The library is making a request to the configuration endpoint:

https://{{your org}}

If you visit that in your browser, it should return Content-Type: application/json;charset=UTF-8

This isn’t configurable or anything, so I have a feeling the HTML that is being returned is Okta’s error page, which might mean the issuer is incorrect in your configuration.


Thanks it looks like i had overridden the value I had put for my authorization server with the wrong value.

If you are ever looking for these values, you can find them from the console as well :slight_smile: