-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encoder: handle invalid types gracefully (#592)
* Test: JSON encoder using invalid types * Test: should handle and emit the invalid data error * Fix: handle and emit the invalid data encoder error * Update existing tests * Test: should decode data with malformed JSON * fixup! Fix: handle and emit the invalid data encoder error * Test: should decode data with malformed MsgPack * Test: incoming invalid/non-encodeable payloads and messages * Add error argument on every encode/decode method * Update tests * fixup! Add error argument on every encode/decode method * TestProxyTransport: sendWithData needs to capture protocol messages * Add missing authDetailsFromDictionary * fixup! Add error argument on every encode/decode method * Fix: invalid type cast * Fix: bad access crash * Fix test * fixup! Fix: bad access crash * Fix: missing encoder fields * If message error is empty then use the reason prop * Keep the original error domain to give more context * Transport: use only one way to send data
- Loading branch information
1 parent
3015161
commit 43baf48
Showing
27 changed files
with
519 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.