Skip to Content
0
Nov 29, 2022 at 03:08 PM

VCAP_SERVICES is not a valid JSON string

473 Views

When I try to deploy my project in HANA Cloud with BAS, I receive the following error

Deployment ended at 2022-11-29 11:24:42

Error: Environment variable VCAP_SERVICES is not a valid JSON string.: Unexpected end of JSON input

I've never touched VCAP_SERVICES in .env and I checked it in a Validator and it is valid !

I’m not the only one facing this issue since the new BAS version was released a few days ago

https://answers.sap.com/questions/13763054/bas-deploy-not-working-after-update.html

Seems that the problem might come from BAS due to special characters used in the VCAP_SERVICES JSON string (like the password generated for the UPS which includes special characters like #)

I’ve tried the workaround mentioned by a guy in the URL referenced above by declaring password as a variable and using it later in the VCAP_SERVICES string but it didn’t solve the issue.

What's the official way to solve this ? Is this a real bug ?

Thanks

Didier