Thread: PGAdmin4 v4.28 Windows Chrome

PGAdmin4 v4.28 Windows Chrome

From
"Marcelo (Hotmail)"
Date:

Hello PGAdmin Team!

I downloaded the latest version of PGAdmin, and when I execute the app, I´m receiving this error:

(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/vendor/require/require.min.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):39 Uncaught ReferenceError: require is not defined
    at (index):39
(anonymous) @ (index):39
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/vendor.main.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/vendor.others.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/pgadmin_commons.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):128 ReferenceError: require is not defined
    at (index):118
(index):136 Uncaught ReferenceError: require is not defined
    at (index):136
(anonymous) @ (index):136

More info

Windows 10 Pro 64 bits
Chrome 87.0.4280.66
PG Admin 4.28

-----------------------------------------------------------------------
[]´s
Best regards and take care
Marcelo

Re: PGAdmin4 v4.28 Windows Chrome

From
richard coleman
Date:
Marcelo, 

This is a known issue with the latest version under windows.  The solution is documented here:

TLDR; 
To resolve the issue, use the Registry Editor and reset the value of HKEY_CLASSES_ROOT\.js\Content Type to:
text/javascript

Good luck,

rik.

On Fri, Nov 27, 2020 at 6:50 AM Marcelo (Hotmail) <sotranqueira@hotmail.com> wrote:

Hello PGAdmin Team!

I downloaded the latest version of PGAdmin, and when I execute the app, I´m receiving this error:

(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/vendor/require/require.min.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):39 Uncaught ReferenceError: require is not defined
    at (index):39
(anonymous) @ (index):39
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/vendor.main.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/vendor.others.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/pgadmin_commons.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):128 ReferenceError: require is not defined
    at (index):118
(index):136 Uncaught ReferenceError: require is not defined
    at (index):136
(anonymous) @ (index):136

More info

Windows 10 Pro 64 bits
Chrome 87.0.4280.66
PG Admin 4.28

-----------------------------------------------------------------------
[]´s
Best regards and take care
Marcelo

Re: PGAdmin4 v4.28 Windows Chrome

From
"Marcelo (Hotmail)"
Date:

Hi Richard.

Thanks, its worked like a charm :)

Best regards

Em 01/12/2020 11:37, richard coleman escreveu:
Marcelo, 

This is a known issue with the latest version under windows.  The solution is documented here:

TLDR; 
To resolve the issue, use the Registry Editor and reset the value of HKEY_CLASSES_ROOT\.js\Content Type to:
text/javascript

Good luck,

rik.

On Fri, Nov 27, 2020 at 6:50 AM Marcelo (Hotmail) <sotranqueira@hotmail.com> wrote:

Hello PGAdmin Team!

I downloaded the latest version of PGAdmin, and when I execute the app, I´m receiving this error:

(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/vendor/require/require.min.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):39 Uncaught ReferenceError: require is not defined
    at (index):39
(anonymous) @ (index):39
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/vendor.main.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/vendor.others.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://127.0.0.1:59723/static/js/generated/pgadmin_commons.js?ver=42800' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
(index):128 ReferenceError: require is not defined
    at (index):118
(index):136 Uncaught ReferenceError: require is not defined
    at (index):136
(anonymous) @ (index):136

More info

Windows 10 Pro 64 bits
Chrome 87.0.4280.66
PG Admin 4.28

-----------------------------------------------------------------------
[]´s
Best regards and take care
Marcelo

pgAdmin4 - Multi-database Servers

From
Jack Royal-Gordon
Date:
I am using Heroku to host a number of apps. Some of them have PG databases that are on shared servers. When that
happens,there could be hundreds of databases on a single server (each with a randomly-generated name), but only one of
themis the one I’m interested in (and that’s the only one that I have access to). 

When I add the database to pgAdmin4, I provide the host address, username, password, and database name. But there seems
tobe no way to directly open a connection to that database. I must first open the server, then click on “Databases”,
thenfind my database from among the hundreds listed, and only then can I establish a connection to the database. 

