terrastruct / TALA

A diagram layout engine designed specifically for software architecture diagrams
https://terrastruct.com/tala
Other
194 stars 4 forks source link

failed to verify $TSTRUCT_TOKEN: illegal base64 data at input byte 5 #67

Closed orange-buffalo closed 7 months ago

orange-buffalo commented 7 months ago

Hi,

We've just purchased TALA license and trying to integrate it into our CI. We provided TSTRUCT_TOKEN environment variable with one of the tokens we received. However, d2plugin-tala --help fails with:

[2024-02-12T22:03:41.916Z] WARNING: THIS COPY OF TALA IS UNLICENSED AND IS FOR EVALUATION PURPOSES ONLY

[2024-02-12T22:03:41.916Z] 

[2024-02-12T22:03:41.916Z] failed to verify $TSTRUCT_TOKEN: illegal base64 data at input byte 5

And our diagrams are generated with the watermark.

alixander commented 7 months ago

@orange-buffalo if you go to playground and enter the key there, does it work?

Screenshot 2024-02-12 at 9 56 46 PM
orange-buffalo commented 7 months ago

I see this message and nothing in console/network tab, although I am connected to the Internet:

image

So I assume it does not work.

Also tried one of the other keys we received with the same result.

alixander commented 7 months ago

@orange-buffalo can you try copying and pasting the key into a text editor and see if there are whitespaces or newlines? Sometimes when copying and pasting from a PDF, the newlines are preserved.

orange-buffalo commented 7 months ago

:facepalm: Indeed when copied from PDF it contains line breaks.. After cleaning them up we are able to use the tokens. Thanks for the hint. Maybe as an improvement the token PDF could be changed to avoid this issue, e.g. replacing table layout with block layout or something like that.