Imports with VPN

Why might the imports fail when running on a VPN? For example, Notebook imports notebook examples fail with

TypeError: Failed to fetch dynamically imported module: https://observablehq.com/api/import/@mbostock/random-hex-string

Edit: disabling Vercel’s bot protection on the import API endpoint seems to have fixed the problem.

Hi @zachbogart, thanks for the report.

We’re not entirely sure what would cause these requests to fail on a VPN (and which network conditions, VPN providers, or browsers trigger the issue). Any further details to reproduce would be appreciated.

One hypothesis is that these requests are sometimes somehow triggering Vercel’s bot protection rules (perhaps because they are cross-origin requests to observablehq.com and aren’t sent with cookies). We’ve therefore disabled bot protection for these routes (at least for now). Please let us know if you continue to see an issue.

We will probably move these routes to another home in the near future — likely to make them a same-origin request on observableusercontent.com. This might help too. We’ll see. Thanks for your patience! Software is hard!

Updates now resolve imports, works well.