Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: silence postgrex errors for database errors #2255

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

Ziinc
Copy link
Contributor

@Ziinc Ziinc commented Nov 6, 2024


15:20:28.535 [error] :gen_statem #PID<0.1682.0> terminating
** (RuntimeError) connect raised KeyError exception: key :database not found. The exception details are hidden, as they may contain sensitive data such as database credentials. You may set :show_sensitive_data_on_connection_error to true when starting your connection if you wish to see all of the details
    (elixir 1.17.3) lib/keyword.ex:602: Keyword.fetch!/2
    (postgrex 0.17.3) lib/postgrex/protocol.ex:163: Postgrex.Protocol.connect_endpoints/6
    (db_connection 2.6.0) lib/db_connection/connection.ex:92: DBConnection.Connection.handle_event/4
    (stdlib 6.1.2) gen_statem.erl:3737: :gen_statem.loop_state_callback/11
    (stdlib 6.1.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
Queue: [internal: {:connect, :init}]
Postponed: []

This PR fixes this test error.

@Ziinc Ziinc merged commit 606bf5d into main Nov 6, 2024
5 checks passed
@Ziinc Ziinc deleted the chore/silence-postgrex-errors branch November 6, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant