cancel
Showing results for 
Search instead for 
Did you mean: 

Services no longer connecting after deploying HTML5 Application

former_member764618
Discoverer
0 Kudos

I'm building a UI5 App which is deployed via Cloud Foundry. I'm able to deploy and open the app without issue, however, my Services no longer connect once it's deployed.

When I preview the application via BAS the services work fine, I'm able to consume the OData via said Services and display it, everything looks good. I can see the Services in the Service Center in BAS, green light, all is go.

These services are provided via a Cloud Connector (if that matters?).

Something changes after deploying. Presumably there is some configuration I've missed somewhere?

All the tutorials I've found are either just about deploying or just about consuming services but never both together. Any help would be greatly appreciated, I've been walking in circles on this one for a few days now.

Thanks for your time 🙂

Margot
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you add the information where exactly you deployed this application and how it is called (standalone, FLP, ...)?

former_member764618
Discoverer
0 Kudos

margot.wollny Thanks. I've deployed it from within BAS, using MTA Archive Deployment. I selected my Subaccount and Cloud Foundry Space when deploying.

From within BTP Cockpit I can click on HTML5 Applications and open my app via the available link under "Managed Application Router provided by SAP Launchpad".

I hope that helps, let me know if you need more info, how all the systems interact with each other is still blurry for me.

Accepted Solutions (1)

Accepted Solutions (1)

mariusobert
Developer Advocate
Developer Advocate

There are a few differences between the preview mode of the SAP Business Application Studio and running via the managed approuter (launchpad subscription). Is it possible that you use absolute URLs to connect to your destination? Or are the destinations not properly maintained in the xs-app.json?

It's important that you use relative URLs and declare the destinations in the xs-app.json that lives in your webapp. This post here might help you as well as it contains explanations for this things I mentioned above.

former_member764618
Discoverer

Hi Marius, thanks for your response. I ended up just following along with the tutorial video you provided on your blog post, created a new project and after deploying I still have access to my services. Not sure what is happening in my original project, but I've just copied over everything that I need into the new project and everything is working now. I guess something was initially configured differently somewhere.

Thank you again for your time and response 🙂

Answers (0)