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

[ML] Link to ml app goes through several redirects before getting to app #105254

Closed
kindsun opened this issue Jul 12, 2021 · 8 comments
Closed

[ML] Link to ml app goes through several redirects before getting to app #105254

kindsun opened this issue Jul 12, 2021 · 8 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience :ml

Comments

@kindsun
Copy link
Contributor

kindsun commented Jul 12, 2021

Kibana version:

7.14

Describe the bug:

Clicking on the ML app link sometimes goes through several redirects before landing on a blank page, but not always. Sometimes it gets the app correctly but a user still can't navigate back correctly (maybe a redirect that should replace instead of adding to history?). Seems like there might be a race condition (not entirely sure how to consistently trigger) but also minimally some router behavior that could be tweaked.

Steps to reproduce:

  1. Go to Kibana overview page
  2. Click machine learning app card

Screenshots (if relevant):

First scenario:

Peek 2021-07-12 09-40

Second scenario:

Peek 2021-07-12 09-44

@kindsun kindsun added bug Fixes for quality problems that affect the customer experience :ml labels Jul 12, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@peteharverson peteharverson changed the title Link to ml app goes through several redirects before getting to app [ML] Link to ml app goes through several redirects before getting to app Jul 12, 2021
@jgowdyelastic
Copy link
Member

I've been unable to reproduce the first scenario in this issue.
I've tried master, 7.14.0 local and 7.14.0 cloud.
I've also tried various degrees of network throttling.

@kindsun
Copy link
Contributor Author

kindsun commented Jul 13, 2021

I've been unable to reproduce the first scenario in this issue.
I've tried master, 7.14.0 local and 7.14.0 cloud.
I've also tried various degrees of network throttling.

Thanks for checking @jgowdyelastic. If I can repro it I'll try to better capture the circumstances. As it stands, I can't repeat that behavior today 🤷‍♂️. Maybe scenario 2 will be the only real takeaway from this issue, which thankfully isn't too critical.

@kindsun
Copy link
Contributor Author

kindsun commented Jul 13, 2021

Actually @jgowdyelastic wrt the 1st scenario, I got it again while running tests in Firefox. I tested it in parallel in Chrome and it worked fine even though I saw the error in Chrome before when I first reported this. It might be worth a local test in Firefox if you get a chance.

I got the following output in Firefox's console:

Reporting application usage for ml, / kbn-ui-shared-deps.js:456:425521
Reporting application usage for ml, /overview kbn-ui-shared-deps.js:456:425521
Reporting application usage for ml, /datavisualizer kbn-ui-shared-deps.js:456:425521
Reporting application usage for ml, / kbn-ui-shared-deps.js:456:425521
Reporting application usage for ml, /overview kbn-ui-shared-deps.js:456:425521
Reporting application usage for ml, /datavisualizer kbn-ui-shared-deps.js:456:425521
Reporting application usage for ml, / kbn-ui-shared-deps.js:456:425521
Reporting application usage for ml, /overview kbn-ui-shared-deps.js:456:425521
.... <Same lines above repeat 10+ times before hitting the following error>
Too many calls to Location or History APIs within a short timeframe. history.js:380

So it gets stuck in a redirect loop going from / -> /overview -> /datavisualizer -> / -> ...

Anyway, curious to see if you see it in Firefox. If not, we can just consider it logged and see if anyone else sees something similar down the road!

@jgowdyelastic
Copy link
Member

@aaronjcaldwell thanks for the additional information, i'm still not able to reproduce on master or 7.14 when using Firefox.
Can you confirm that you're using a basic license, as it appears that way from the screenshots.

@kindsun
Copy link
Contributor Author

kindsun commented Jul 14, 2021

@jgowdyelastic Yes, can confirm I was using a basic license in all attempts.

@peteharverson
Copy link
Contributor

Unable to reproduce this on 7.15.0 (local install). Tried using basic and trial license, on Chrome and Firefox. Removing 7.15.0 label, but leaving issue open to track if anyone else sees something similar.

@darnautov
Copy link
Contributor

Closing this one, redirect issues were addressed in #139279

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 :ml
Projects
None yet
Development

No branches or pull requests

5 participants