Error: Unable to completely restore the URL, be sure to use the share functionality

Hello guys.
Can you help me to figure out the problem with Share functionality.
OS and OS dashboards version 2.14.0
With the enabled function Store URLs in session storage, I got such an error:

Error: Unable to completely restore the URL, be sure to use the share functionality.
    at throwUnableToRestoreUrlError (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:120289)
    at retrieveState (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:120559)
    at decodeState (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:121652)
    at https://opensearch.dev.leoncorp.net/7640/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:124726
    at Array.forEach (<anonymous>)
    at getStatesFromOsdUrl (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:124680)
    at getStateFromOsdUrl (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:124889)
    at Object.get (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:131972)
    at connectStorageToQueryState (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/data/data.plugin.js:1:120720)
    at TopNav (https://opensearch.dev.leoncorp.net/7640/bundles/plugin/discover/discover.chunk.4.js:1:40066)

I didn’t face such an issue with version 2.2.0

Hi @StanisLav,

Do you have a Short URL enabled?

image

This could be caused by the URL being too long.

You might be interested in this as well: [BUG] Read only user cannot create Short URL's · Issue #891 · opensearch-project/security-dashboards-plugin · GitHub

Best,
mj

Hi,
Thanks for the swift reply.

The error above happens when I use a Short URL.

Also, I’m not a READ-Only user.

Opensearch Dashboards version 2.16.0
Store URLs in session storage is enabled.

Made a Short Url
image

But getting error when I follow the link. in general, the link doesn’t open my saves

Error: Unable to completely restore the URL, be sure to use the share functionality.
    at throwUnableToRestoreUrlError (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:117886)
    at retrieveState (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:118156)
    at decodeState (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:119249)
    at https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:122323
    at Array.forEach (<anonymous>)
    at getStatesFromOsdUrl (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:122277)
    at getStateFromOsdUrl (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:122486)
    at Object.get (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js:1:129569)
    at connectStorageToQueryState (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/data/data.plugin.js:1:378204)
    at TopNav (https://opensearch-test.dev.leoncorp.net/7858/bundles/plugin/discover/discover.chunk.4.js:1:42603)

I did a full removal and installation of OS Dash process, but it didn’t help.
Short Url Share functionality works good in 2.9.0 version but versions 2.14-16 show error