Comments (3)
@geclos thanks! This has resolved the issue. 🎉
from latitude.
I have tested a connection to a postgres DB from Heroku (hosted in AWS), and I am getting this error:
source -not real db name, user, pwd -
works fine with Postico and other PG clients from local
from latitude.
Hey @PolGuixe ,
TL;DR
Do this:
ssl:
rejectUnauthorized: false
Long explanation
Your case should already be supported by our Postgres connector.
What is happening is that the default self-signed SSL certificates the postgres connector is using are not supported by your DB. A quick and easy way to fix this is to replace ssl: true
with the following:
ssl:
rejectUnauthorized: false
This will maintain the SSL encryption but will tell your db to not check the certificate validity, which is fine in cases like yours where you control the db and is what most clients do under the hood to simplify configuration for the user. If you want to be more strict and have the db confirm the certificate authority for your SSL connection you can include your OS's CA root store, like so:
ssl:
ca: /etc/ssl/cert.pem # this path will depend on your operating system
You can check a list of OSs and their CA paths in our docs.
A third solution involves using custom keys and certificates provided by your DB provider but I don't think it's worth getting into it since it's almost surely not your case.
from latitude.
Related Issues (20)
- Error when running a CLI command on a Latitude project after changing Node's version HOT 4
- auto update latitude cli
- CLI add pre-check step to confirm we are in a latitude project
- Add a latitude run test in e2e tests
- Add documentation on how to debug views through `{@debug …}` HOT 1
- When creating a new query file, I have to restart the server for it to sync HOT 4
- Clickable charts
- Implement automatic browser refresh when editing queries
- Implement CSV syncing HOT 2
- s/reactiveToParams/reactToParams
- Empty Input components polute the app url HOT 1
- Gracefully shutdown app server
- Latitude server should maintain connectors state between queries
- Add Source maps to CLI Sentry
- Cannot add third party scripts to a latitude view HOT 1
- Would like to see the compiled query for debugging purposes
- Allow full file paths for CLI run command HOT 1
- Improve docs organisation
- Await block prints "pending" contents multiple times
- View Layout is not consistent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from latitude.