anselm94 / blog-sap-fiori-genaihub-llm-integration

A sample repository demonstrating how Fiori apps (SAPUI5, OpenUI5, Fiori Elements, FPM) can be integrated with SAP Business AI LLMs such as GPT-4, Gemini without any backend in a secured way
Apache License 2.0
0 stars 1 forks source link

Unable to run application on BAS #1

Open shankarnarayank opened 3 months ago

shankarnarayank commented 3 months ago

Getting the following output when running the commands:

Output { "error": "invalid_request", "error_description": "Missing grant type" }

Tried Adding grant types under oauth2-configuration { ..., "oauth2-configuration": { "grant-types": ["client_credentials"], "redirect-uris": [ ... ] } }

Note: I understand not setting it will allow the app to choose the suitable one automatically, since it didn't happen here I have tried adding it explicitly, also to no effect.

anselm94 commented 3 months ago

@shankarnarayank Can you try running using npm run start-local instead? Let me know if it works.

shankarnarayank commented 3 months ago

@anselm94 It is asking for Username and password.

anselm94 commented 3 months ago

@shankarnarayank It depends on what authentication mechanism have you configured in your subaccount for which the Auth Token URL is used in the default-env.json. In my case, I tried with BTP Trial account. Since I logged into the trial account already, it redirected back considering the logged-in session.