Weird connectivity problem with connecting ICS to REST Service on Application Container cloud: HTT 502

Lucas Jellema 5
0 0
Read Time:2 Minute, 43 Second

In this article I am trying to create a connection from ICS to a REST Service. That should be the easiest thing in the world for ICS, right? It is a little bit special – although ICS should not have to worry about that – because the REST service runs on a different Oracle PaaS service: the Application Container Cloud and reaches out to a third PaaS service: a DBaaS instance. The DataApi application is running fine (introduced in this article:  REST API on Node.js and Express for data retrieved from Oracle Database with node-oracledb Database Driver running on Application Container Cloud) and happily retrieving data from the DBaaS instance. What I am trying to do is shown in this figure:

image

Specifically, I am trying to create the ICS integration that links to the REST DataApi service and exposes it to a specific audience or with a specific interface.

By all accounts, this should be simple to do. The REST API is dead easy. No security policies are enforced – the REST API can be accessed by anyone, from anywhere. Unfortunately, as we will see, ICS has a problem with this. And even more unfortunate is the fact that I have not yet solved it – although I have a suspicion.

In ICS, I create a new connection, called HRM_RESTAPI_onAppContainerCloud.

image

I click on Configure Connectivity, to do exactly that:

image

 

 

I enter the URL at which the REST service can be accessed – the URL that works from my local laptop.

Because no security policies are enforced for this REST service, I need to specify that in the Configure Credentials dialog:

image

Press OK.

The Connection is now configured. Press Test, to verify that the information is correct.

image

At this point – after waiting quite a long time, probably for a time out to occur – I run into a weird and for me inexplicable error. A publicly accessibly REST Service. Nothing complex about it. And ICS cannot reach it. The error: HTTP 502 and CASDK-0005 are related it seems to the proxy that does not seem to allow for the call to be made. If I interpret this correctly, it means that from within my ICS instance, an HTTP request to my REST service, running in my Application Container Cloud instance, is not allowed.

What might be involved here is the fact that:

  • ICS and Application Container Cloud are running in different identity domains (although the REST service is publicly accessible from outside its identity domain)
  • ICS and Application Container Cloud are running in different Data Centers; ICS is running in US2 and Application Container Cloud (as well as the underlying DBaaS instance) are running in EMEA2

us2em2dcs

I do not believe that these conditions should be prohibitive: I cannot think of a good reason why ICS (on US2) should be unable to access a service running on EMEA2. So perhaps this is not the reason at all.

If anyone can help me with this: why do I get HTTP 502 upon testing this connection? I would be grateful. By all means, if you have an ICS instance, try to connect to https://data-api-lucasjellema.apaas.em2.oraclecloud.com/departments and let me know if you were able to create and test this connection.

About Post Author

Lucas Jellema

Lucas Jellema, active in IT (and with Oracle) since 1994. Oracle ACE Director and Oracle Developer Champion. Solution architect and developer on diverse areas including SQL, JavaScript, Kubernetes & Docker, Machine Learning, Java, SOA and microservices, events in various shapes and forms and many other things. Author of the Oracle Press book Oracle SOA Suite 12c Handbook. Frequent presenter on user groups and community events and conferences such as JavaOne, Oracle Code, CodeOne, NLJUG JFall and Oracle OpenWorld.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

5 thoughts on “Weird connectivity problem with connecting ICS to REST Service on Application Container cloud: HTT 502

  1. Hi Lucus ,
    I have us2 ICS trial version and i tried the rest api and it was successful with me but i have the same challenge with soap web service on EMEA 2 jcs that gives me error
    – CASDK-0009: Unable to parse the resource. https://141.144.36.19/MashreqarabiaOne-Model-context-root/MashrearabiaOne?wsdl, Cannot establish proxy connection: 403 URLBlocked. Verify that WSDL URL is reachable, can be parsed and credentials if required are accurate
    – Unable to parse the resource. https://141.144.36.19/MashreqarabiaOne-Model-context-root/MashrearabiaOne?wsdl, java.io.IOException: Cannot establish proxy connection: 403 URLBlocked. Verify that WSDL URL is reachable, can be parsed and credentials if required are accurate
    – java.io.IOException: Cannot establish proxy connection: 403 URLBlocked
    – Cannot establish proxy connection: 403 URLBlocked

    any help will be appreciated

    1. Hi Bo,

      That would be great! I need this ICS to AppContainer Cloud interaction for a demo next month (as well as ICS to SOA CS across data centers, I expect a similar challenge there). As an alternative we could use a proxy on some third party cloud in between – but that would be less than optimal.

      Thanks for your help.

      Lucas

Comments are closed.

Next Post

How to: Use Polymer Webcomponents in Angular2

This post explain how to use a polymer webcomponent in an Angular2 app. We use the google maps component as an example. For instructions on the demo app, see the bottom of this post. The files of the demo application: demoApp Getting started Open the files of the demo app […]
%d bloggers like this: