jgraph / docker-drawio

Dockerized draw.io based on whichever is the most secure image at the time.
GNU General Public License v3.0
1.48k stars 359 forks source link

Receiving Malformed URI error on startup #125

Closed factor3 closed 10 months ago

factor3 commented 10 months ago

Running the drawio container on an Almalinux distro, I am seeing no errors in the logs, The container starts up without problems.

When attempting to access the web page, however, I first get the "Loading" page for a second, but then I get a message box witg the following message:

Failed to execute 'open' on 'XMLHttpRequest': Invalid URL

This is on Chrome. On Firefox the message varies a little:

The URI is malformed.

When clicking on the message box's Ok button, I get the page shown in the attached file: dwawproblem

This page does not provide any drawing capabilities.

This looks like a Javascript problem. Is there any way to make this application work properly?

donprosko commented 10 months ago

same to me also with jgraph/drawio:22.0.3 jgraph/drawio:21.7.5 seems OK w/o that error

factor3 commented 10 months ago

I went back to V21.7.5 and so far the startup is behaving properly.

Thanks for the heads- up. It looks like the latest has a bug that needs fixing...

microbearlogist commented 10 months ago

Same here, but only with Firefox (Desktop and Android) and not on all my machines.

My netbook and smartphone got he "The URl is malformed" message and the interface crash like the example screenshot. But not my Desktop computer (tested on a fresh installation of Firefox).

Chrome, Vivaldi and Edge are working fine on every machine.

21.7.5 solve the issue.

I've got nothing in my docker logs or in my Firefox console. Any clues?

jeffreyswiggins commented 10 months ago

I am getting this same issue and have been for several weeks on the latest branch and I can confirm that reverting to v21.7.5 fixes the problem.

factor3 commented 10 months ago

Yes, that is what I did and have been happily using Draw.io since.

Thanks for the confirmation.

On 10/22/2023 4:47 PM EDT jeffreyswiggins @.***> wrote:

I am getting this same issue and have been for several weeks on the latest branch and I can confirm that reverting to v21.7.5 https://github.com/jgraph/docker-drawio/releases/tag/v21.7.5 fixes the problem.

— Reply to this email directly, view it on GitHub https://github.com/jgraph/docker-drawio/issues/125#issuecomment-1774194935, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA7MTF2GK5IIQ2CGT66CSSDYAWA5VAVCNFSM6AAAAAA522YXY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGE4TIOJTGU. You are receiving this because you authored the thread.Message ID: @.***>

microbearlogist commented 10 months ago

The bug appears with 22.0.0. v21.8.2 also works fine.

Edit: Ok, figured out:

This is due to this commit

Now you need to specify the variable "DRAWIO_SERVER_URL" in your docker-compose.yml environment. See https://github.com/jgraph/docker-drawio/tree/dev/self-contained

m-mohamedin commented 10 months ago

Will be fixed in the next release. Thanks @microbearlogist for pointing to the source of the problem