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

Load Failed #261

Open Micnubinub opened 2 months ago

Micnubinub commented 2 months ago

Describe the bug It seems after a few minutes connected to a remote db, I get a 'Load Failed' error message, from which I can't make a request until after restarting the app or switch into another db then switching back Surrealist image

To Reproduce Steps to reproduce the behavior:

  1. Connect to db for some time
  2. Make a request (not exactly sure what conditions needs to be met)

Expected behavior Run query

Environment:

Platform: Desktop
OS: Darwin
Architecture: aarch64
WebView: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
Version: 2.0.5
Flags: featureFlags: false, models_view: true, apidocs_view: true, themes: false, newsfeed: true
sourabpramanik commented 1 month ago

I guess this issue is more likely because of the ACL policy of your remote DB server. If you can add the surrealist origin to the policy then it may work out. If still having issues then let me know

gregzuro commented 1 month ago

I guess this issue is more likely because of the ACL policy of your remote DB server. If you can add the surrealist origin to the policy then it may work out. If still having issues then let me know

Why would it work fine, then not work after a time?

andrewmoore-nz commented 1 month ago

Have been experiencing this recently also. Surrealist become unresponsive to any database queries after a shot period of inactivity... unsure quite how long exactly. The console window shows the following errors...

image

FWIW, I discovered that when making the move from Surrealist v1 to v2, it looks like my connection was set to be http - I don't recall/believe I would have chosen that option initially - but once I changed it over to be using ws thing seemed to start behaving as normal.