간단한 Node-Red 플로우에서 RESTful 서비스 (내 도메인 외부)를 호출하려고합니다.오류 : 노드 - 빨간색의 첫 번째 인증서를 확인할 수 없습니다.
서비스를 호출하는 기능 :
그럼에도var data = {};
data[“someparameter”] = “somevalue”;
msg.method = "POST";
msg.headers = { "Content-Type": "application/json" };
msg.payload = JSON.stringify(data);
msg.url = "https://myserviceip/myendpoint/mymethod”;
return msg;
난 다음 오류 얻을 :
"Error: unable to verify the first certificate : https://myserviceip/myendpoint/mymethod"
가 MSG 설정 .rejectUnauthorized 헤더에서 false로 작동하지 않습니다.
msg.rejectUnauthorized = false; // to avoid the error but it does not work
여기에 더 많은 정보가 필요합니다. 기능 노드가 http 요청 노드에 공급되고 있다고 가정합니까? – hardillb
감사합니다 @ 할드 리, 요청에 따라 흐름이 추가되었습니다 – Future2020