Error : Shorten url giving error unable to parse url

Hi,
To view one of the dashboard in full screen mode I try to use the Shorten url feature of Kibana
Once I shorten the url I am getting error unable to parse url .
Appreciate the help on issue !!

Thanks,
DG

Hi @DG13 thanks for your interest in Kibana,
To understand better the problem we need the following:

  • the version of kibana you are currently using
  • the URL of the current dashboard (you can remove the IP/host and any other sensible field
  • any other details from the error. Does that error provides you some more details? a stack trace? if not can you check the browser Dev Tools console? (in chrome under More Tools-> Developer Tools clicking on the menu on the top right corner of chrome)
  • any related error in the kibana logs?

Hi ,
Here are the requested details
Purpose of the url shorten - I would like to shorten the URL with full screen to show the user the clear screen without filters on the top with just markdown with links , think of it as landing page. If anybody knows any other alternative to the problem please do share.
Kibana Version - v 7.1.0
URL used for shortening -
-http://xx.xx.xx.xx/app/kibana#/dashboard/9b40aa50-962a-11e9-9e1d-bb5cadafbcc3?_g=()&_a=(description:'',filters:!(),fullScreenMode:!t,options:(hidePanelTitles:!t,useMargins:!f),panels:!((embeddableConfig:(),gridData:(h:6,i:'4',w:48,x:0,y:0),id:'9c09c540-a2e4-11e9-b829-b7eba9f34faa',panelIndex:'4',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:6,i:'5',w:40,x:8,y:13),id:'969907e0-a2e6-11e9-b829-b7eba9f34faa',panelIndex:'5',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:4,i:'6',w:39,x:8,y:6),id:da448720-a2e7-11e9-b829-b7eba9f34faa,panelIndex:'6',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:3,i:'7',w:40,x:8,y:10),id:'85df5830-a2e8-11e9-b829-b7eba9f34faa',panelIndex:'7',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:9,i:'8',w:40,x:8,y:19),id:a1817bf0-a2ec-11e9-b829-b7eba9f34faa,panelIndex:'8',type:visualization,version:'7.1.0')),query:(language:lucene,query:''),timeRestore:!f,title:'Landing%20Page',viewMode:view)

Url after shortening which gives error - unable to parse url -
http://xx.xx.xx.xx/app/kibana#/dashboard/9b40aa50-962a-11e9-9e1d-bb5cadafbcc3?_g=()&_a=(description:,filters:!(),fullScreenMode:!t,options:(hidePanelTitles:!t,useMargins:!f),panels:!((embeddableConfig:(),gridData:(h:6,i:4,w:48,x:0,y:0),id:9c09c540-a2e4-11e9-b829-b7eba9f34faa,panelIndex:4,type:visualization,version:7.1.0),(embeddableConfig:(),gridData:(h:6,i:5,w:40,x:8,y:13),id:969907e0-a2e6-11e9-b829-b7eba9f34faa,panelIndex:5,type:visualization,version:7.1.0),(embeddableConfig:(),gridData:(h:4,i:6,w:39,x:8,y:6),id:da448720-a2e7-11e9-b829-b7eba9f34faa,panelIndex:6,type:visualization,version:7.1.0),(embeddableConfig:(),gridData:(h:3,i:7,w:40,x:8,y:10),id:85df5830-a2e8-11e9-b829-b7eba9f34faa,panelIndex:7,type:visualization,version:7.1.0),(embeddableConfig:(),gridData:(h:9,i:8,w:40,x:8,y:19),id:a1817bf0-a2ec-11e9-b829-b7eba9f34faa,panelIndex:8,type:visualization,version:7.1.0)),query:(language:lucene,query:),timeRestore:!f,title:Landing%20Page,viewMode:view)

Rest API docs which I tried to shorten - https://www.elastic.co/guide/en/kibana/master/url-shortening-api-api-shorten-url.html

Usage - I used the curl command for url shortening as when in Full screen the url shortening in Kibana UI is not shown :frowning:

Let me know if you would need any other information.

Appreciate the help !!

Thanks

Hi,
I've just tested locally on 7.1.0 and I don't see any particular error when shortening the first url.

My POST request is:

{
	"url":"/app/kibana#/dashboard/9b40aa50-962a-11e9-9e1d-bb5cadafbcc3?_g=()&_a=(description:'',filters:!(),fullScreenMode:!t,options:(hidePanelTitles:!t,useMargins:!f),panels:!((embeddableConfig:(),gridData:(h:6,i:'4',w:48,x:0,y:0),id:'9c09c540-a2e4-11e9-b829-b7eba9f34faa',panelIndex:'4',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:6,i:'5',w:40,x:8,y:13),id:'969907e0-a2e6-11e9-b829-b7eba9f34faa',panelIndex:'5',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:4,i:'6',w:39,x:8,y:6),id:da448720-a2e7-11e9-b829-b7eba9f34faa,panelIndex:'6',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:3,i:'7',w:40,x:8,y:10),id:'85df5830-a2e8-11e9-b829-b7eba9f34faa',panelIndex:'7',type:visualization,version:'7.1.0'),(embeddableConfig:(),gridData:(h:9,i:'8',w:40,x:8,y:19),id:a1817bf0-a2ec-11e9-b829-b7eba9f34faa,panelIndex:'8',type:visualization,version:'7.1.0')),query:(language:lucene,query:''),timeRestore:!f,title:'Landing%20Page',viewMode:view)"
}

and I've got a valid urlId like

{
    "urlId": "b93b5548aafe6ae05000b6f8dd133a8c"
}

that used with in the following url: http://localhost:5601/goto/b93b5548aafe6ae05000b6f8dd133a8c resolves correctly to the original URL.

Could you please share a screenshot with the unable to parse url error message? Does that message come from Kibana when opening the /goto/ shortened url?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.