cancel
Showing results for 
Search instead for 
Did you mean: 

SAP fiori connecting to fastapi

Anu23
Explorer
0 Kudos
363

I have developed a SAP Fiori application in SAP Business Application Studio and initialized the FastAPI web framework within my project. However, while attempting to run the SAP Fiori UI app, I am encountering issues retrieving results.
AJAX request is not happening, it is not bale to connect
@ash_G Please can you guide me on how to resolve this and ensure seamless integration between the FastAPI backend and the SAP Fiori front-end.

View Entire Topic
WouterLemaire
Active Contributor

as Marian mentioned you have to configure the proxy in the ui5.yaml file. Probably you are using the Fiori tooling, here you have an example of this config: 
https://github.com/lemaiwo/ODatav4DemoApp/blob/e3c4c1bc730a076378fd6f042156a5874ef3024d/app/ODataV4D... 

besides that, you can try following this tutorial to learn how everything is connected: https://developers.sap.com/tutorials/appstudio-fioriapps-create..html

 

Anu23
Explorer
0 Kudos
backend: - path: /api url: http://0.0.0.1:8001
Anu23
Explorer
0 Kudos
It's giving the following error: Error Message: Failed to register backend for /api. Check configuration in yaml file. Error: Unable to determine target from configuration: { "path": "/api", "proxy": "http://127.0.0.1:8887" }. I don't understand why it's using 127.0.0.1:8887 even though I've specified port 8001. Could you help me understand what I might be missing?