Skip to Content

Unable to Call Machine learning foundation services from WEBIDE in SCP

Hi Experts,

I am trying to access machine learning foundation API's from WEIDE through a fiori application, but i am always getting the below error.

Can anyone suggest what is the issue... as i have passed the API key as a Https:header parameter.

{"fault":{"faultstring":"Failed to resolve API Key variable request.header.apikey","detail":{"errorcode":"steps.oauth.v2.FailedToResolveAPIKey"}}}

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jan 21 at 07:44 AM

    Hello Anirban,

    You are probably working with the SAP API Business Hub?

    Please log on to that page and then find the service you want to work with. Click on "Code Snippet" and you get a Javascript exmple that already includes your personal API Key. Does this make it work?

    Many Greetings, Andreas

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Andreas,

      I was doing whatever you had suggested but it was still not working, but now i am added a CORS proxy along with the API URL in the code after which i am able to get response.