Provided service broker API version is not supported: Expected Version = 2.4, Provided Version = null


Mark Spielman
 

I'm trying to explore Cloud Foundry services. To start I wanted to get the sample spring-boot-cf-service-broker-mongo running. When I launch this in cloud foundry or even outside of cloud foundry as a spring boot application, I get the following response when I poll the catalog:

http://localhost:8080/v2/catalog

{"description":"The provided service broker API version is not supported: Expected Version = 2.4, Provided Version = null"}

I saw these docs on the spring-boot-cf-service-broker README:

API version verification

By default, spring-boot-cf-service-broker will verify the version of the service broker API for each request it receives. To disable service broker API version header verification, provide a BrokerApiVersion bean that accepts any API version:

@Bean
public BrokerApiVersion brokerApiVersion() {
return new BrokerApiVersion();
}

I figure, I must be failing to disable the version header verification. But I'm not sure where to provide the BrokerApiVersion bean in the spring-boot-cf-service-broker-mongo sample. Would anyone be able to give me a few more pointers.

Thanks
Mark


Noburou TANIGUCHI
 

Hi Mark,

We have successfully deployed spring-boot-cf-service-broker-mongo on Cloud
Foundry (DEA, not Diego) about 2 months before and wrote a blog post about
it.

http://blog.cloudfoundry.gr.jp/2015/09/cf100apps-068-spring-boot-cf-service-broker-mongo.html#section-4

Though the post is in Japanese, I think you may find the answer for your
question in the *code* area (black background & white foreground).

I hope this will help.



Mark Spielman wrote
I'm trying to explore Cloud Foundry services. To start I wanted to get the
sample spring-boot-cf-service-broker-mongo running. When I launch this in
cloud foundry or even outside of cloud foundry as a spring boot
application, I get the following response when I poll the catalog:

http://localhost:8080/v2/catalog

{"description":"The provided service broker API version is not supported:
Expected Version = 2.4, Provided Version = null"}

I saw these docs on the spring-boot-cf-service-broker README:

API version verification

By default, spring-boot-cf-service-broker will verify the version of the
service broker API for each request it receives. To disable service broker
API version header verification, provide a BrokerApiVersion bean that
accepts any API version:

@Bean
public BrokerApiVersion brokerApiVersion() {
return new BrokerApiVersion();
}

I figure, I must be failing to disable the version header verification.
But I'm not sure where to provide the BrokerApiVersion bean in the
spring-boot-cf-service-broker-mongo sample. Would anyone be able to give
me a few more pointers.

Thanks
Mark




-----
I'm not a ...
noburou taniguchi
--
View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-Provided-service-broker-API-version-is-not-supported-Expected-Version-2-4-Provided-Version-nul-tp2905p2932.html
Sent from the CF Dev mailing list archive at Nabble.com.


Mark Spielman
 

This is excellent. I think your blog post outlines exactly what I was looking for. Thank you for the help.

Mark