GitHub user dosubot[bot] added a comment to the discussion: Error in sql lab at
Superset 5.0.0
<!-- Answer -->
That error is likely because your connect_args structure is not what Superset
or the underlying database driver expects. Instead of nesting your S3
credentials under a config key, you should provide them as top-level key-value
pairs inside connect_args. For example, if you're connecting to Athena, it
should look like:
```json
{
"engine_params": {
"connect_args": {
"aws_access_key_id": "access",
"aws_secret_access_key": "secret"
}
}
}
```
The exact keys may vary depending on your database and driver, but generally,
connect_args should not have a config wrapper—just the credentials directly. If
you let me know which database engine you're using, I can give you a more
specific example.
For more details, see how Superset expects connect_args to be structured in
[the code and
docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/databases/schemas.py).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/be986274-92e8-4ee2-99a0-9ae4fa4e385b?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/be986274-92e8-4ee2-99a0-9ae4fa4e385b?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/be986274-92e8-4ee2-99a0-9ae4fa4e385b?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/be986274-92e8-4ee2-99a0-9ae4fa4e385b?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/be986274-92e8-4ee2-99a0-9ae4fa4e385b?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/be986274-92e8-4ee2-99a0-9ae4fa4e385b?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/be986274-92e8-4ee2-99a0-9ae4fa4e385b?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34651)
GitHub link:
https://github.com/apache/superset/discussions/34651#discussioncomment-14080556
----
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]