geosolutions-it / MapStore2-C028

Sistema Informativo Territoriale del Comune di Bolzano
Other
2 stars 8 forks source link

Problem creating widgets in Dashboard #118

Closed tdipisa closed 4 years ago

tdipisa commented 4 years ago

A problem occurs when you create a Chart, Table or Counter widgets:

image.png

If you then click on reload button the loaded URL is wrong:

http://geoserv02:8083/

It should be the following in test:

https://sit.comune.bolzano.it/mapstore3/#/

The error in console is:

Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Bdefault%2C%20it-IT%2C%20de-DE%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at _i (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at MapStore-C028.js?4b919cb0a198eb5e907e:100
    at xa (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at Is (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at tl (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at $s (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at zs (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at MapStore-C028.js?4b919cb0a198eb5e907e:100
    at t.unstable_runWithPriority (MapStore-C028.js?4b919cb0a198eb5e907e:108)
    at No (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at Uo (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at Bo (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at Ns (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at Object.enqueueSetState (MapStore-C028.js?4b919cb0a198eb5e907e:100)
    at r._.setState (MapStore-C028.js?4b919cb0a198eb5e907e:92)
    at Object.next (MapStore-C028.js?4b919cb0a198eb5e907e:19)
tdipisa commented 4 years ago

@gitcontributor the problem doesn't sems properly solved in test here

  1. click the button in home to create a new dashboard
  2. open the widgets list to create a chart
  3. click on chart (but also with counter or table is the same)
  4. the layer list is now loaded
  5. try to search "quartieri"

Expected result: I can create and configure my widgets without errors

Current result: The gray screen appears and the following error occurs:

MapStore-C028.js?c40411e8cb852e9e5a08:100 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Bdefault%2C%20it-IT%2C%20de-DE%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at _i (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at MapStore-C028.js?c40411e8cb852e9e5a08:100
    at xa (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at Is (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at tl (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at $s (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at zs (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at MapStore-C028.js?c40411e8cb852e9e5a08:100
    at t.unstable_runWithPriority (MapStore-C028.js?c40411e8cb852e9e5a08:108)
    at No (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at Uo (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at Bo (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at Ns (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at Object.enqueueSetState (MapStore-C028.js?c40411e8cb852e9e5a08:100)
    at r._.setState (MapStore-C028.js?c40411e8cb852e9e5a08:92)
    at Object.next (MapStore-C028.js?c40411e8cb852e9e5a08:19)

If I try to search for other layers the error doesn't occurs, why?

Finally, when the gray screen appears, if I click on reload I'm redirected to a wrong URL: https://sit.comune.bolzano.it/

That shoud be the following one instead: https://sit.comune.bolzano.it/mapstore3/

MV88 commented 4 years ago

a new deploy is needed