Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: rison decoder error: missing ':' #75957

Closed
jujis008 opened this issue Aug 26, 2020 · 9 comments
Closed

Error: rison decoder error: missing ':' #75957

jujis008 opened this issue Aug 26, 2020 · 9 comments
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@jujis008
Copy link

Kibana version: 7.8.0

Elasticsearch version: 7.8.0

Server OS version: Linux

Browser version: Chrome 84.0.4147.125

Browser OS version: Mac OSX

Original install method (e.g. download page, yum, from source, etc.): Download from elastic.co

Describe the bug: Error: rison decoder error: missing ':'

Steps to reproduce:
Using iframe loading existing dashboard from kibana, there might be some kind of blank space caused the issue, we did use encodeComponentURI to decode the result, but for load data the issue happens

Expected behavior: load data correctly

Screenshots (if relevant):

Errors in browser console (if relevant):

    at rison.parser.errcb [as errorHandler] (kibanaUtils.plugin.js:28)
    at rison.parser.parse (kibanaUtils.plugin.js:28)
    at Object.rison.decode (kibanaUtils.plugin.js:28)
    at decodeState (kibanaUtils.plugin.js:28)
    at kibanaUtils.plugin.js:1
    at Array.forEach (<anonymous>)
    at getStatesFromKbnUrl (kibanaUtils.plugin.js:1)
    at getStateFromKbnUrl (kibanaUtils.plugin.js:1)
    at Object.get (kibanaUtils.plugin.js:33)
    at new DashboardStateManager (dashboard.plugin.js:33) "<div ng-view="" class="kbnLocalApplicationWrapper">"
(anonymous) @ kbn-ui-shared-deps.js:334

Provide logs and/or server output (if relevant):

Any additional context:

@Dosant
Copy link
Contributor

Dosant commented Aug 26, 2020

@jujis008, could you share the Kibana URL that is being loaded? this error means that state in _a or _g query params is not properly serialised.

Error handling will be improved in next major version, so Kibana would still load in case when state in query params is corrupted.
will be fixed by: #74264

@Dosant Dosant added this to To triage in kibana-app-arch via automation Aug 26, 2020
@Dosant Dosant added bug Fixes for quality problems that affect the customer experience Team:AppArch labels Aug 26, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@jujis008
Copy link
Author

jujis008 commented Aug 27, 2020

@Dosant Exactly as you analyzed, here I found why this error happens, you can see the query below query:Transaction%20Controller666, the parameters contains a blank space which encoded by URL automatically, so that lead to not properly serialized. if I replace space to _ is working good...

I cannot share the URL, but I could share the parameters in URL as following,
https://URL/app/kibana#/dashboard/ad4f6b50-d54e-11ea-8573-8f048ce7c8ba?embed=true&_g=(filters:!(),refreshInterval:(pause:!t,value:10000),time:(from:'2020-08-26T08:28:48.000Z',to:'2020-08-26T08:29:57.000Z'))&_a=(description:'',filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'1d15aa40-d53a-11ea-8231-6bf29f5714ab',key:jk_exec_id,negate:!f,params:(query:'20200826_072805->Dev_Jmeter_Zabbix_VM_DebugLTA%23103->dryRun'),type:phrase),query:(match_phrase:(jk_exec_id:'20200826_072805->Dev_Jmeter_Zabbix_VM_DebugLTA%23103->dryRun'))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'1d15aa40-d53a-11ea-8231-6bf29f5714ab',key:trans_name,negate:!f,params:(query:Transaction%20Controller666),type:phrase),query:(match_phrase:(**trans_name:Transaction%20Controller666**)))),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:''),timeRestore:!f,title:Board_RT_Samples,viewMode:view)

@Dosant
Copy link
Contributor

Dosant commented Aug 27, 2020

@jujis008, I think if there is a special symbol, it has to be wrapped with ', e.g.: query:'Transaction%20Controller666'

@jujis008
Copy link
Author

@Dosant Yeah, wrapping with ' works fine. Thanks.

@Dosant
Copy link
Contributor

Dosant commented Aug 27, 2020

Closing, as error handling is improved in: #74264

@Dosant Dosant closed this as completed Aug 27, 2020
kibana-app-arch automation moved this from To triage to Done in current release Aug 27, 2020
@mantrala
Copy link

mantrala commented Nov 25, 2020

I'm still seeing this error on elastic cloud instances. We are sending two separate clusters metrics to this elastic search cluster. One of the clusters monitoring works fine and other one errors and redirects to this other working cluster.

Here is the url: https://clusterID.us-east-1.aws.found.io:9243/app/monitoring#/overview?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-1h,to:now),cluster_uuid:XXXXXXXXX)

Edit: We just upgraded to 7.10 version.

@Dosant
Copy link
Contributor

Dosant commented Nov 25, 2020

Hi @mantrala,
Sorry about that,

This is going to be fixed in 7.10.1 by #83987

as a workaround for 7.10.0, wrap cluster_uuid value in ' to navigate to that cluster:

https://clusterID.us-east-1.aws.found.io:9243/app/monitoring#/overview?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-1h,to:now),cluster_uuid:XXXXXXXXX) -> https://clusterID.us-east-1.aws.found.io:9243/app/monitoring#/overview?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-1h,to:now),cluster_uuid:'XXXXXXXXX')

@mantrala
Copy link

Thanks @Dosant that worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
kibana-app-arch
  
Done in current release
Development

No branches or pull requests

4 participants