pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

window.renderSecurityPage is not a function

Open FatTigerWang opened this issue 1 year ago • 2 comments
trafficstars

Please note that security bugs or issues should be reported to [email protected].

Describe the bug

Unable to log in, keeps showing loading

To Reproduce

Steps to reproduce the behavior:

  1. Jump to the login page
  2. F12 open chrome dev tools
  3. It keeps showing loading and the page cannot be displayed because the console shows an error

Expected behavior

show login page, no errors

Error message

window.renderSecurityPage is not a function image

image

image

image

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11, pgadmin web on debian
  • Version: latest(8.10)
  • Mode: Server
  • Browser (if running in server mode): chrome latest
  • Package type: Container

Additional context

I guess the error is caused by the loading order. When executing window.renderSecurityPage, security.pages js has not been loaded yet. Not sure why require does not work. If I debug, security.pages will have time to load and window.renderSecurityPage executes correctly.

FatTigerWang avatar Aug 06 '24 02:08 FatTigerWang

@FatTigerWang I think some of the network call failed to get the required JS files. Please check the network tab if everything is success.

adityatoshniwal avatar Aug 06 '24 05:08 adityatoshniwal

@FatTigerWang I think some of the network call failed to get the required JS files. Please check the network tab if everything is success.

I updated the image and can see that JS can be loaded

FatTigerWang avatar Aug 06 '24 06:08 FatTigerWang

We are not able to reproduce the issue. Feel free to reopen if you find the proper reproduction steps.

akshay-joshi avatar May 21 '25 11:05 akshay-joshi