GitHub user georgeteena created a discussion: Show friendly error when Superset 
unable to connect to backing database

Hi @dosu,

How to wrap the actual error in a friendly message when connection to backing 
database fails?

Current error in charts:
```

DB engine Error
(psycopg2.OperationalError) connection to server at "database host" 
(xxx.yy.xxx.yyy), port xxxx failed: FATAL: password authentication failed for 
user "xxxx-yyyy-sssss-hhhh"

(Background on this error at: https://sqlalche.me/e/14/e3q8)
This may be triggered by:
Issue 1011 - Superset encountered an unexpected error. 

Please reach out to the Chart Owner for assistance.
```

I would like to wrap this error into a Network error or Bad Gateway error 
without disclosing the database host/port/user details.


GitHub link: https://github.com/apache/superset/discussions/40881

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to