structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
212 stars 21 forks source link

Thumbnail not available #145

Closed andreisimio closed 3 weeks ago

andreisimio commented 3 weeks ago

Expected

I expect that the thumbnails are automatically refreshed

Actual

after editing dls files, the diagrams thumbnails are not available

Steps to reproduce

editing, diagrams does now update the thumbnails.

Version/build information

I start using this command

!/usr/bin/bash

sudo docker run -it --rm -p 8080:8080 -v ~/projects/arch-poc-structurizr:/usr/local/structurizr structurizr/lite

current build:

Severity

Major

Priority

I have no budget and there's no rush, please fix this for free

More information

tried different approaches, to delete the hidden .structurizr folder in order to regenerate does not worked

simonbrowndotje commented 3 weeks ago

Thumbnails are only regenerated when you view/edit a diagram (https://docs.structurizr.com/ui/faq#why-arent-my-diagram-thumbnails-appearing) ... so I think this is working as expected.

andreisimio commented 3 weeks ago

structurizr Thumbnails - replication .docx

In the current instance, after editing a diagram, thumbnails are not regenerated . Attached is the replication document with screenshots and two approaches we tested (edit diagram and rename .structurizr hidden folder), still not found the solution on how to regenerate them. Could you please suggest other solutions?

simonbrowndotje commented 3 weeks ago

Steps to reproduce editing, diagrams does now update the thumbnails.

I think you may have a typo in the steps to reproduce ("now" -> "not") ... this is what caused me to say it seems to be working as expected.

In either case, perhaps take a look at the JavaScript/developer console in your web browser, particularly the XHR requests that save thumbnails to see if they are being blocked, or returning something other than HTTP 200.

Thumbnail generation works for me, so perhaps there's something in your workspace.dsl file that is causing an issue. Does thumbnail generation work with a simpler workspace?

andreisimio commented 3 weeks ago

Yes, for a simpler workspace, thumbnail generation works fine. Now it became interesting, what could be the issues in the dsl file? Is there any option to review the model and have a debug on it?

andreisimio commented 3 weeks ago

SOLUTION: After commenting the branding/ logo lines in the views / theme section, the thumbnails are automatically refreshed and works fine.

/ branding { logo "https://....-logo.jpg"
}
/

simonbrowndotje commented 3 weeks ago

I imagine you're running into an issue with CORS; see the following for more details: