Closed ales-tsurko closed 4 months ago
Title: "400 Error on UML Diagrams Page Due to Incorrect Microservice Configuration"
Description: We've encountered a 400 error on the page displaying UML diagrams, indicating that the server is unable to process the request properly. This issue stems from an incorrect host URL configuration in the microservice responsible for generating UML diagrams for smart contracts.
To resolve this, it's essential to ensure the microservice is correctly configured with the appropriate host URL.
Expected Configuration:
MICROSERVICE_VISUALIZE_SOL2UML_ENABLED
environment variable should be set to true.MICROSERVICE_VISUALIZE_SOL2UML_URL
environment variable should point to our server's host, not visualizer
.Configuration Files:
deploy/envs/common-blockscout.env
.deploy/services/visualizer.yml
.
When we try to open a UML diagram it responds with 500 error code. Please, check the console for more info.
This is how it should look like: https://gnosis.blockscout.com/visualize/sol2uml?address=0x79e32aE03fb27B07C89c0c568F80287C01ca2E57
And this is what we get: