cancel
Showing results for 
Search instead for 
Did you mean: 

Make Request getting timed out

sreekanthreddy_marella
Product and Topic Expert
Product and Topic Expert
0 Kudos
205

var gravityURL = "http://" + gravityHost + ":8080/gravity/";

var params = {};

params[streamwork.io.RequestParameters.CONTENT_TYPE] = streamwork.io.ContentType.TEXT;

params[streamwork.io.RequestParameters.METHOD] = streamwork.io.MethodType.GET;

params[streamwork.io.RequestParameters.AUTHORIZATION] = streamwork.io.AuthorizationType.NONE

streamwork.io.makeRequest(gravityURL, handler.callback, params);

When the server (gravity url) is in normal system, it works fine, but when we put the server on Amazon Cloud System, the request always gets timed out.

Does anybody know when a streamwork makeRequest gets timed out ? Do we have to open any ports specifically on the Cloud System for the makeRequest to work ?

Thanks for your time.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Sreekanth,

as far as I know you need to specifically open ports for your instance and Amazon's default policy is quite strict (i.e. only a few ports are open). Make sure you have openened port 80 for HTTP and port 443 for HTTPS. Also, in case your node is running on Linux, double check whether there are any restrictive iptables rules in effect.

Cheers

Simon

Answers (1)

Answers (1)

RuedigerMueller
Advisor
Advisor
0 Kudos

No response back from author