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

View in Sense is no longer working #87

Closed
clintongormley opened this issue Dec 5, 2015 · 4 comments
Closed

View in Sense is no longer working #87

clintongormley opened this issue Dec 5, 2015 · 4 comments
Assignees
Labels

Comments

@clintongormley
Copy link
Contributor

The View in Sense buttons in the docs no longer work. There were issues with the website itself (see https://github.com/elastic/website-www.elastic.co/issues/744) but these have been resolved. Now I think the issue is with Sense/Kibana.

When trying to load this URL: http://localhost:5601/app/sense?load_from=http://www.elastic.co/guide/en/elasticsearch/reference/current/snippets/copy-to/1.json

I get this in the console:

unable to load ace/lib/es5-shim
sense?load_from=http://www.elastic.co/guide/en/elasticsearch/reference/current/snippets/copy-to/1.j…:1 XMLHttpRequest cannot load http://www.elastic.co/guide/en/elasticsearch/reference/current/snippets/copy-to/1.json. 
Request header field kbn-xsrf-token is not allowed by Access-Control-Allow-Headers in preflight response.

So first the JSON snippet doesn't load. But then there is a second issue caused (I think) by the ?load_from... query string. If I try to run a command in Sense, I get:

Uncaught TypeError: Cannot read property 'indexOf' of undefined (http://localhost:5601/bundles/sense.bundle.js:28371)
Version: 4.3.0-snapshot
Build: 9367
Error: Uncaught TypeError: Cannot read property 'indexOf' of undefined (http://localhost:5601/bundles/sense.bundle.js:28371)
at window.onerror (http://localhost:5601/bundles/commons.bundle.js:64531:25)
@spalger spalger self-assigned this Dec 7, 2015
@spalger
Copy link
Contributor

spalger commented Dec 7, 2015

@clintongormley is this something we can fix on our end until we can patch sense? If we add kbn-xsrf-token to the Access-Control-Allow-Headers response then things should start working again.

@beardedlinuxgeek
Copy link

The current issue appears to be a redirect loop on the elastic.co website.

@clintongormley
Copy link
Contributor Author

No, it's that Kibana has added a kbn-version header... which has broken View in Sense again.

@clintongormley
Copy link
Contributor Author

This has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants