cancel
Showing results for 
Search instead for 
Did you mean: 

Developing with SAP Integration Suite- unable to test Proxy API

former_member14487
Product and Topic Expert
Product and Topic Expert

Hi all,

I'm following the Learning Journey -Developing with SAP Integration Suite and I cannot test the proxy api
I get the error message - Unable to fetch response. [Request ID: b7ae3935-4689-47f7-a04d-47a9b7001129]
An error occurred while making the HTTP request. 

Everything is set up correctly and I still get this error and as such I can proceed to the rest of the tasks under API Provisioning

I am using the trial version on AWS US East (VA)

 
 
Margit_Wagner
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @former_member14487
We have received your request and are in the process of evaluating the problem,
Please allow for a delay in our response
Kind regards
Margit

Margit_Wagner
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @parvez9khan
Thank you for sharing the screenshots.
We keep up to date on the outcome of the analysis.
Kind regards
Margit

 

parvez9khan
Explorer

Hi @former_member14487 @Margit_Wagner @sklawonn 

After updating roles and Grant-types at API Plan instance I was able to test api proxy in console as well as postman.

Thanks to all for your support

parvez9khan_1-1673430433499.png

 

parvez9khan_0-1673430367333.png

Thanks, Parvez

 

Margit_Wagner
Product and Topic Expert
Product and Topic Expert

Hi @parvez9khan.
Thank you for your update and also sharing the solution including  screenshots.
This will help others in future if they run into the same issue.

We appreciate that you use our BTP Learning Group actively and participate in peer-to-peer learning,

Kind regards
Margit

View Entire Topic
markushaug
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi benzheng6,

thanks for reaching out to us.

Could you kindly share your project via GitHub so that I could have a quick look into it?

Thanks,

Markus

S_benzheng
Advisor
Advisor
0 Kudos

Thank Markus, here is my git link:

https://github.com/robbiezheng/RiskManagement.git

 

Mohit_Agarwal
Associate
Associate
0 Kudos

Hi @markushaug ,

I was also facing the same problem. As suggested in previous comments, I tried setting count=false. It seems to have solved the problem partially. 

Although, the problem doesn't occur when opening valueList now, it is creating an issue when I use the search button to search for a BP instead of explicitly using the filters (such as 'Menon for Last Name').

Issue: 

reason: [AxiosError: Error during request to remote service:
  Invalid system query option specified] {
    code: 'ERR_BAD_REQUEST',
    config: {
      timeout: 60000,
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      proxy: false,
      method: 'get',
      baseURL: 'https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER',
      url: `/A_BusinessPartner?$select=BusinessPartner,FirstName,LastName&$search="Alice"&$top=49&$orderby=BusinessPartner%20asc&$filter=LastName%20ne%20''%20and%20FirstName%20ne%20''`,
      data: undefined
    },
    request: {
      method: 'GET',
      url: `https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner?$select=BusinessPartner,FirstName,LastName&$search="Alice"&$top=49&$orderby=BusinessPartner%20asc&$filter=LastName%20ne%20''%20and%20FirstName%20ne%20''`,
      headers: {
        Accept: 'application/json,text/plain',
        'accept-language': 'en-US',
        apikey: 'dASAlivXs19CsAmAA9sNVo2A2FgrvmVi',
        'User-Agent': 'axios/0.27.2'
      }
    }

GitHub Link: https://github.tools.sap/I553616/extension-suite