s2i-nodejs-container icon indicating copy to clipboard operation
s2i-nodejs-container copied to clipboard

Generate configuration for react applications on node.js

Open chargio opened this issue 7 years ago • 3 comments

Trying to run an application with node.js and React with typescript does not work.

The application is running, and pointing to the port 8080, and you can curl localhost and 0.0.0.0, but there is no response when connecting through the service.

chargio avatar Dec 01 '17 09:12 chargio

there is no response when connecting through the service.

What IP is service pointing to? Are you connecting outside of OpenShift?

omron93 avatar Dec 01 '17 09:12 omron93

I used the template directly.

chargio avatar Dec 01 '17 09:12 chargio

The service and the router are those of the template.

oc rsh pod-name

Inside the container

curl 0.0.0.0:8080 returns "no javascript enabled" page curl localhost:8080will do the same curl $WEB_SERVICE_HOST:$WEB_SERVICE_PORT will timeout, same behaviour than connecting to the route or to the service from another host in the cluster. I can connect from the pod to the API host

chargio avatar Dec 01 '17 09:12 chargio