boazreicher / mosaic-plot

Apache License 2.0
9 stars 2 forks source link

TypeError: Ee.P.api is undefined #10

Open Lumiukko opened 2 months ago

Lumiukko commented 2 months ago

I am getting a TypeError: Ee.P.api is undefined when chosing a Mosaic visualization and then changing any of the options or entering some query for a postgreSQL data source.

I am using Grafana 10.4.0.

The rest of the error message is rather cryptic and contains seemingly random JS files with high line-numbers, but if you tell me how I can provide you with more information on how to fix it, I'd be happy to.

boazreicher commented 2 months ago

Hi @Lumiukko , can you provide a screenshot/paste of the full error message? Also, by hanging any of the options are you referring to the options in the postgresql datasource, or in the Mosaic plot configuration?

Lumiukko commented 2 months ago

I was referring to the Mosaic plot configuration on the right side. As soon as I change anything in that panel, the error occurs. It also happens when I enter some query in the bottom configuration, for example an SQL query.

The full error message reads like this (domain.com was chosen to censor the original URL):

ypeError: Ee.P.api is undefined

r@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:194:122062
div
div
x@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:214:30846
It@http://domain.com:8443/public/build/9569.a8d60b39654a160cb917.js:1:17495
Ce@http://domain.com:8443/public/build/9569.a8d60b39654a160cb917.js:1:26196
at@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:412:32691
div
div
div
b@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:454:100807
div
div
div
o@http://domain.com:8443/public/build/660.838743295c2108f3492d.js:1:2300
div
o@http://domain.com:8443/public/build/660.838743295c2108f3492d.js:1:4288
N@http://domain.com:8443/public/build/660.838743295c2108f3492d.js:1:9622
div
o@http://domain.com:8443/public/build/660.838743295c2108f3492d.js:1:2300
div
o@http://domain.com:8443/public/build/660.838743295c2108f3492d.js:1:4288
N@http://domain.com:8443/public/build/660.838743295c2108f3492d.js:1:9622
div
div
div
L@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:357:21098
Bn@http://domain.com:8443/public/build/DashboardPageProxy.9a6d60e5cac89c11c71c.js:130:526
at@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:412:32691
WithTheme(Connect(Bn))
yt@http://domain.com:8443/public/build/DashboardPageProxy.9a6d60e5cac89c11c71c.js:205:472
DashboardPage
at@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:412:32691
ms@http://domain.com:8443/public/build/DashboardPageProxy.9a6d60e5cac89c11c71c.js:205:6297
Suspense
r@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:194:122062
Ru@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:5705:9531
I@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:444:29242
di@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:435:4481
ni@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:435:12022
ht@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:444:17401
I@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:444:31410
div
div
main
div
Xf@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:5705:2385
di@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:435:4481
ni@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:435:12022
cr@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:435:11439
Hn@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:444:17692
I@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:444:25474
div
o@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:214:13882
h@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:136:9122
f@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:773:96558
d@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:499:21142
r@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:194:122062
g@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:194:122571
it@http://domain.com:8443/public/build/3644.93bade7d48e3d75173f7.js:416:521
mg@http://domain.com:8443/public/build/5017.830b14490d17e9cbdabb.js:5716:122
boazreicher commented 2 months ago

yeah... that error message doesn't really contain any useful information... I'll try to setup a local environment with the postgreSQL data source and the same Grafana version and see if I can reproduce.

Lumiukko commented 2 months ago

Yup, that's why I called it cryptic :D

I'm not sure if the data source is the issue here, but I am not that familiar with the Grafana ecosystem and was hoping someone already knew what may be the issue. I'd also be happy to help test possible solutions, re-installing.

My Grafana installation is running in a docker container (with the Grafana 10.4.0 image from docker hub), where I basically copied the folder into the respective plugin folder. Perhaps here something went wrong.

boazreicher commented 2 months ago

Can you test it with the TestData datasource? That way we can tell if the issue is related to the postgreSQL datasource

Lumiukko commented 2 months ago

It works with "Random Walk" from the TestData data source, but if I choose certain types, this error occurs again, one of them was "No Data" and another was "USA generated data".

boazreicher commented 1 month ago

but if I choose certain types, this error occurs again, one of them was "No Data" and another was "USA generated data".

Does that mean you see the TypeError: Ee.P.api is undefined error with the TestData datasource, or only the other errors (which are expected, those types would require certain transforms)

Lumiukko commented 1 month ago

It is exactly the same error as above.

When the data does not match the expected format and has to be transformed first, I usually get the option to display the data as a table, but there is no "crash" with an error message.

I have attached a screenshot showing the error above (pixelized the domain, though).

Screenshot 2024-06-03 at 17-10-00 Grafana

boazreicher commented 1 month ago

It is exactly the same error as above.

When the data does not match the expected format and has to be transformed first, I usually get the option to display the data as a table, but there is no "crash" with an error message.

I have attached a screenshot showing the error above (pixelized the domain, though).

Screenshot 2024-06-03 at 17-10-00 Grafana

I'm able to reproduce the error now 👍 . Will take a look into it.

boazreicher commented 1 month ago

Hi @Lumiukko , it looks like this error is due to panel monitoring feature from about 8 months ago.

I verified that if I disable that feature, I don't get the error anymore.

To disable it, just add panelMonitoring = false in your .ini configuration file