jgraph / drawio-nextcloud

Fork from 2022 nextcloud repo
GNU Affero General Public License v3.0
69 stars 15 forks source link

Realtime Collaboration Error #52

Closed EpicJosch closed 10 months ago

EpicJosch commented 1 year ago

When i create a new Diagram it opens up and then i get this RealTime Collaboration Error:

grafik

With this error i cant add objects to the diagram so i cant edit it.

I have to close and reopen the file then it works.

Is this a known error?

davidjgraph commented 1 year ago

versions of drawio and nextcloud? browser and version? errors in console?

EpicJosch commented 1 year ago

Nextcloud Version: 26.0.3 (Newest Stable) (But error also occures on Version 25.*) Drawio Version: 2.1.2 (Newest) Browser: Chrome (but error also occures on Firefox and Edge) Browser Version: 114.0.5735.134 (Official Build) (64-Bit) Errors in Console: There are no errors in console

m-mohamedin commented 1 year ago

Do you use the default draw.io URL? Do you network settings (e.g, firewall) blocking web sockets? Can you please open the Network tab in the browser console and send us any request that failed. Thanks

EpicJosch commented 1 year ago

Yeah i use the default draw.io URL. The only 2 errors i get in the Browser Developer Tab are those:

errors

Edit: Also i don't think that my network settings block web sockets since they run on port 80 and 443 which are opened in my firewall

mariusbolik commented 1 year ago

Having the same issue. I am on NC 26.0.3 and using Drawio 2.1.2. The app isn't working for me. No adblock enabled.

Edit: Opened the settings page and clicked on save. Semms to work now.

piiskop commented 1 year ago

I concur that the issue exists. Nothing can be done. Not a single element can be dragged and dropped.

arnowelzel commented 1 year ago

Yeah i use the default draw.io URL. The only 2 errors i get in the Browser Developer Tab are those:

errors

Edit: Also i don't think that my network settings block web sockets since they run on port 80 and 443 which are opened in my firewall

See the message: net::ERR_BLOCKED_BY_CLIENT. This is a clear indication that your client blocks the requests. Maybe you have an ad blocker or some security addon or setting which blocks that.

Also this this discussion: https://stackoverflow.com/questions/23341765/getting-neterr-blocked-by-client-error-on-some-ajax-calls

Edit: maybe it's enough to add log.diagrams.net as an exception in your adblocker which must never be blocked.

piiskop commented 1 year ago

I do not have an adblocker other than the one for YouTube. If I reload the page then clicking shapes and bringing them to the canvas works. Without reload, nothing works. I do not see the given blocking error message.

davidjgraph commented 1 year ago

You don't need log.diagrams.net, that really is just logging. Check whether web socket connections are allowed to app.diagrams.net.

andrewlixin1 commented 1 year ago

I have encountered the following error:

[drawio] 错误: OCP\Files\NotFoundException: at <>

  1. /var/www/nextcloud/apps/drawio/lib/Controller/EditorController.php line 202 OCA\Drawio\Controller\EditorController->getFileById()
  2. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225 OCA\Drawio\Controller\EditorController->getFileRevisions()
  3. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133 OC\AppFramework\Http\Dispatcher->executeController()
  4. /var/www/nextcloud/lib/private/AppFramework/App.php line 172 OC\AppFramework\Http\Dispatcher->dispatch()
  5. /var/www/nextcloud/lib/private/Route/Router.php line 298 OC\AppFramework\App::main()
  6. /var/www/nextcloud/lib/base.php line 1047 OC\Route\Router->match()
  7. /var/www/nextcloud/index.php line 36 OC::handleRequest()

GET /nextcloud/index.php/apps/drawio/ajax/getFileRevisions?fileId=%7BfileId%7D

arnowelzel commented 1 year ago

That looks like the file got deleted while you are still working on it.

EpicJosch commented 1 year ago

yeah but thats not the case. I create the file and the editor opens. Then the issue appears and after i close and reopen the file it works..

arnowelzel commented 1 year ago

I think the reason for this error is connected to https://github.com/jgraph/drawio-nextcloud/issues/57. When creating a new diagram it can not be edited before reloading it at least once.

EpicJosch commented 10 months ago

completed with #57