cancel
Showing results for 
Search instead for 
Did you mean: 
SAP Community Log-in Update
In a few months, SAP Community will switch to SAP Universal ID as the only option to login. Don’t wait, create your SAP Universal ID now! If you have multiple S- or P- accounts, use the Consolidation Tool to merge your content. Get started with SAP Universal ID now!

Journey "Build side-by-side extensions on SAP BTP": App works in BAS, but NOT when deployed to CF

Jeff_G
Employee
Employee

I followed all the steps in the journey.  All worked as expected until I deployed the app to CF.   Result in BAS:Jeff_G_1-1674059474580.png

However, when I build, deploy and try to test in CF, I get this error:  

  • 502 Bad Gateway: Registered endpoint failed to handle the request

Jeff_G_0-1674059206026.png

Does anyone know why this would happen?  

Margit_Wagner
Employee

Hi @Jeff_G
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

(0)

Accepted Solutions (1)

Accepted Solutions (1)

markushaug
Employee
Employee

Hi Jeff,

thanks for reaching out to us.

Could you please share your project via git?

 

BR,

Markus

Jeff_G
Employee
Hi, After taking advice from others to try to get it to deploy with now errors, now the app is not even working in the BAS. Unless someone can look at this and help me figure out what is wrong with it, I feel like I may need to start the app over from scratch.
(0)
Jeff_G
Employee
Hi Markus, Is there a way I can import the app from git at a state that is ready to be deployed to CF, successfully without errors? Then I can continue the exercises in the journey. Thanks, Jeff
(0)
markushaug
Employee
Hi, yes you can switch to the respective solution git branch. Here's an overview of all branches: https://github.com/SAP-samples/btp-side-by-side-extension-learning-journey/branches/active?query=sol...
(0)
markushaug
Employee
In the SAP Business Application Studio/VS Code you can switch the branch in the bottom left corner. Per default you should see "main" there. If you click on it, all branches will appear in a popup. Then choose the corresponding solution branch. Otherwise, you can also switch the branch via the git CLI.
(0)
Jeff_G
Employee

I have started the journey all over from scratch. Now I am able to deploy the app on CF with no error, but when I try to test I get a "redirect" error:

Jeff_G_0-1675461700774.png

Is this correct in the .yaml file: 

Jeff_G_1-1675461843282.png

I also tried it with the blue line in the box above commented out and the last line uncommented.   That gave a "redirect" error also.  

Any ideas?  

Thanks, 

Jeff

 

(0)
markushaug
Employee
Could you please run "cf apps" and "cf routes" in your terminal to see the exact routes of your approuter instance?
Jeff_G
Employee
I was able to set the correct "redirect" url now. Thanks
samirmurati
Stellar 2
Hi Jeff_G, I have the same error how did you set the correct url?
(0)

Answers (0)