Hi,
When I try to access /api/docs I get this error, does anyone know how to do this?
Error loading the spec
https://metabase.xxxxx.xxxx/api/docs/openapi.json ┃ 500 Server Error
Log :
[5ddb55bd-f115-428c-bcc9-fd013704e7df] 2024-08-27T15:31:18+02:00 DEBUG metabase.server.middleware.log GET /api/docs/ 200 850,8 µs (0 appels de DB) Connexions App DB : 0/7 Threads Jetty : 4/50 (3 inactif, 0 en file d'attente) (37 total de threads actifs) Requêtes en cours : 0 (0 en file d'attente) {:metabase-user-id 108}
[5ddb55bd-f115-428c-bcc9-fd013704e7df] 2024-08-27T15:31:18+02:00 DEBUG metabase.server.middleware.log GET /api/docs/rapidoc-min.js 200 828,8 µs (0 appels de DB) Connexions App DB : 0/7 Threads Jetty : 4/50 (3 inactif, 0 en file d'attente) (37 total de threads actifs) Requêtes en cours : 0 (0 en file d'attente) {:metabase-user-id 108}
[5ddb55bd-f115-428c-bcc9-fd013704e7df] 2024-08-27T15:31:19+02:00 ERROR metabase.server.middleware.log GET /api/docs/openapi.json 500 172,2 ms (0 appels de DB) {:metabase-user-id 108}
{:via
[{:type clojure.lang.ExceptionInfo,
:message "Exception at /api-key/count",
:data {},
:at [metabase.api.common.openapi$openapi_object$iter__44994__44998$fn__44999$fn__45006 invoke "openapi.clj" 200]}
{:type java.lang.IllegalArgumentException,
:message "Don't know how to create ISeq from: clojure.lang.Symbol",
:at [clojure.lang.RT seqFrom "RT.java" 557]}],
:trace
[[clojure.lang.RT seqFrom "RT.java" 557]
[clojure.lang.RT seq "RT.java" 537]
[clojure.lang.RT keys "RT.java" 624]
[clojure.core$keys invokeStatic "core.clj" 1574]
[clojure.core$keys invoke "core.clj" 1570]
[metabase.api.common.openapi$compojure_renames invokeStatic "openapi.clj" 139]
[metabase.api.common.openapi$compojure_renames invoke "openapi.clj" 133]
[metabase.api.common.openapi$schema__GT_params invokeStatic "openapi.clj" 151]
[metabase.api.common.openapi$schema__GT_params invoke "openapi.clj" 144]
[metabase.api.common.openapi$defendpoint__GT_path_item invokeStatic "openapi.clj" 168]
[metabase.api.common.openapi$defendpoint__GT_path_item invoke "openapi.clj" 162]
[metabase.api.common.openapi$openapi_object$iter__44994__44998$fn__44999$fn__45006 invoke "openapi.clj" 198]
[metabase.api.common.openapi$openapi_object$iter__44994__44998$fn__44999 invoke "openapi.clj" 197]
[clojure.lang.LazySeq sval "LazySeq.java" 42]
[clojure.lang.LazySeq seq "LazySeq.java" 51]
[clojure.lang.Cons next "Cons.java" 39]
[clojure.lang.RT next "RT.java" 713]
[clojure.core$next__5451 invokeStatic "core.clj" 64]
[clojure.core.protocols$fn__8249 invokeStatic "protocols.clj" 169]
[clojure.core.protocols$fn__8249 invoke "protocols.clj" 124]
[clojure.core.protocols$fn__8204$G__8199__8213 invoke "protocols.clj" 19]
[clojure.core.protocols$seq_reduce invokeStatic "protocols.clj" 31]
[clojure.core.protocols$fn__8236 invokeStatic "protocols.clj" 75]
[clojure.core.protocols$fn__8236 invoke "protocols.clj" 75]
[clojure.core.protocols$fn__8178$G__8173__8191 invoke "protocols.clj" 13]
[clojure.core$reduce invokeStatic "core.clj" 6887]
[clojure.core$reduce invoke "core.clj" 6869]
[metabase.api.common.openapi$openapi_object invokeStatic "openapi.clj" 193]
[metabase.api.common.openapi$openapi_object invoke "openapi.clj" 186]
[metabase.api.routes$fn__104839 invokeStatic "routes.clj" 94]
[metabase.api.routes$fn__104839 invoke "routes.clj" 75]
[compojure.core$wrap_response$fn__52597 invoke "core.clj" 160]
[compojure.core$wrap_route_middleware$fn__52581 invoke "core.clj" 132]
[compojure.core$wrap_route_info$fn__52586 invoke "core.clj" 139]
[compojure.core$wrap_route_matches$fn__52590 invoke "core.clj" 151]
[clojure.lang.Var invoke "Var.java" 393]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609$f__52610$respond_SINGLEQUOTE___52611 invoke "core.clj" 197]
[metabase.api.routes$fn__104832$fn__104835 invoke "routes.clj" 73]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609 invoke "core.clj" 200]
[clojure.lang.AFn applyToHelper "AFn.java" 160]
[clojure.lang.AFn applyTo "AFn.java" 144]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.core$apply invoke "core.clj" 662]
[metabase.server.routes$fn__105112$fn__105113 doInvoke "routes.clj" 73]
[clojure.lang.RestFn invoke "RestFn.java" 436]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609 invoke "core.clj" 200]
[compojure.core$make_context$handler__52637 invoke "core.clj" 290]
[compojure.core$make_context$fn__52641 invoke "core.clj" 300]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609$f__52610$respond_SINGLEQUOTE___52611 invoke "core.clj" 197]
[compojure.core$wrap_route_matches$fn__52590 invoke "core.clj" 153]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609$f__52610$respond_SINGLEQUOTE___52611 invoke "core.clj" 197]
[compojure.core$wrap_route_matches$fn__52590 invoke "core.clj" 152]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609$f__52610$respond_SINGLEQUOTE___52611 invoke "core.clj" 197]
[compojure.core$wrap_route_matches$fn__52590 invoke "core.clj" 152]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609$f__52610$respond_SINGLEQUOTE___52611 invoke "core.clj" 197]
[compojure.core$wrap_route_matches$fn__52590 invoke "core.clj" 152]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609$f__52610$respond_SINGLEQUOTE___52611 invoke "core.clj" 197]
[metabase.server.routes$fn__105095$fn__105097 invoke "routes.clj" 47]
[compojure.core$routes$fn__52609$f__52610 invoke "core.clj" 198]
[compojure.core$routes$fn__52609 invoke "core.clj" 200]
[metabase.server.middleware.exceptions$catch_uncaught_exceptions$fn__101212 invoke "exceptions.clj" 107]
[metabase.server.middleware.exceptions$catch_api_exceptions$fn__101209 invoke "exceptions.clj" 96]
[metabase.server.middleware.log$log_api_call$fn__105392$fn__105393$fn__105394 invoke "log.clj" 233]
[metabase.driver.sql_jdbc.execute.diagnostic$do_with_diagnostic_info invokeStatic "diagnostic.clj" 18]
[metabase.driver.sql_jdbc.execute.diagnostic$do_with_diagnostic_info invoke "diagnostic.clj" 12]
[metabase.server.middleware.log$log_api_call$fn__105392$fn__105393 invoke "log.clj" 224]
[toucan2.execute$do_with_call_counts invokeStatic "execute.clj" 112]
[toucan2.execute$do_with_call_counts invoke "execute.clj" 103]
[metabase.server.middleware.log$log_api_call$fn__105392 invoke "log.clj" 223]
[metabase.server.middleware.browser_cookie$ensure_browser_id_cookie$fn__108665 invoke "browser_cookie.clj" 40]
[metabase.server.middleware.security$add_security_headers$fn__101168 invoke "security.clj" 240]
[ring.middleware.json$wrap_json_body$fn__108924 invoke "json.clj" 64]
[metabase.server.middleware.offset_paging$handle_paging$fn__87411 invoke "offset_paging.clj" 43]
[metabase.server.middleware.json$wrap_streamed_json_response$fn__54215 invoke "json.clj" 83]
[ring.middleware.keyword_params$wrap_keyword_params$fn__109013 invoke "keyword_params.clj" 55]
[ring.middleware.params$wrap_params$fn__109032 invoke "params.clj" 77]
[metabase.server.middleware.misc$maybe_set_site_url$fn__70768 invoke "misc.clj" 59]
[metabase.server.middleware.session$reset_session_timeout$fn__77778 invoke "session.clj" 548]
[metabase.server.middleware.session$bind_current_user$fn__77744$fn__77745 invoke "session.clj" 443]
[metabase.server.middleware.session$do_with_current_user invokeStatic "session.clj" 422]
[metabase.server.middleware.session$do_with_current_user invoke "session.clj" 405]
[metabase.server.middleware.session$bind_current_user$fn__77744 invoke "session.clj" 442]
[metabase.server.middleware.session$wrap_current_user_info$fn__77723 invoke "session.clj" 381]
[metabase.server.middleware.session$wrap_session_id$fn__77695 invoke "session.clj" 259]
[metabase.server.middleware.auth$wrap_static_api_key$fn__97247 invoke "auth.clj" 32]
[ring.middleware.cookies$wrap_cookies$fn__108852 invoke "cookies.clj" 200]
[metabase.server.middleware.misc$add_content_type$fn__70750 invoke "misc.clj" 28]
[metabase.server.middleware.misc$disable_streaming_buffering$fn__70776 invoke "misc.clj" 75]
[ring.middleware.gzip$wrap_gzip$fn__108894 invoke "gzip.clj" 86]
[metabase.server.middleware.misc$bind_request$fn__70779 invoke "misc.clj" 91]
[metabase.server.middleware.ssl$redirect_to_https_middleware$fn__108681 invoke "ssl.clj" 51]
[metabase.server$async_proxy_handler$fn__71114 invoke "server.clj" 77]
[metabase.server.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a handle nil -1]
[org.eclipse.jetty.server.handler.StatisticsHandler handle "StatisticsHandler.java" 173]
[org.eclipse.jetty.server.handler.HandlerWrapper handle "HandlerWrapper.java" 122]
[org.eclipse.jetty.server.Server handle "Server.java" 563]
[org.eclipse.jetty.server.HttpChannel$RequestDispatchable dispatch "HttpChannel.java" 1598]
[org.eclipse.jetty.server.HttpChannel dispatch "HttpChannel.java" 753]
[org.eclipse.jetty.server.HttpChannel handle "HttpChannel.java" 501]
[org.eclipse.jetty.server.HttpConnection onFillable "HttpConnection.java" 287]
[org.eclipse.jetty.io.AbstractConnection$ReadCallback succeeded "AbstractConnection.java" 314]
[org.eclipse.jetty.io.FillInterest fillable "FillInterest.java" 100]
[org.eclipse.jetty.io.SelectableChannelEndPoint$1 run "SelectableChannelEndPoint.java" 53]
[org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy runTask "AdaptiveExecutionStrategy.java" 421]
[org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy consumeTask "AdaptiveExecutionStrategy.java" 390]
[org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy tryProduce "AdaptiveExecutionStrategy.java" 277]
[org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy run "AdaptiveExecutionStrategy.java" 199]
[org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread run "ReservedThreadExecutor.java" 411]
[org.eclipse.jetty.util.thread.QueuedThreadPool runJob "QueuedThreadPool.java" 969]
[org.eclipse.jetty.util.thread.QueuedThreadPool$Runner doRunJob "QueuedThreadPool.java" 1194]
[org.eclipse.jetty.util.thread.QueuedThreadPool$Runner run "QueuedThreadPool.java" 1149]
[java.lang.Thread run "Thread.java" 829]],
:cause "Don't know how to create ISeq from: clojure.lang.Symbol",
:message "Exception at /api-key/count"}
Thanks for your help,