cancel
Showing results for 
Search instead for 
Did you mean: 

Business Application Studio Deployment Issue - "VCAP_SERVICES is not a valid JSON string"

cfbruce
Explorer
0 Kudos
1,901

I have 2 environments, "Production" and "Development". For the past 2-4 weeks we have not had any issues deploying code from BAS. Recently we've been running into the below issue only in our "Development" space.

As some background, the file that is throwing errors is generated when we login to CF - an .env file gets instantiated and is where the error below is coming from.

We've tried reformatting the "VCAP_SERVICES..." to be a correct JSON or change the file from ".env" to "default-env.json" with no luck.

Additionally, our "Production" space continues to work with no issues.

Any help here would be greatly appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

AntalP
Product and Topic Expert
Product and Topic Expert

Hi Bruce,

Could you logon to the CF space and check the environment variables from CLI?

https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html#VCAP-SERVICES

For example

cf env html5userapi-srv

Getting env variables for app html5userapi-srv in org c801ae3dtrial / space dev as ...

System-Provided:

VCAP_SERVICES: {

"connectivity": [

{

"binding_guid": "5d3b605c-baa2-44bd-930d-18b27af05150",

"binding_name": null,

"credentials": {

...

Best regards,

Antal