TransformerLensOrg/CircuitsVis

500 Internal Server Error from unpkg

Closed this issue · 3 comments

Version 1.38.0:
str(cv.attention.attention_heads(tokens=str_tokens, attention=attention_pattern)) produces HTML containing https://unpkg.com/circuitsvis@1.38.0/dist/cdn/esm.js. This URL returns HTTP 500 Internal Server Error as of today (I think it was working yesterday).

Variants of that URL, e.g. https://unpkg.com/circuitsvis or https://unpkg.com/circuitsvis@1.35.0/dist/cdn/esm.js, also return an Internal Server Error.

Other unpkg links work, e.g. https://unpkg.com/react@16.7.0/umd/react.production.min.js.

(I love this library by the way!)

This seems to be unpkg's quirky way of pronouncing "HTTP 404", e.g. https://unpkg.com/react@16.7.0/umd/afghkjdsahfkjds.min.js returns the same thing.

Temporary workaround: npm i circuitsvis to get the file, then host it yourself and replace the URL in the HTML. This is working for me (at https://adamscherlis.github.io/esm.js for the moment).

It's back up!