Error on Variable

When I tried to Field to map to a variable to field value, metabase crashed. version 0.46

please post the entire reproduction steps, I don't understand the context of "Field to map to a variable to field value"

@Luiggi For example, after creating a question, I want to add a filter in variable. when I select Variable Type as Field Filter, The system get crashed.
Screenshot from 2023-04-03 12-22-28

You say that it crashes, can you post errors? entire reproduction steps?

Uncaught TypeError: Cannot read properties of null (reading 'offsetHeight') at s.value (NativeQueryEditor.jsx:442:29) at s.value (NativeQueryEditor.jsx:457:12) at c (debounce.js:17:37) react-dom.production.min.js:49 Uncaught Error: Minified React error #188; visit https://reactjs.org/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at react-dom.production.min.js:49:67 at it (react-dom.production.min.js:50:217) at t.findDOMNode (react-dom.production.min.js:289:336) at h.value (ExplicitSize.jsx:39:25) at ExplicitSize.jsx:126:30 at c (debounce.js:17:37) VM1943 react_devtools_backend.js:2655 TypeError: Cannot read properties of null (reading 'toLowerCase') at Object.humanize (inflection.js:828:17) at s (strings.ts:34:10) at i.value (Schema.ts:18:21) at DataSelectorSchemaPicker.tsx:33:22 at Array.map () at Ke (DataSelectorSchemaPicker.tsx:32:22) at Jo (react-dom.production.min.js:153:146) at ya (react-dom.production.min.js:261:496) at mc (react-dom.production.min.js:246:265) at bc (react-dom.production.min.js:246:194)


To reproduce:

  1. Make a native query with a variable
  2. Go to variable type to connect the variable with table field
  3. Click on drop down & select field filter
  4. See error

Metabase info:

{ "browser-info": { "language": "en-US", "platform": "Linux x86_64", "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", "vendor": "Google Inc." }, "system-info": { "file.encoding": "UTF-8", "java.runtime.name": "OpenJDK Runtime Environment", "java.runtime.version": "11.0.18+10", "java.vendor": "Eclipse Adoptium", "java.vendor.url": "https://adoptium.net/", "java.version": "11.0.18", "java.vm.name": "OpenJDK 64-Bit Server VM", "java.vm.version": "11.0.18+10", "os.name": "Linux", "os.version": "5.15.0-46-generic", "user.language": "en", "user.timezone": "GMT" }, "metabase-info": { "databases": [ "h2", "mongo" ], "hosting-env": "unknown", "application-database": "h2", "application-database-details": { "database": { "name": "H2", "version": "2.1.212 (2022-04-09)" }, "jdbc-driver": { "name": "H2 JDBC Driver", "version": "2.1.212 (2022-04-09)" } }, "run-mode": "prod", "version": { "date": "2023-03-28", "tag": "v0.46.0", "branch": "release-x.46.x", "hash": "0ca7df3" }, "settings": { "report-timezone": null } } }


Note: It doesn't show any error on sample dataset, but getting error on my own dataset. It will be helpful if you can suggest the way how to fix this.

I have tried this on a local machine and can't reproduce what you're seeing, that's why I asked for reproduction steps with the sample dataset

Same error here. Not reproducible on Sample Database. Seems to be an issue with Mongo

[510a77c6-8b5a-42d8-a254-21335c94f966] 2023-04-06T11:31:15+02:00 INFO metabase.server.middleware.exceptions Request canceled before finishing.
[510a77c6-8b5a-42d8-a254-21335c94f966] 2023-04-06T11:31:15+02:00 INFO metabase.server.middleware.exceptions Request canceled before finishing.
[510a77c6-8b5a-42d8-a254-21335c94f966] 2023-04-06T11:31:15+02:00 INFO metabase.server.middleware.exceptions Request canceled before finishing.
[510a77c6-8b5a-42d8-a254-21335c94f966] 2023-04-06T11:31:15+02:00 INFO metabase.server.middleware.exceptions Request canceled before finishing.
[510a77c6-8b5a-42d8-a254-21335c94f966] 2023-04-06T11:31:15+02:00 INFO metabase.server.middleware.exceptions Request canceled before finishing.
[510a77c6-8b5a-42d8-a254-21335c94f966] 2023-04-06T11:31:15+02:00 INFO metabase.server.middleware.exceptions Request canceled before finishing.

{
"browser-info": {
"language": "en",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.18+10",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.18",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.18+10",
"os.name": "Linux",
"os.version": "5.10.162+",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"mongo",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "14.1 (Debian 14.1-1.pgdg110+1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.5.1"
}
},
"run-mode": "prod",
"version": {
"date": "2023-03-28",
"tag": "v0.46.0",
"branch": "release-x.46.x",
"hash": "0ca7df3"
},
"settings": {
"report-timezone": null
}
}
}

any help? With this problem i can't edit existing dashboards

you're seeing Adding more than one field filter blows up the frontend in Mongo and MySQL · Issue #29786 · metabase/metabase · GitHub

1 Like

The same here. It seems to be fixed in 0.46.2.

We now must wait release.

Do we have any ETA for this release?

Thanks in advance!
Regards,

It’s going to be released soon, we want to make sure everything works

Thank you @Luiggi, we're really looking forward to it.

Regards,