Hello Bubble friends,
My team and I have built a custom backend API and are trying to connect our Bubble app to it via the Bubble API Connector. We are getting this error:
There was an issue setting up your call.
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:1435:22)\n at Promise.block (/home/ec2-user/bubble/lib/u/u.js:2289:18)\n at /home/ec2-user/bubble/lib/apiconnectorbase.js:1518:43\n at Function.Lib.extend (/home/ec2-user/bubble/lib/lib.js:284:14)\n at TestAPICall.calls.TestAPICall.TestAPICall.execute (/home/ec2-user/bubble/lib/apiconnectorbase.js:1485:20)\n at /home/ec2-user/bubble/lib/server/services/api_service.js:41:18\n at Function.Lib.extend (/home/ec2-user/bubble/lib/lib.js:284:14)\n at APIService.module.exports.APIService.doapicallfromserver (/home/ec2-user/bubble/lib/server/services/api_service.js:20:16)\n at APIService.module.exports.APIService.post (/home/ec2-user/bubble/lib/server/services/api_service.js:13:26)\n at ServiceHoster.module.exports.ServiceHoster._call_service (/home/ec2-user/bubble/lib/server/services/service_hoster.js:585:26)\n at ServiceHoster.module.exports.ServiceHoster.request (/home/ec2-user/bubble/lib/server/services/service_hoster.js:606:16)\n at ServiceHoster.module.exports.ServiceHoster.do_request (/home/ec2-user/bubble/lib/server/services/service_hoster.js:160:16)\n at /home/ec2-user/bubble/lib/server/services/service_hoster.js:80:25\n at Function.Lib.with_lib (/home/ec2-user/bubble/lib/lib.js:238:12)\n at /home/ec2-user/bubble/lib/server/services/service_hoster.js:49:22\n at run_fn (/home/ec2-user/bubble/lib/u/u.js:1162:9)\n”}},“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)\n”}
Could you please explain why we are getting this error and how to resolve it?
Thank you!