on 2024 Jul 09 10:05 AM
Hi experts,
I am trying to call an OData API in SAP DM. I have followed Create an API Service (RESTful and OData) | SAP Help Portal, Manage Web Servers | SAP Help Portal and Configure Client Proxy for Third-Party Service | SAP Help Portal blogs to do so. I am unable to call the API and the error that comes up is - “ErrorMessage created with value Query failed with NXDOMAIN". The configs that I've done are -
In Manage Web server apps - I have created a new web server, added the destinations, added Host URL(as mentioned in DEST config), consumed in DMC_Cloud and used this in a service -
In the manage service registry app, I have created a new service under "API service" and provided the URL/Path and other important details in the overview section. I have also checked by providing/not providing the host URLs in web server and the api service. I get the same errors on all scenarios -
When I'm trying to call this service in a production process I get the following error in the logs -
Note: The blacked-out parts in the screenshots are the destination names and URLs. I have checked and it's the same in DM and destination config. Also, I checked this in Postman, and there as well I'm getting the same issue - "Error: getaddrinfo ENOTFOUND <DEST_NAME>"
Question: Am I following the right process to call an OData service in DM? If not, then what's the alternative to this approach? If yes, then what am I missing in this config that I'm getting this issue?
Any help will be of great value.
Thanks & Regards,
Harsh.
Request clarification before answering.
Hi,
Is the http://{host}:{port} you are using correct and accessible?
If it doesn´t work from Postman either, it´s most probably an issue with your API URL or Authorization configs, not necessarily with your DM setup.
I suggest you review API_PRODUCTION_ORDER_2_SRV from Business Accelerator Hub and double check if you are using a valid and accessible url and a working authorization method, which must work from both Postman as well as from DM.
Br,
Manoel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ManoelCosta,
Yes, the http://{host}:{port} we are using is correct and accessible. We have cross-checked the destination details in Business Settings of DM, and also with the Basis team. The destination setup seems to be right and working.
The API that we are trying to hit is active and accessible in SAP Gateway. It also returns the data properly on Postman when triggered using the IP address of the On-Prem System. Only when using the web server and other setups in DM I'm unable to get any response from the API. I've also raised an OSS ticket to address this issue.
My main concern was that am I using the right process to call an ODATA API or not.
Thanks & Regards,
Harsh.
@cicero1988 for your issue:
- check user and password on SAP BTP destination, check that they are working fine
- second check: check inside your production process that the destination has been selected!
Let me know
User | Count |
---|---|
77 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.