Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Handle the AWSAppSyncClient timeout #91
I am trying my hands on with AppSync iOS and want to get a failure callback for a fetch query when the internet is not available.
When the internet is available, the following code outputs both "sending" and "receiving". But when the internet is not available, I do not get any callback from AppSync client. The code only outputs "sending".
After the network timeout, the xCode console outputs
"HTTP load failed (error code: -1001 [1:60])"
"finished with error - code: -1001"
How can I handle the network failure here? Any help is appreciated.
referenced this issue
Nov 14, 2018
Thanks for updating the SDK. I just tested out and seems like it has been fixed.
When I am firing any AppSync query with no internet available, I am getting the localized error description as "Did not receive a successful HTTP code. Error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline."