cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jeff_G
Associate
Associate
0 Kudos
1,265

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
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

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

Hi Jeff,

thanks for reaching out to us.

Could you please share your project via git?

 

BR,

Markus

Jeff_G
Associate
Associate
0 Kudos
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.
Jeff_G
Associate
Associate
0 Kudos
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
markushaug
Product and Topic Expert
Product and Topic Expert
0 Kudos
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...
markushaug
Product and Topic Expert
Product and Topic Expert
0 Kudos
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.
Jeff_G
Associate
Associate
0 Kudos

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

 

markushaug
Product and Topic Expert
Product and Topic Expert
Could you please run "cf apps" and "cf routes" in your terminal to see the exact routes of your approuter instance?
Jeff_G
Associate
Associate
I was able to set the correct "redirect" url now. Thanks
0 Kudos
Hi Jeff_G, I have the same error how did you set the correct url?