Is there a way to avoid the Twitter shortcode throwing an error if the linked tweet becomes unavailable?

…either due to tweet deletion or becoming private. It’s a bit ridiculous, because everytime it happens my hugo build will fail:

PS D:\repos\blog> hugo
Building sites … ERROR 2019/09/03 12:19:17 Failed to get JSON resource “”: Failed to retrieve remote file: Forbidden

I end up needing to update the relevant markdown file every time.

In short no.

Please use forum search before posting a question that has been discussed before.

The above is not some whim of mine but a requirement mentioned in the Requesting Help topic.

Furthermore see detailed reply here: Twitter Short Code Timeout

1 Like