MasterJ93 / ATProtoKit

A straightforward solution for using AT Protocol and Bluesky, written in Swift.

Home Page:https://atprotokit.cjrriley.com/documentation/atprotokit/

Repository from Github https://github.comMasterJ93/ATProtoKitRepository from Github https://github.comMasterJ93/ATProtoKit

[Bug]: EmbedViewUnion type mismatch

bseales opened this issue · comments

Summary

When calling getTimeline(), there is an unknown EmbedViewUnion type, I believe it is Feed.

Reproduction Steps

Bug was found when calling getTimeline(), but reproduction could be dependent on the items currently in the timeline.

Expected Results

Library to have a type for Feed

Actual Results

No type for Feed.

What operating systems did you experience this bug? (We'll count Docker as an operating system.)

macOS

Operating System Version

iOS 18.0.1 - iPhone 12 Pro Max

ATProtoKit Version

0.19.2

Additional Context

Error fetching feed: typeMismatch(ATProtoKit.ATUnion.EmbedViewUnion, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "feed", intValue: nil), _CodingKey(stringValue: "Index 7", intValue: 7), CodingKeys(stringValue: "post", intValue: nil), CodingKeys(stringValue: "embed", intValue: nil)], debugDescription: "Unknown EmbedViewUnion type", underlyingError: nil))

Thanks for showing this to me. I'll look into this later today.

The develop branch has been updated with a fix to this issue. Please let me know if it has fixed your issue. If not, then feel free to send another error report with the applicable JSON object.

It looks like this issue no longer exists, so I'll be closing this now. If it persists, however, please re-open the issue with the new error messages and JSON.