You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
Currently, I am getting something like this whenever a service binding fails:
$ cf create-service-key my-service my-keyCreating service key my-key for service instance my-service as [email protected]...The service broker returned an invalid response. Status Code: 500 Internal Server Error, Body: {"foo":"bar"}FAILED
What I am trying to achieve
I am trying to have a custom error message on the cf-client whenever a synchronous binding fails.
Something like this for example:
$ cf create-service-key my-service my-keyCreating service key my-key for service instance my-service as [email protected]...Service broker error: FooFAILED
What I tried
I was wondering what the error: "" field in SFPlan is for. In every example I can find, one can observe that it's set to "".
Setting it to error: "Foo" causes that the details about the Status Code and Body will be suppressed. However, the actual value "Foo" of error is not being printed.
$ cf create-service-key my-service my-keyCreating service key my-key for service instance my-service as [email protected]...Service broker error:FAILED
So my questions are...
Is there a possibility to have custom error messages for binding errors?
What is error: "" for?
Why does error: "Foo" suppress the usual printing of Status Code and Body?
Why does "Foo" not come up on the cf-client whenever specified?
The text was updated successfully, but these errors were encountered:
Context
Currently, I am getting something like this whenever a service binding fails:
What I am trying to achieve
I am trying to have a custom error message on the cf-client whenever a synchronous binding fails.
Something like this for example:
What I tried
I was wondering what the

error: ""
field inSFPlan
is for. In every example I can find, one can observe that it's set to""
.Setting it to
error: "Foo"
causes that the details about the Status Code and Body will be suppressed. However, the actual value"Foo"
oferror
is not being printed.So my questions are...
error: ""
for?error: "Foo"
suppress the usual printing of Status Code and Body?"Foo"
not come up on the cf-client whenever specified?The text was updated successfully, but these errors were encountered: