-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscription Watcher crash if payload is less than 128 bytes #258
Comments
@palpatim I will gladly make a PR to fix this if you can let me know if you'd rather: |
BTW, this is the issue I was experiencing with #216, I just now caught it after troubleshooting today |
Is there a fix for this? I am facing the same issue. The SDK crashes if payload is less than 128 bytes. |
I have a PR open but hasn't been approved or merged yet. I had to apply a hotfix by patching the Pod as a temporary fix |
Yes, thanks. I saw your patch and that worked for me as well. |
Thank you @johnmurphy01 I have approved and merged the PR. Please reopen if you are seeing any other issue. |
@johnmurphy01 Do you think the server side fix that you mentioned here #216 was needed to make this work? |
No. This was an attempt to fix the problem before we knew what was going on. We have since reverted those server side changes and the change that you merged yesterday is still working |
@johnmurphy01 thank you for confirming |
Describe the bug
If a subscription's payload contains less than 128 bytes of data, the sdk will crash here: https://github.com/awslabs/aws-mobile-appsync-sdk-ios/blob/master/AWSAppSyncClient/AWSAppSyncSubscriptionWatcher.swift#L258
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The sdk should not throw an exception on the verbose log line
Per the documentation on
prefix
: https://developer.apple.com/documentation/foundation/data/1780322-prefixEnvironment(please complete the following information):
Device Information (please complete the following information):
The text was updated successfully, but these errors were encountered: