question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Infinite reload issue with chrome browser

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search for issues before submitting
- [ ] feature request

Versions.

“keycloak-angular”: “^7.0.1”, “keycloak-js”: “^7.0.1”,

Repro steps.

after login success

The log given by the failure.

Desired functionality.

I have the problem…

ERROR Error: Uncaught (in promise): An error happened during access validation. Details:false at P (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1) at P (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1) at VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1 at a.invokeTask (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1) at Object.onInvokeTask (VM5332 main-es2015.4ee6d5a61b65f4b61130.js:1) at a.invokeTask (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1) at s.runTask (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1) at _ (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1) at c.invokeTask [as invoke] (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1) at y (VM5330 polyfills-es2015.0ef207fb7b4761464817.js:1)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20

github_iconTop GitHub Comments

2reactions
RafalKosteckicommented, Feb 12, 2021

A similar error occurred at my application. Infinite loading after page refresh (if user logged in). I fixed that by changing my keycloak init function to:

import { KeycloakService } from 'keycloak-angular';
export function initializeKeycloak(keycloak: KeycloakService) {
  return () =>
    keycloak.init({
      config: {
        url: 'http://localhost:8080/auth',
        realm: 'poyters-account',
        clientId: 'poyters',
      },
      initOptions: {
        onLoad: 'check-sso',
        checkLoginIframe: false
      },
    });
}

Simply, I deleted the silentCheckSsoRedirectUri from initOptions and added checkLoginIframe: false Earlier I had active silentCheckSsoRedirectUri with checkLoginIframe:false and it caused the error.

Keycloak: 12.0.1 keycloak-angular: ^8.1.0 keycloak-js: ^12.0.2

Hope it helps you guys.

0reactions
dharmendra007commented, Feb 10, 2021

I was researching on the internet and it is the same case, for me my angular page is reloading automatically in infnite loop

I did some changes in keycloak-init.ts file (please find following code and change checkLoginIframe from true to false) Old Code: keycloak.init ({onLoad: ‘login-required’, “checkLoginIframe”: true}) New Code: keycloak.init ({onLoad: ‘login-required’, “checkLoginIframe”: false})

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Google Chrome's 'Nearly up-to-date' infinite loop ...
Right-click 'chrome' and delete it. Once it's gone, right-click 'new_chrome' and rename it to 'chrome'. Lastly, right-click the folder near the ...
Read more >
Chromium 59 update - infinite reload loop - Google Groups
Specifically, it loads the page briefly and then spins into an infinite reload loop, loading the page again... forever. It can be halted...
Read more >
[SOLVED] Infinite refresh loop in browser clients, with "Invalid ...
I have found an even easier way to produce the issue: open chrome Incognito tab; if it's not already looping, then: log in,...
Read more >
Chrome refuses to refresh after being stuck in a loop
When the browser is in this state, it seems to only block pages that are of the same origin, for example, other pages,...
Read more >
Refreshing/reloading glitch : r/chrome - Reddit
This is kinda strange problem, because it doesn't occur on all websites, but on mostly with dark themes after installing adblock/adblock+. Chrome reloads...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found