I'm getting an odd error with a very specific diagram layout, which is arguably visually wrong, but scripted correctly:
Code:
@startuml
!pragma layout smetana
left to right direction
database "**Inventory Service**" as SYS1
rectangle "**Inventory API**" as SYS2
artifact "**User Interface**" as SYS3
cloud "**Monitoring and Reporting Service**" as SYS4
SYS1 <.r.> SYS2 : Sends inventory data\n real-time
SYS1 <.d.> SYS4 : Sends periodic inventory snapshots\n daily
SYS2 <.r.> SYS3 : 01234567890
SYS3 <.l.> SYS2 : 012345678
@enduml
This image can be generated in a couple ways successfully, any single of these - note the odd issue with the length of the line comment where they overlap on the diagram:
- Turning off smetana layout (i.e. comment out line 2)
- Not using 'left to right direction' (i.e. comment out line 4)
- Changing the length of the comment on connection 3 (SYS2 <.r.> SYS3) or connection 4
- Taking the l(eft) or r(ight) direction hints on either connection
e.g.
@startuml
!pragma layout smetana
left to right direction
database "**Inventory Service**" as SYS1
rectangle "**Inventory API**" as SYS2
artifact "**User Interface**" as SYS3
cloud "**Monitoring and Reporting Service**" as SYS4
SYS1 <.r.> SYS2 : Sends inventory data\n real-time
SYS1 <.d.> SYS4 : Sends periodic inventory snapshots\n daily
SYS2 <.r.> SYS3 : 01234567
SYS3 <.l.> SYS2 : 012345678
@enduml