You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you don't fill the region, it will throw an error immediately with a null pointer exception and a null value
To Reproduce
set up an Athena and then try to connect Metabase to it (without filling up the region section)
see the error
Expected behavior
It should show the error, and also we should respect the defaults
Logs
2024-05-15 01:20:47,085 ERROR driver.util :: Failed to connect to Database
java.lang.NullPointerException
at clojure.string$starts_with_QMARK_.invokeStatic(string.clj:365)
at clojure.string$starts_with_QMARK_.invoke(string.clj:361)
at metabase.driver.athena$endpoint_for_region.invokeStatic(athena.clj:52)
at metabase.driver.athena$endpoint_for_region.invoke(athena.clj:48)
at metabase.driver.athena$fn__112981.invokeStatic(athena.clj:60)
at metabase.driver.athena$fn__112981.invoke(athena.clj:55)
at clojure.lang.MultiFn.invoke(MultiFn.java:234)
at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection$fn__51120.invoke(connection.clj:315)
at metabase.util.ssh$do_with_ssh_tunnel.invokeStatic(ssh.clj:165)
at metabase.util.ssh$do_with_ssh_tunnel.invoke(ssh.clj:154)
at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection.invokeStatic(connection.clj:314)
at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection.invoke(connection.clj:310)
at metabase.driver.sql_jdbc.connection$can_connect_QMARK_.invokeStatic(connection.clj:339)
at metabase.driver.sql_jdbc.connection$can_connect_QMARK_.invoke(connection.clj:335)
at metabase.driver.sql_jdbc$fn__112862.invokeStatic(sql_jdbc.clj:49)
at metabase.driver.sql_jdbc$fn__112862.invoke(sql_jdbc.clj:47)
at clojure.lang.MultiFn.invoke(MultiFn.java:234)
at metabase.driver.util$can_connect_with_details_QMARK_$fn__60055.invoke(util.clj:148)
at clojure.core$binding_conveyor_fn$fn__5823.invoke(core.clj:2047)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
2024-05-15 01:20:47,088 ERROR api.database :: Cannot connect to Database
java.lang.NullPointerException
at clojure.string$starts_with_QMARK_.invokeStatic(string.clj:365)
at clojure.string$starts_with_QMARK_.invoke(string.clj:361)
at metabase.driver.athena$endpoint_for_region.invokeStatic(athena.clj:52)
at metabase.driver.athena$endpoint_for_region.invoke(athena.clj:48)
at metabase.driver.athena$fn__112981.invokeStatic(athena.clj:60)
at metabase.driver.athena$fn__112981.invoke(athena.clj:55)
at clojure.lang.MultiFn.invoke(MultiFn.java:234)
at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection$fn__51120.invoke(connection.clj:315)
at metabase.util.ssh$do_with_ssh_tunnel.invokeStatic(ssh.clj:165)
at metabase.util.ssh$do_with_ssh_tunnel.invoke(ssh.clj:154)
at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection.invokeStatic(connection.clj:314)
at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection.invoke(connection.clj:310)
at metabase.driver.sql_jdbc.connection$can_connect_QMARK_.invokeStatic(connection.clj:339)
at metabase.driver.sql_jdbc.connection$can_connect_QMARK_.invoke(connection.clj:335)
at metabase.driver.sql_jdbc$fn__112862.invokeStatic(sql_jdbc.clj:49)
at metabase.driver.sql_jdbc$fn__112862.invoke(sql_jdbc.clj:47)
at clojure.lang.MultiFn.invoke(MultiFn.java:234)
at metabase.driver.util$can_connect_with_details_QMARK_$fn__60055.invoke(util.clj:148)
at clojure.core$binding_conveyor_fn$fn__5823.invoke(core.clj:2047)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
2024-05-15 01:20:47,092 DEBUG middleware.log :: POST /api/database 400 8.4 ms (0 DB calls)
{:message nil}
Information about your Metabase installation
v49.x
Severity
P2
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
If you don't fill the region, it will throw an error immediately with a null pointer exception and a null value
To Reproduce
Expected behavior
It should show the error, and also we should respect the defaults
Logs
Information about your Metabase installation
v49.x
Severity
P2
Additional context
No response
The text was updated successfully, but these errors were encountered: