MasterJ93 / ATProtoKit

A straightforward solution for using AT Protocol and Bluesky, written in Swift.
https://atprotokit.cjrriley.com/documentation/atprotokit/
MIT License
69 stars 12 forks source link

[Bug]: EmbedViewUnion type mismatch #50

Open bseales opened 3 days ago

bseales commented 3 days ago

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))

bseales commented 3 days ago

Example post I believe is causing the issue:

https://bsky.app/profile/steinmakesgames.bsky.social/post/3lbg5ywcv322o

MasterJ93 commented 3 days ago

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

MasterJ93 commented 2 days ago

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.