Trying to fetch json from my own server, which has domain name and purchased ssl certificate (Not self-signed). Returns value -300 (NETWORK_REQUEST_TIMED_OUT), but when I upload my json to online json storage (npoint.io) and fetch my json from that storage everything works perfectly.
Nothing comes to my apache2 log files, but tcpdump shows traffic when I try to fetch json from my server. And everything works fine when I run my program on PC (SDK) but not on physical Watch.
Could this still be certificate problem? Now I have SSL certs from Namecheap, tried also SSLforfree certificates but no effect.
function makeRequest() {
var url = URL;
var params = null;
var options = {
:method => Communications.HTTP_REQUEST_METHOD_GET,
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
};
var responseCallback = method(:onReceive);
Communications.makeWebRequest(url, params, options, method(:onReceive));
}