ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

I don't want to jinx it but I think I've fixed my first proper crash on my app! The crash showed itself as a "Fatal error: Duplicate keys of type X were found in a Dictionary." which was happening as I was trying to update a linked record as part of a form and is due to SwiftData #buildinpublic

Jan 19, 2025, 1:56 AM

Record data

{
  "uri": "at://did:plc:d4o2svnvrxd3db33rx6xw432/app.bsky.feed.post/3lg2pths7sc2f",
  "cid": "bafyreieypg3njl74z3sod6pvpsomvo6p7izg6gd6huheu2ew6wcu662dna",
  "value": {
    "text": "I don't want to jinx it but I think I've fixed my first proper crash on my app!\n\nThe crash showed itself as a \"Fatal error: Duplicate keys of type X were found in a Dictionary.\" which was happening as I was trying to update a linked record as part of a form and is due to SwiftData\n\n#buildinpublic",
    "$type": "app.bsky.feed.post",
    "langs": [
      "en"
    ],
    "facets": [
      {
        "index": {
          "byteEnd": 297,
          "byteStart": 283
        },
        "features": [
          {
            "tag": "buildinpublic",
            "$type": "app.bsky.richtext.facet#tag"
          }
        ]
      }
    ],
    "createdAt": "2025-01-19T01:56:13.748Z"
  }
}