parse.com - Parse Cloud Code authentication issue -


i have cloud code function makes request external api.

i passing api key in header required third party api. when perform same request using curl response expected , relevant data returned.

when call in cloud code following error:

request failed; 60-111 peer certificate cannot authenticated given ca certificates; connection refused

my cloud code looks this:

parse.cloud.httprequest({     url: "https://api.endpoint.url",     headers: {         "apikey": "api-key-example"     } }).then(function(httpresponse){     console.log(httpresponse);     response.success(httpresponse.text); }, function(err){     console.log(err);     response.error(err); }); 


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -