Thread: Error creating new servers
Hello, I'm getting this error message pretty consistently when trying to add a new server. I'm using REMOTE_USER authentication and I have pgadmin mounted at a subpath. It only seems to happen when I click "Add New Server" on the home page of the application.
app.bundle.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at Object.add_new_server (app.bundle.js:1)
at HTMLAnchorElement.onclick ((index):1)
at Object.add_new_server (app.bundle.js:1)
at HTMLAnchorElement.onclick ((index):1)

Attachment
Hi Paul,
Looks like the "Servers" node in the browser tree is not selected. However, if it is not selected then it should not show the dashboard content.
Please open the bug here for the team to fix - https://redmine.postgresql.org/projects/pgadmin4/issues/new
Meanwhile, please select the servers node before clicking on add new server.
On Wed, Dec 1, 2021 at 7:04 PM Paul Lockaby <plockaby@uw.edu> wrote:
Hello, I'm getting this error message pretty consistently when trying to add a new server. I'm using REMOTE_USER authentication and I have pgadmin mounted at a subpath. It only seems to happen when I click "Add New Server" on the home page of the application.app.bundle.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at Object.add_new_server (app.bundle.js:1)
at HTMLAnchorElement.onclick ((index):1)
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Software Architect | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"
Attachment
Hi,
This issue has already been fixed and will be available in the next release.
Thanks,
Khushboo
On Wed, Dec 1, 2021 at 7:04 PM Paul Lockaby <plockaby@uw.edu> wrote:
Hello, I'm getting this error message pretty consistently when trying to add a new server. I'm using REMOTE_USER authentication and I have pgadmin mounted at a subpath. It only seems to happen when I click "Add New Server" on the home page of the application.app.bundle.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at Object.add_new_server (app.bundle.js:1)
at HTMLAnchorElement.onclick ((index):1)
Attachment
Hi Paul
We have fixed this issue https://redmine.postgresql.org/issues/7015. Fix will be available in the next release, meanwhile, you can check on the snapshot build https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2021-12-02/
On Wed, Dec 1, 2021 at 7:04 PM Paul Lockaby <plockaby@uw.edu> wrote:
Hello, I'm getting this error message pretty consistently when trying to add a new server. I'm using REMOTE_USER authentication and I have pgadmin mounted at a subpath. It only seems to happen when I click "Add New Server" on the home page of the application.app.bundle.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at Object.add_new_server (app.bundle.js:1)
at HTMLAnchorElement.onclick ((index):1)
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB PostgresMobile: +91 976-788-8246
Attachment
Cool thanks! I would love to log in to redmine but I'm having issues with my account and not receiving emails from Redmine so I'll have to solve that one another day. I appreciate the quick response, too!
-Paul
On Dec 1, 2021, at 9:23 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi PaulWe have fixed this issue https://redmine.postgresql.org/issues/7015. Fix will be available in the next release, meanwhile, you can check on the snapshot build https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2021-12-02/On Wed, Dec 1, 2021 at 7:04 PM Paul Lockaby <plockaby@uw.edu> wrote:Hello, I'm getting this error message pretty consistently when trying to add a new server. I'm using REMOTE_USER authentication and I have pgadmin mounted at a subpath. It only seems to happen when I click "Add New Server" on the home page of the application.app.bundle.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at Object.add_new_server (app.bundle.js:1)
at HTMLAnchorElement.onclick ((index):1)<Screen Shot 2021-11-30 at 10.52.30 AM.png>--Thanks & RegardsAkshay JoshipgAdmin Hacker | Principal Software ArchitectEDB PostgresMobile: +91 976-788-8246