Is there a shortcut to just use the connection info that I have provided to go straight to the database? If not, then I
wouldsuggest that such a feature ought to be fast-tracked. For example, you might add a “Open database xxx” command to
thecontext menu on the server, where the “xxx” is the database name. 

Another option would be to use the server credentials to determine which databases I have access to, and only list the
onesthat are available to me. If you don’t want this behavior to apply to all databases, then add a flag on the
“Advanced”tab of the server properties that would toggle between this behavior and the current behavior. 

Regards,

Jack


Re: pgAdmin4 - Multi-database Servers

From
Richard Brockie
Date:
Hi Jack,

I've got 2 heroku databases up and running, one free "Hobby Dev", and one production "Standard 0". 

To only address the "Hobby Dev" rather than pick from the long list, I've added the database name to the "DB restriction" field on the Advanced tab of the connection menu. I didn't have to do this for the "Standard 0" database for some reason.

R.



On Tue, Dec 1, 2020 at 6:03 PM Jack Royal-Gordon <jackrg@pobox.com> wrote:
I am using Heroku to host a number of apps. Some of them have PG databases that are on shared servers. When that happens, there could be hundreds of databases on a single server (each with a randomly-generated name), but only one of them is the one I’m interested in (and that’s the only one that I have access to).

When I add the database to pgAdmin4, I provide the host address, username, password, and database name. But there seems to be no way to directly open a connection to that database. I must first open the server, then click on “Databases”, then find my database from among the hundreds listed, and only then can I establish a connection to the database.

Is there a shortcut to just use the connection info that I have provided to go straight to the database? If not, then I would suggest that such a feature ought to be fast-tracked. For example, you might add a “Open database xxx” command to the context menu on the server, where the “xxx” is the database name.

Another option would be to use the server credentials to determine which databases I have access to, and only list the ones that are available to me. If you don’t want this behavior to apply to all databases, then add a flag on the “Advanced” tab of the server properties that would toggle between this behavior and the current behavior.

Regards,

Jack



--
    R.

Richard Brockie

Real-time bicycle race management - www.ontheday.net

Re: pgAdmin4 - Multi-database Servers

From
Jack Royal-Gordon
Date:
Hi Richard,

That worked like a charm. Thanks!

On Dec 1, 2020, at 6:45 PM, Richard Brockie <richard.brockie@gmail.com> wrote:

Hi Jack,

I've got 2 heroku databases up and running, one free "Hobby Dev", and one production "Standard 0". 

To only address the "Hobby Dev" rather than pick from the long list, I've added the database name to the "DB restriction" field on the Advanced tab of the connection menu. I didn't have to do this for the "Standard 0" database for some reason.

R.



On Tue, Dec 1, 2020 at 6:03 PM Jack Royal-Gordon <jackrg@pobox.com> wrote:
I am using Heroku to host a number of apps. Some of them have PG databases that are on shared servers. When that happens, there could be hundreds of databases on a single server (each with a randomly-generated name), but only one of them is the one I’m interested in (and that’s the only one that I have access to).

When I add the database to pgAdmin4, I provide the host address, username, password, and database name. But there seems to be no way to directly open a connection to that database. I must first open the server, then click on “Databases”, then find my database from among the hundreds listed, and only then can I establish a connection to the database.

Is there a shortcut to just use the connection info that I have provided to go straight to the database? If not, then I would suggest that such a feature ought to be fast-tracked. For example, you might add a “Open database xxx” command to the context menu on the server, where the “xxx” is the database name.

Another option would be to use the server credentials to determine which databases I have access to, and only list the ones that are available to me. If you don’t want this behavior to apply to all databases, then add a flag on the “Advanced” tab of the server properties that would toggle between this behavior and the current behavior.

Regards,

Jack



--
    R.

Richard Brockie

Real-time bicycle race management - www.ontheday.net