pgadmin4
pgadmin4 copied to clipboard
window.renderSecurityPage is not a function
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:
- Jump to the login page
- F12 open chrome dev tools
- 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
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 I think some of the network call failed to get the required JS files. Please check the network tab if everything is success.
@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
We are not able to reproduce the issue. Feel free to reopen if you find the proper reproduction steps.