Skip to content

[bluesky-loader] [bug] Failing Due to Invalid Datetime Format in post.record.createdAt #109

@pawarherschel

Description

@pawarherschel

I'm getting

 22:32:00 [ERROR] [bluesky-loader] Failed to load Bluesky posts. **bsky → at://did:plc:bmuca5i6atczdbccgzeqwcl4/app.bsky.feed.post/3m3tdnsakys2m** data does not match collection schema.


  **record.createdAt**: **record.createdAt**: Invalid datetime

the at uri resolves to

{
  "uri": "at://did:plc:bmuca5i6atczdbccgzeqwcl4/app.bsky.feed.post/3m3tdnsakys2m",
  "cid": "bafyreictjoh5ovhfacj7iuvdusbpfdherm5ogwp7xmpmizg5yqcmm52saq",
  "value": {
    "text": "New blog post: \"4 Unconventional Ways to Cast in Typescript\"\n\nhttps://wolfgirl.dev/blog/2025-10-22-4-unconventional-ways-to-cast-in-typescript/\n\n#programming #typescript",
    "$type": "app.bsky.feed.post",
    "langs": [
      "en"
    ],
    "facets": [
// SNIP
    ],
    "createdAt": "2025-10-23T02:43:56.097742+00:00"
  }
}

See: https://zod.dev/api?id=iso-datetimes

offsets not allowed, so +00:00 makes the date invalid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions