What does ConnectionProviderError means in Amplify AppSync in Flutter SDK - flutter

We are using Flutter SDK for Amplify AppSync for using Real Time Subscription.
https://pub.dev/packages/amplify_api
Sometime we receive error on AppSync subscription. As mentioned below
Error thrown ApiException(message: Subscription item event failed with error: Unauthorized, recoverySuggestion: , underlyingException: The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 5.)).
Error thrown ApiException(message: Subscription item event failed with error, recoverySuggestion: , underlyingException: The operation couldn’t be completed. (AppSyncRealTimeClient.ConnectionProviderError error 4.)).
I tried to figure out what does the error 4 and error 5 means, but was unable to do so.
I checked their swift SDK for ConnectionProvider
https://github.com/aws-amplify/aws-appsync-realtime-client-ios/tree/main/AppSyncRealTimeClient/ConnectionProvider
https://github.com/aws-amplify/aws-appsync-realtime-client-ios/blob/main/AppSyncRealTimeClient/ConnectionProvider/ConnectionProviderError.swift
But I could not figure out the cause for error. Can someone please help to identify when those error will be thrown. Thanks

Related

Updating selectors after delegate addition failed with: Error Domain=NSCocoaError Domain Code=4099

Is anyone able to explain this error, and what might have caused it? I've been trying to create a messaging app using Firebase's Realtime Database in SwiftUI, but am unable to read from the database and have been getting this error.
Updating selectors after delegate addition failed with: Error
Domain=NSCocoaErrorDomain Code=4099 "The connection to service named
com.apple.commcenter.coretelephony.xpc was invalidated: failed at
lookup with error 3 - No such process."
I'm able to write to the database just fine but it doesn't seem to want to be read from, so I'm assuming it's because of whatever this error is. Thanks

FLTFirebaseMessaging: An error occurred while calling method Messaging#getToken, errorOrNil { NSLocalizedFailureReason = "Too many server requests.";}

I had removed my IOS folder and re-added it with flutter create . --platforms iOS .Did this as I was receiving some error and saw this was the solution for it. I tried adding firebase again and I am getting this error:
FLTFirebaseMessaging: An error occurred while calling method Messaging#getToken, errorOrNil => {
NSLocalizedFailureReason = "Too many server requests.";
}
flutter: null
[VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: [firebase_messaging/unknown] An unknown error has occurred.
I checked my bundleID it matches exactly and I added google service info plist file.
I have to done these steps multiple times but still receive this error.
Any suggestions regarding this will be greatly appreciated.App working completely fine on android

Unhandled Exception: [firebase_storage/unknown] An unknown error occurred, please check the server response

i am currently facing the issue below. the problem started occurring when i deleted my iOS folder and created a new one. ive set all the necessary settings back in place but am still facing the issue. i deleted the iOS file and recreated it as my 'project.pbxproj' file became empty. tia
[VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: [firebase_storage/unknown] An unknown error occurred, please check the server response.
It seems there is a problem in firebase_storage. Please use putData instead of putFile, that can work.
https://github.com/firebase/flutterfire/issues/9480

AppleMusicKit SDK / Sample Project - UserToken issue

I'm currently experimenting with the Adding-Content-to-Apple-Music code found here: https://developer.apple.com/musickit/
I'm using:
XCode 9 beta 2,
iOS 11 (iPhone 5s)
I have a developer token (which works when I query the Apple Music API searching songs etc...) but I now want to use this to exchange for a User Token so I can perform write actions against my Apple Music account.
The test app fires up and allows me to request authentication. From this I can see:
MPMedia Library - Authorized
SKCloudServicesController - Authorized
Capabilities:
Add to Cloud Music Library
Music Catalog Playback
My next obvious step is to use the developer token to gain the user token. However, as soon as I call the following:
cloudServiceController.requestUserToken(forDeveloperToken: developerToken, completionHandler: completionHandler)
i see the following error in the completionHandler - can anyone help?
2017-07-14 10:05:39.179300+0100 Adding-Content-to-Apple-Music[1326:172100] [MC] Reading from public effective user settings.
2017-07-14 10:05:40.635503+0100 Adding-Content-to-Apple-Music[1326:172299] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)""
2017-07-14 10:05:40.636449+0100 Adding-Content-to-Apple-Music[1326:172100] SSAccountStore: Failed to fetch the backing accounts. error = Error Domain=com.apple.accounts Code=9 "(null)"
2017-07-14 10:05:40.800933+0100 Adding-Content-to-Apple-Music[1326:172297] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)""
2017-07-14 10:05:40.801259+0100 Adding-Content-to-Apple-Music[1326:172299] SSAccountStore: Failed to fetch the backing accounts. error = Error Domain=com.apple.accounts Code=9 "(null)"
An error occurred when requesting user token: The operation couldn’t be completed. (SKErrorDomain error 1.)
In Settings > iTunes & App Store on my device I am logged in with my Apple ID. Same goes for Apple Music too.
Update on this:
I also posted about this over on the Apple dev forums. It was an error on their side and now appears to be fixed. I can get a UserToken in both iOS 10 and 11 now.

request error Error Domain=SKErrorDomain Code=0 "Operation could not be completed. (SKErrorDomain error 0.)"

I am working on IN App purchase, storekit.
I am getting this error:
request error Error Domain=SKErrorDomain Code=0 "Operation could not be completed. (SKErrorDomain error 0.)"
What does this means?
Sometimes when you have bad internet connection, it returns that error because the app cannot communicate with the apple server. Just try to retry or if you have another internet connection source, try connecting there then do what you want again.
use device for testing not simulator
Restarting the device worked for me
This was happening on the Simulator and just closing the simulator and re-opening seemed to fixed it