sslmode value;当未编译SSL支持时无效
我正在尝试在AWS Lambda上运行我的Python代码,以将数据发送到Heroku上的Postgres DB。该代码在我的本地中的工作完全很好,但是当我在AWS上测试它时,我会收到此错误消息:
[error] promationalitationalror:sslmode value当未在
fyi 中编译SSL支持时,“需要”无效。 ,我正在使用Psycopg2在Python 3.8上运行此操作,启用sslmode = require
通过PsyCopG2连接Postgres时。
有人遇到过类似的问题吗?
I'm trying to run my python code on AWS Lambda to send data to my postgres DB on Heroku. The code works totally fine in my local, but when I test it on AWS, I keep getting this error message:
[ERROR] OperationalError: sslmode value "require" invalid when SSL support is not compiled in
FYI, I'm running this on python 3.8 with psycopg2, enabling the sslmode=require
when connecting postgres via psycopg2.
Has anyone encountered a similar issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论