ably / ably-cocoa

iOS, tvOS and macOS Objective-C and Swift client library SDK for Ably realtime messaging service
https://ably.com/download
Apache License 2.0
43 stars 24 forks source link

Invalid error field name in JSON parser #1268

Open maratal opened 2 years ago

maratal commented 2 years ago

ARTJsonLikeEncoder tries to parse incoming error in the server's response like this:

NSDictionary *errorReason = [input valueForKey:@"errorReason"];

While in the updated implementation of the server's endpoint it's just an error as stated by Ben here - https://github.com/ably/specification/issues/26

┆Issue is synchronized with this Jira Bug by Unito

maratal commented 2 years ago

See discussion here https://github.com/ably/ably-cocoa/pull/1269