cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to fetch the metadata

former_member552902
Discoverer
0 Kudos

I did the steps (for CF trial account)

mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-cf-tomee -DarchetypeVersion=2.7.0 -DgroupId=com.sap.cloud.s4hana.examples -DartifactId=secondapp -Dversion=1.0-SNAPSHOT

>cd secondapp

insert code in HelloWorldServlet.java

>mvn clean install

>cf push

>cf set-env secondapp destinations "[{name: \"ErpQueryEndpoint\", url: \"https://myxxxxxx-api.s4hana.ondemand.com/sap/opu/odata/sap/API_BUSINESS_PARTNER\", username: \"USER_XXX\", password: \"password\"}]"

>cf restage secondapp

and get returned by the servlert:

Error: Unable to fetch the metadata : Failed to execute OData Metadata request.com.sap.cloud.sdk.odatav2.connectivity.ODataException: Unable to fetch the metadata : Failed to execute OData Metadata request.

The destination is perfecty working in postman and SoapUI.

I know, this mistake has been discussed here many times.

Accepted Solutions (1)

Accepted Solutions (1)

Enda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Answers (0)