Covisint-PST / jacoco-service-broker

this is service broker for jacoco agent
Apache License 2.0
0 stars 0 forks source link

Error when binding the service #1

Open xunwu opened 6 years ago

xunwu commented 6 years ago

I created a service based on instruction but when I tried to bind to my microservice it has following error:

Server error, status code: 502, error code: 10001, message: The service broker rejected the request to https://jacoco-service-broker.run.aws-usw02-pr.ice.predix.io/v2/service_instances/835a8220-ca23-406e-8e6e-91d5762f0506/service_bindings/36d6fecc-c2ec-42e6-aca6-f1f4d304b9e2. Status Code: 400 Bad Request, Body: {"timestamp":1517263965847,"status":400,"error":"Bad Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"Could not read JSON: Unrecognized field \"bind_resource\" (class com.covisint.cf.servicebroker.jacoco.model.BindingRequest), not marked as ignorable (6 known properties: \"serviceId\", \"plan_id\", \"planId\", \"service_id\", \"app_guid\", \"appGuid\"])\n at [Source: org.apache.catalina.connector.CoyoteInputStream@6343da36; line: 1, column: 170] (through reference chain: com.covisint.cf.servicebroker.jacoco.model.BindingRequest[\"bind_resource\"]); nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"bind_resource\" (class com.covisint.cf.servicebroker.jacoco.model.BindingRequest), not marked as ignorable (6 known properties: \"serviceId\", \"plan_id\", \"planId\", \"service_id\", \"app_guid\", \"appGuid\"])\n at [Source: org.apache.catalina.connector.CoyoteInputStream@6343da36; line: 1, column: 170] (through reference chain: com.covisint.cf.servicebroker.jacoco.model.BindingRequest[\"bind_resource\"])","path":"/v2/service_instances/835a8220-ca23-406e-8e6e-91d5762f0506/service_bindings/36d6fecc-c2ec-42e6-aca6-f1f4d304b9e2"}

lingesh-happiestminds commented 6 years ago

Hello ,

when you type cf service-brokers what result your getting from your cli. is that service-broker created successfully ??

https://jacoco-service-broker.run.aws-usw02-pr.ice.predix.io/env what response your getting.

Regards Lingesh M