val-town-docs icon indicating copy to clipboard operation
val-town-docs copied to clipboard

Embedded vals sometimes fail to load

Open Xkonti opened this issue 1 year ago • 1 comments

Embedded vals sometimes fail to load, which leads to confusion. Often a refresh works, but sometimes it takes more than one.

https://discord.com/channels/1020432421243592714/1020432421243592717/threads/1206842458554634240

There are 2 approaches possible:

  • Replace existing embeds with code blocks - this is the most stable approach, but it doesn't enable browser preview
  • Improve embeds' stability - something probably outside of the docs

Xkonti avatar Feb 13 '24 06:02 Xkonti

I ran into a similar issue where a val.town embed was returning a 401 because my jwt had expired and the error page was returning x-frame-options:deny. Visiting val.town and then returning to the embed fixed things.

Might want to gracefully handle auth failures in vals and not deny the iframe on embed error responses.

maxmcd avatar Feb 13 '24 16:02 maxmcd