Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

"Failed input validation for create report" and "invalid relative url" #259

Closed
mmguero opened this issue Dec 16, 2020 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@mmguero
Copy link

mmguero commented Dec 16, 2020

I just updated to Open Distro for Elastic 1.12.0 and went to try out the new reporting feature.

Any time I attempt to export a PDF or PNG report, I get this error in my logs:

[22:03:07.596] [error][opendistroReportsKibana][plugins] Failed input validation for create report Error: [query_url]: invalid relative url: /kibana/app/dashboards#/view/0ad3d7c2-3441-485e-9dfe-dbb22e84e576?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2020-12-16T21:48:07.587Z',to:'2020-12-16T22:03:07.587Z'))&_a=(description:'',filters:!(),fullScreenMode:!f,options:(useMargins:!t),query:(language:lucene,query:(query_string:(analyze_wildcard:!t,default_field:'*',query:'*'))),timeRestore:!f,title:Overview,viewMode:view)

With a Download error: There was an error generating this report dialog and the Generating report dialog just spins forever.

I'm using the official OpenDistro for Elastic Kibana docker file as the basis for my Kibana instance. I wonder if maybe it has something to do with using server.basePath and server.rewriteBasePath in my kibana.yml as I am using an NGINX reverse proxy.

@zhongnansu
Copy link
Member

Yeah you are right. Currently reporting only supports default server.basePath: '', server.port: 5601. The relative url with customized sever.basePath will throw the validation error you saw. In the Kibana new Platform, currently there's no way to read those two fields from kibana.yml, we are considering adding plugin config for those fields in the future release

@zhongnansu
Copy link
Member

zhongnansu commented Jan 29, 2021

close this one, since we are tracking this issue on #98

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants