surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.03k stars 73 forks source link

Unable to connect to local database #354

Open thibault-cne opened 4 days ago

thibault-cne commented 4 days ago

Describe the bug A clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem.

When I try to connect to my local database hosted on docker with the surrealist desktop app, I end up with an error and can't visualise my data.

Here is the error screen:

Screenshot 2024-07-04 at 21 42 37

To Reproduce Steps to reproduce the behavior:

Expected behavior

Error message:

undefined is not a function (near '...t of FQ[s.toLowerCase()]??[]...')

Stack trace:

ea@tauri://localhost/assets/codemirror-CX0Rso45.js:11:7600
@tauri://localhost/assets/codemirror-CX0Rso45.js:10:93404
updateCachedToken@tauri://localhost/assets/codemirror-CX0Rso45.js:10:83078
getActions@tauri://localhost/assets/codemirror-CX0Rso45.js:10:82229
advanceStack@tauri://localhost/assets/codemirror-CX0Rso45.js:10:86814
advance@tauri://localhost/assets/codemirror-CX0Rso45.js:10:84561
advance@tauri://localhost/assets/codemirror-CX0Rso45.js:10:61444
@tauri://localhost/assets/codemirror-CX0Rso45.js:11:55507
withContext@tauri://localhost/assets/codemirror-CX0Rso45.js:11:56198
init@tauri://localhost/assets/codemirror-CX0Rso45.js:11:58194
create@tauri://localhost/assets/codemirror-CX0Rso45.js:4:17121
xi@tauri://localhost/assets/codemirror-CX0Rso45.js:4:19986
z@tauri://localhost/assets/codemirror-CX0Rso45.js:4:25013
create@tauri://localhost/assets/codemirror-CX0Rso45.js:4:27646
@tauri://localhost/assets/__vite-browser-external-BLm1mFXJ.js:26:20221
ol@tauri://localhost/assets/react-DmHxDqaV.js:32:24165
Gn@tauri://localhost/assets/react-DmHxDqaV.js:32:42050
id@tauri://localhost/assets/react-DmHxDqaV.js:32:40903
gn@tauri://localhost/assets/react-DmHxDqaV.js:32:39965
Ii@tauri://localhost/assets/react-DmHxDqaV.js:32:36646
mn@tauri://localhost/assets/react-DmHxDqaV.js:30:3259
@tauri://localhost/assets/react-DmHxDqaV.js:32:34049

Environment:

Paste your environment here by following these steps
1. Open settings
2. Left-click the version text
3. Paste clipboard contents here

Version 2.1.2 (20240613.165915)

I didn't included my python script or the surql files because they are quite long but I can provide them if you want.

thibault-cne commented 3 days ago

To add some details, I just tested in the sandbox and I had the same issue with the following steps: