authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Unhandled Promise Rejection

Open yeyeoke opened this issue 2 years ago • 4 comments

Describe the bug Safari on MacOS fails to load expression policies, after loading them initially.

To Reproduce Steps to reproduce the behavior:

  1. Try to edit an expression policy
  2. The first time you try it, it works just fine.
  3. Close the policy
  4. Open it again.
  5. Now the expression fails to load, just displays a blank expression policy. and in the Browse Console you can see an error:
Unhandled Promise Rejection: IndexSizeError: The index is not in the allowed range.
insertRule — adoptedStyleSheets.js:153
(anonym funktion) — adoptedStyleSheets.js:153
forEach
(anonym funktion) — adoptedStyleSheets.js:150
mount — style-mod.js:117
mount — style-mod.js:79
mountStyles — index.js:6319
Bs — index.js:6007
value — CodeMirror.ts:153
_$AE — reactive-element.js:6:5083
performUpdate — reactive-element.js:6:4877
(anonym funktion) — reactive-element.js:6:4362
asyncFunctionResume
(anonym funktion)
promiseReactionJobWithoutPromise
promiseReactionJob
insertRule — adoptedStyleSheets.js:153

Expected behavior Expected the policy to load a second time as well.

Version and Deployment (please complete the following information):

  • authentik version: 2022.8.2
  • Deployment: docker-compose

yeyeoke avatar Sep 21 '22 14:09 yeyeoke

Skärmavbild 2022-09-21 kl  16 48 12

yeyeoke avatar Sep 21 '22 14:09 yeyeoke

Which safari version is this on? I just tested both 8.2 and main on safari 16 and they work without any errors

BeryJu avatar Sep 21 '22 15:09 BeryJu

Which safari version is this on? I just tested both 8.2 and main on safari 16 and they work without any errors

Version 16.0 (17614.1.25.9.10, 17614).

I just tried this on a completely new virtual machine running firefox, and there everything works fine.

In addition, I tried this in a private tab on Safari, same thing happens. I'm pretty much at a loss as to why this is happening...

yeyeoke avatar Sep 21 '22 18:09 yeyeoke

Nvm I can reproduce it now, I think the machine I tested on wasn't actually safari 16

BeryJu avatar Sep 21 '22 18:09 BeryJu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 20 '22 20:11 stale[bot]