dz902 opened a new issue #12765:
URL: https://github.com/apache/superset/issues/12765


   Hi,
   
   I followed official guide to use `docker-compose` to start superset.
   
   I added "PyAthena>1.2.0" to `./docker/requirements-local.txt` and then 
`docker-compose up`, from the log PyAthena was installed correctly.
   
   Then I access Superset, log in and add an database using connection string 
like 
`awsathena+rest://AKIAXXXX:[email protected]/AwsDataCatalog`,
 only to see:
   
   ```
   HTTP 422
   {
         "message": "Unexpected error occurred, please check your logs for 
details"
   }
   ```
   
   Then I go to the console and only sees:
   
   ```
   DEBUG:superset.models.core:Database.get_sqla_engine(). Masked URL: 
awsathena+rest://AKIAXXXX:[email protected]/AwsDataCatalog
   DEBUG:superset.stats_logger:[stats_logger] (incr) 
DatabaseRestApi.test_connection.error
   DEBUG:superset.stats_logger:[stats_logger] (timing) 
DatabaseRestApi.test_connection.time | 7.465301001502667
   172.19.0.1 - - [26/Jan/2021 09:55:03] "POST /api/v1/database/test_connection 
HTTP/1.1" 422 -
   INFO:werkzeug:172.19.0.1 - - [26/Jan/2021 09:55:03] "POST 
/api/v1/database/test_connection HTTP/1.1" 422 -
   ```
   
   With no further info. No matter what I use for the connection string after 
`rest://` I get the same error.
   
   I searched for a long time and was to no avail.
   
   Is there a way to debug this situation? Thanks.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to