nocodb icon indicating copy to clipboard operation
nocodb copied to clipboard

πŸ› Bug: External data source (PostgreSQL) not editable after creation

Open salim-b opened this issue 2 years ago β€’ 4 comments

Please confirm if bug report does NOT exist already ?

  • [X] I confirm there is no existing issue for this

Steps to reproduce ?

  1. Setup NocoDB with SQLite as its own DBMS.
  2. Create a new base via NocoDB's UI.
  3. Add an external PostgreSQL data source to the newly created base.
  4. Try to edit the external PostgreSQL data source by clicking on its "edit" button. The edit dialogue immediately vanishes and the error message Something went wrong. Please reload the page if page is not functioning properly. is displayed.

Desired Behavior

The edit dialogue should show without an error.

Project Details

Node: v20.11.1 Arch: x64 Platform: linux Docker: false RootDB: sqlite3 PackageVersion: 0.204.3

Attachments

Bildschirmaufzeichnung vom 03.03.2024, 22:38:06.webm

salim-b avatar Mar 03 '24 21:03 salim-b

@salim-b It worked fine on my localhost development environment. We would need your help to sort this out

  • If there are any errors on the browser console or on the server, retrieve it for us
  • Node version, I am on v18.14.0; PG on 14.7. just for the record, am not sure if it will have an impact here.

dstala avatar Mar 04 '24 05:03 dstala

Sorry, I didn't check the browser console. The following two messages are printed in Firefox when clicking the PG data source's "edit" button:

Error in parsing value for β€˜width’.  Declaration dropped.
UI ERROR Error: please transfer a valid name path to validate!

Or as a screenshot (expanded): Bildschirmfoto vom 2024-03-04 11-06-02

I don't see any related messages on the NocoDB server's console[^serv]. Are there other (NocoDB-specific) logs I need to check?

[^serv]: I'm running the official Docker image as a VM on Fly.io with NocoDB's SQLite DB "litestreamed" to an object storage service, without any other persistent storage set up. The PosgreSQL DB connected as external data source is a Neon.tech instance running PostgreSQL 16.2 on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit.

salim-b avatar Mar 04 '24 10:03 salim-b

Update: With NocoDB v204.4, the error message from the browser console is now conveyed to the NocoDB user in a dialogue saying "Oops! Something unexpected happened :/" with the following details:

message: please transfer a valid name path to validate!

de@https://example.com/dashboard/_nuxt/index.B1qgAmjN.js:1:5735
f@https://example.com/dashboard/_nuxt/index.B1qgAmjN.js:1:6525
j@https://example.com/dashboard/_nuxt/index.B1qgAmjN.js:1:6956
L@https://example.com/dashboard/_nuxt/index.B1qgAmjN.js:1:7954
$@https://example.com/dashboard/_nuxt/index.B1qgAmjN.js:1:8569
vs@https://example.com/dashboard/_nuxt/entry.B3TBl9q2.js:1:14878
Ko@https://example.com/dashboard/_nuxt/entry.B3TBl9q2.js:1:14959
D@https://example.com/dashboard/_nuxt/entry.B3TBl9q2.js:1:25671
vs@https://example.com/dashboard/_nuxt/entry.B3TBl9q2.js:1:14886
IT@https://example.com/dashboard/_nuxt/entry.B3TBl9q2.js:1:16561

(I replaced the actual domain with example.com.)

salim-b avatar Mar 04 '24 16:03 salim-b

thanks @salim-b! we will look into it ..

dstala avatar Mar 04 '24 16:03 dstala

Data sources UI was overhauled recently, but issue is still present in latest NocoDB v0.207.2 when navigating to base β†’ ... β†’ Settings β†’ Data Sources β†’ data source β†’ Connection Details.

Same error message:

message: please transfer a valid name path to validate!

de@https://example.com/dashboard/_nuxt/zUoyaCGf.js:1:5554
f@https://example.com/dashboard/_nuxt/zUoyaCGf.js:1:6344
j@https://example.com/dashboard/_nuxt/zUoyaCGf.js:1:6775
L@https://example.com/dashboard/_nuxt/zUoyaCGf.js:1:7773
$@https://example.com/dashboard/_nuxt/zUoyaCGf.js:1:8388
Gs@https://example.com/dashboard/_nuxt/DJALOdOY.js:14:1375
ga@https://example.com/dashboard/_nuxt/DJALOdOY.js:14:1448
M@https://example.com/dashboard/_nuxt/DJALOdOY.js:14:12621
Gs@https://example.com/dashboard/_nuxt/DJALOdOY.js:14:1383
Ix@https://example.com/dashboard/_nuxt/DJALOdOY.js:14:3116

(Actual domain was replaced with example.com.)

salim-b avatar May 20 '24 21:05 salim-b

Fixed here https://github.com/nocodb/nocodb/pull/8573

pranavxc avatar May 25 '24 05:05 pranavxc