Expected Errors

Rendering this document produces console errors (but does not break render)

Post record key without profile

{{< bluesky-comments 3lbtwdydxrk26 >}}

Missing post entirely

{{< bluesky-comments >}}

Invalid post URL

{{< bluesky-comments https://example.com/bad/ >}}

Invalid handle

{{< bluesky-comments https://bsky.app/profile/bad.bad.bad.bad.bad/post/3lbu5opiixc2j >}}

Post specified twice

{{< bluesky-comments https://bsky.app/profile/grrrck.xyz/post/3lbu5opiixc2j uri="https://bsky.app/profile/coatless.bsky.social" >}}

Expected

When rendered, this document should produce three non-blocking errors and no comments or output will appear in the document.

ERROR (/..snip../_extensions/bluesky-comments/utils.lua:9)
[bluesky-comments] Post record key 3lbtwdydxrk26 provided but `bluesky-comments.profile` metadata is not set.

ERROR (/..snip../_extensions/bluesky-comments/utils.lua:9)
[bluesky-comments] Shortcode requires the Bluesky post URL, AT-proto URI, or post record key as an unnamed argument.

ERROR (/..snip../_extensions/bluesky-comments/utils.lua:9)
[bluesky-comments] Invalid Bluesky URL format: https://example.com/bad/

ERROR (/..snip../_extensions/bluesky-comments/utils.lua:9)
[bluesky-comments] Failed to resolve handle 'bad.bad.bad.bad.bad'. InvalidRequest: Unable to resolve handle

ERROR (/..snip../_extensions/bluesky-comments/utils.lua:9)
[bluesky-comments] Cannot provide both named and unnamed arguments for post URI:
    * uri="https://bsky.app/profile/coatless.bsky.social"
    * https://bsky.app/profile/grrrck.xyz/post/3lbu5opiixc2j