I have down loaded Pay pal SDK latest version 1.1.0. It is working fine with the testing environment but while using for sandbox account it is throwing an error saying "There was problem communicating with paypal servers".Can you please help ? I am integrating paypal with iOS app. the response on the console is:
PayPal-iOS-SDK-Sample-App[1555:19d03] Request has failed with error:"pp_service_error_json_parse_error - System error. Please try again later.
details: (
{
"ns_error" = "Error Domain=NSCocoaErrorDomain Code=3840 \"The operation couldn\U2019t be completed. (Cocoa error 3840.)\" (JSON text did not start with array or object and option to allow fragments not set.) UserInfo=0xa456590 {NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}";
}
)"
#Kiran:
Dave from PayPal here.
Could you please provide the details of the payment you were trying to submit (currency code, amount, short description)?
Was this attempted transaction a PayPal or credit card payment?
At what stage in the flow did this error occur?
Once I have that information, I'll try to reproduce your scenario and get back to you.
Related
Places SDK error: Error Domain=com.google.places.ErrorDomain Code=-3 "An internal error occurred in the Places SDK library. If you believe this error represents a bug, please file a report using the instructions on our community and support page (https://developers.google.com/places/ios-sdk/support)." UserInfo={NSLocalizedFailureReason=An internal error occurred in the Places SDK library. If you believe this error represents a bug, please file a report using the instructions on our community and support page (https://developers.google.com/places/ios-sdk/support)., NSUnderlyingError=0x6000036d3090 {Error Domain=com.google.places.server.ErrorDomain Code=-1 "(null)" UserInfo={NSUnderlyingError=0x6000036d2dc0 {Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={body=<48545450 2f312e31 20343034 204e6f74 20466f75 6e640d0a 436f6e74 656e742d 54797065 3a207465 78742f68 746d6c3b 20636861 72736574 3d555446 2d380d0a 44617465 3a204d6f 6e2c2031 34204f63 74203230 31392031 333a3430 3a303520 474d540d 0a457870 69726573 3a204d6f 6e2c2031 34204f63 74203230 31392031 333a3430 3a303520 474d540d 0a436163 68652d43 6f6e7472 6f6c3a20 70726976 6174652c 206d6178 2d616765 3d300d0a 436f6e74 656e742d 4c656e67 74683a20 390d0a0d 0a4e6f74 20466f75 6e64>, contentID=gtlr_23, GTLRStructuredError=GMSx_GTLRErrorObject 0x600003523d80: {code:3840 message:"The data couldn’t be read because it isn’t in the correct format."}, NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}}}}}
Error Image
Please note that the Place Picker has been deprecated as of January 29, 2019. This feature was turned off on July 29, 2019, and is no longer be available after that date. Please note that the old users that used Places SDK for iOS/Android are the only one who can still use the Place Picker during the deprecation period. The use of Places SDK for both platforms are now through enabling Places API and does not support the use of Place Picker anymore. You may see the deprecation notice in https://developers.google.com/places/ios-sdk/placepicker.
PlacePicker is no more.
Check out the following:
No Billing account linked to this project.
Use of an old Places SDK.
Reaching requests limits.
Restricting App Key.
If all of this didn't fix your problem, I would recommend reaching out to Google Support Team as this error commonly has something to do with your configuration in the GCP console wherein only the support team of Google Maps Platform can assist you.
requestItemAtURI received error
Error Domain=com.spotify.ios-sdk Code=101
"JSON object contains no URI" UserInfo=0x16e2e890
{NSLocalizedDescription=JSON object contains no URI}
Testing with various uri have previously succeeded until just now, for example, this uri should be valid:
spotify:track:5jSz894ljfWE0IcHBSM39i
Any ideas?
Unfortunately this is part of the "This SDK may stop working at any time" part of the Beta. There'll be an update before long to resolve it.
I'm integrating the iOS 3.1 Facebook SDK. When implementing a login with Facebook feature, I call FBSession openActiveSessionWithReadPermissions:allowLoginUI:completionHandler:. When called on the simulator (where I don't have a FB account set up natively) I can successfully login.
However, from a device with a native Facebook account setup, when calling openActiveSessionWithReadPermissions... the session type returned in the completion handler is always sessionStateClosedLoginFailed, regardless of whether I allow or disallow my app to use Facebook in the alert dialog. The session state before calling the method is sessionStateCreated.
This is the NSError from the completion handler:
Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0x20a80820 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:ErrorLoginFailedReason, com.facebook.sdk:ErrorInnerErrorKey=Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (No value.) UserInfo=0x208ed930 {NSDebugDescription=No value.}}
What am I doing wrong that would cause this problem?
Update: I just noticed that my app is not appearing in the Settings > Facebook > "Allow these apps to use your account' section. (It was definitely there earlier today).
Update2: If I delete my account from the iOS Settings app, and then log my test user into the Facebook iPhone app, I am able to login with fast app switching. So it appears to only be a problem with the native account.
Update3: I ran the sample Facebook app Scrumptious I have the same problem. Upon clicking 'Login', which calls the openActiveSessionWithRead... I get the same error.
Update4: Possibly related to this bug? http://developers.facebook.com/bugs/450137751688028?browse=search_50a43a39b37ae4868318658
Update5: I should have mentioned this earlier, but it was a Facebook test user account that had this problem.
I switched from using a Facebook test user account to a regular account and this solved the problem on both the Scrumptious app and my app.
Have you set the FacebookAppID in your plist? See "Adding your Facebook App ID" in section 5 of the Getting Started with the Facebook SDK. Also, check the "Facebook" section of your device's settings to make sure your app hasn't been unauthorized (in which case it won't be authorized unless you manually do so).
I am using mocean's interstitial ad in my iOS project.
I am able to display dummy ads using dummy site_id and zone_id.
But when I replace dummy site_id and zone_id with my own ids, it gives following error -
Ad ad(158212768) - Server response with empty body (no ads) | error: Error Domain=Server response with empty body (no ads) Code=22 "The operation couldn’t be completed. (Server response with empty body (no ads) error 22.)"
Please help me to resolve this problem.
Thank you in advance.
What ads provider do you use? As far as i know, there are several companies, that use mOcean SDK for iOS for advertisements (YOC Performance, Mojiva).
Possibly, you need to setup adServerUrl property of your newly created MASTAdView class object. For Mojiva, for example, it must be #"http://ads.mojiva.com/ad". For YOC Performance it is #"http://ads.mo.yoc-adserver.com/ad", but i'm not sure about it.
PS: also, as you wish to aggregate more than one advertiser in you ios app (and want to manage ads displaying for different regions and countries and much more for growing your revenue from application), there is good alternative to AdWhirl - Epom SDK for iOS
When attempting to save an account into an ACAccountStore, I sometimes receive this error. Later, if I attempt to access this account, I find that it's actually been saved. So far, I've yet to find any information about this nondescript error. Does anyone know what it means?
Error Domain=com.apple.accounts Code=5 "The operation couldn't be completed. (com.apple.accounts error 5.)"
This question is a little dated, but I'm struggling in the same area. Here's one thing that should help: I did find documentation on the error codes:
typedef enum ACErrorCode {
ACErrorUnknown = 1,
ACErrorAccountMissingRequiredProperty,
ACErrorAccountAuthenticationFailed,
ACErrorAccountTypeInvalid,
ACErrorAccountAlreadyExists,
ACErrorAccountNotFound,
ACErrorPermissionDenied,
ACErrorAccessInfoInvalid
} ACErrorCode;
I found this in the documentation under the Accounts.framework link.
Interpreting this gives error=5 being "Account already exists" and error=6 being "Account not found." I'm hopeful this makes the errors a little less "nondescript."
This error occurs because you didn't set the Facebook account in the settings. The settings are available in iOS 6. Set that account and then try again.
Also give proper alert message on error.
While I didn't find any documentation to support (or contradict) my findings, here is what seems be changed (since iOS 5):
In iOS 5, the user is prompted with access request even when there are no Twitter accounts setup. In iOS 6 it seems the request is declined with error code 6 when there are no accounts setup.
In iOS 5 the user is prompted again (and again) with access request if the user had previously disabled access to said account from Settings > Twitter. Now, in iOS 6, it seems access request is silently declined (with no error, i.e. nil error) if user has removed access to app from Settings
If anyone else finds a better answer, do comment, please.