Getting error while creating Dashboard through API

Getting following errors while creating dashboard through API in the logs. These errors are intermittent.

2021-07-02 05:47:44,610 DEBUG middleware.log :: POST /api/dashboard 200 19.7 ms (5 DB calls) App DB connections: 2/7 Jetty threads: 3/50 (9 idle, 0 queued) (56 total active threads) Queries in flight: 0 (0 queued)
2021-07-02 05:47:44,638 WARN events.revision :: Failed to process revision event. :dashboard-create #error {
:cause Assert failed: (map? object)
[{:type java.lang.AssertionError
:message Assert failed: (map? object)
:at [metabase.models.revision$push_revision_BANG_ invokeStatic revision.clj 129]}]
[[metabase.models.revision$push_revision_BANG_ invokeStatic revision.clj 129]
[metabase.models.revision$push_revision_BANG_ doInvoke revision.clj 129]
[clojure.lang.RestFn invoke 1096]
[$process_revision_event_BANG_ invokeStatic revision.clj 53]
[$process_revision_event_BANG_ invoke revision.clj 35]
[$start_event_listener_BANG_$fn__27676$state_machine__5617__auto____27683$fn__27686 invoke events.clj 98]
[$start_event_listener_BANG_$fn__27676$state_machine__5617__auto____27683 invoke events.clj 98]
[clojure.core.async.impl.ioc_macros$run_state_machine invokeStatic ioc_macros.clj 973]
[clojure.core.async.impl.ioc_macros$run_state_machine invoke ioc_macros.clj 972]
[clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invokeStatic ioc_macros.clj 977]
[clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invoke ioc_macros.clj 975]
[clojure.core.async.impl.ioc_macros$take_BANG_$fn__5635 invoke ioc_macros.clj 986]
[clojure.core.async.impl.channels.ManyToManyChannel$fn__495 invoke channels.clj 135]
[clojure.lang.AFn run 22]
[java.util.concurrent.ThreadPoolExecutor runWorker nil -1]
[java.util.concurrent.ThreadPoolExecutor$Worker run nil -1]
[java.lang.Thread run nil -1]]}

Branch: release-x.38.x

Hash: 0635914

Hi @vivek295
Try upgrading to a later release. You are using
If the errors are randomly happening, then it might be caused by a reverse-proxy:

@flamber In production we are using v1.36.6.4, so i tried using v1.38.0.1 in development but we are still facing this issue, can you suggest which version should we try ?. Also while sending the dashboard create request, Dashboard is created but we are seeing this error.

@vivek295 If you are using the Enterprise Edition, then please use the support email.

So do you have a reverse-proxy (CDN, WAF, etc)? If yes, then those can cause some really strange issues.

But since it sounds like it's only happening with the API requests you make, then I guess there's something wrong in those.
The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received.

I will always recommend using the latest release unless you're facing some specific issue on newer versions.So that would be 1.39.4 currently (and likely soon 1.39.5 and 1.40.0):

1 Like