Hello,
I am getting an issue when going for the API call from the API connector plugin while it’s working from the postman and web browser.
Raw error for the API
{“message”:“unable to verify the first certificate”,“args”:{“origin”:“native error”,“code”:“UNABLE_TO_VERIFY_LEAF_SIGNATURE”,“outer_stack”:{“message”:".wait() was called here",“args”:{},“stack”:“UnexpectedError .wait() was called here\n at Block.wait (/home/ec2-user/bubble/lib/u/u.js:1389:24)\n at Promise.block (/home/ec2-user/bubble/lib/u/u.js:2213:20)\n at /home/ec2-user/bubble/lib/apiconnectorbase.js:1510:45\n at Function.Lib.extend (/home/ec2-user/bubble/lib/lib.js:270:16)\n at TestAPICall.calls.TestAPICall.TestAPICall.execute (/home/ec2-user/bubble/lib/apiconnectorbase.js:1477:22)\n at /home/ec2-user/bubble/lib/server/services/api_service.js:42:20\n at Function.Lib.extend (/home/ec2-user/bubble/lib/lib.js:270:16)\n at APIService.module.exports.APIService.doapicallfromserver (/home/ec2-user/bubble/lib/server/services/api_service.js:21:18)\n at APIService.module.exports.APIService.post (/home/ec2-user/bubble/lib/server/services/api_service.js:14:28)\n at ServiceHoster.module.exports.ServiceHoster.request (/home/ec2-user/bubble/lib/server/services/service_hoster.js:486:28)\n at ServiceHoster.module.exports.ServiceHoster.do_request (/home/ec2-user/bubble/lib/server/services/service_hoster.js:110:18)\n at /home/ec2-user/bubble/lib/server/services/service_hoster.js:59:27\n at Function.Lib.with_lib (/home/ec2-user/bubble/lib/lib.js:224:14)\n at /home/ec2-user/bubble/lib/server/services/service_hoster.js:34:24\n at run_fn (/home/ec2-user/bubble/lib/u/u.js:1121:11)”}},“stack”:“Error: unable to verify the first certificate\n at TLSSocket.onConnectSecure (_tls_wrap.js:1051:34)\n at TLSSocket.emit (events.js:189:13)\n at TLSSocket.EventEmitter.emit (domain.js:441:20)\n at TLSSocket._finishInit (_tls_wrap.js:633:8)”}
any solution? I am new there on.
Thanks.