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.
Related
Google recomments to upgrade the iOS Google Places Pod from 2.7.0 to 3.1.0.
Version 2.7.0 of the Places SDK for iOS is deprecated as of January 29, 2019, and will be turned off on July 29, 2019
I upgraded my pod and now I run into the following issue.
The operation couldn’t be completed. Operation failed due to exceeding the quota usage limit. See the usage limits guide (https://developers.google.com/places/ios-sdk/usage) for information on usage limits and how to request a higher limit.
When I downgrade the version again to 2.7.0 everything works fine with the same API Key.
My limits are 1000 requests per day and I didn't reach them yet.
It is in german but you can see I had 142 requests in the last 7 days.
A confusing thing is that when I use
placesClient?.currentPlace(callback: { (placeLikelihoodList, error) -> Void in ...
I got my current place. When I want to use find autocomplete I'm restricted.
placesClient?.findAutocompletePredictions(fromQuery: searchText, bounds: nil, boundsMode: .bias, filter: nil, sessionToken: token, callback: { (gmsAutocompletePrediction, error) in
if let error = error {
print(error.localizedDescription) // limit reached error
}
})
Do I overlook something? What else can I do? I can not imagine that the error lies with the pod.
Similar questions which not helped:
Google Places AutoComplete on iOS - Can't Load Search Results - Try Again
I experienced the same problem. Was trying to implement the New Places API from Google to replace the old SDK's Place Picker. After one or two successful calls per day I always started getting the following error:
An error occurred: The operation couldn’t be completed. Operation
failed due to exceeding the quota usage limit. See the usage limits
guide (https://developers.google.com/places/ios-sdk/usage) for
information on usage limits and how to request a higher limit.
I had the Places API enabled in the console and also enabled billing with a valid credit card. Was still getting this error.
The solution was to enable Maps SDK for iOS from the Google Cloud Platform. After that I had no limits to the requests and was getting results every time. Hope that helps someone.
The same thing just happened to me. You need to increase your quota limit
The google's developer console is HORRIBLY laid out. Going to that link you might or might not find anything to actually increase the quota. On the Credentials you'll see a blue button that says "increase quota" or "request increase", it's something along the lines of this
Assuming you already setup billing, once you increase the quota you won't have any more problems.
GTM SDK Version: 3.09
Platform: iOS
Tag: AdWords Conversion tracking
When trying to fire an AdWords conversion tracking tag via Google Tag Manager for apps, I'm seeing the following messages (only relevant messages shown):
_aid has no backing implementation.
Dispatch url: http://www.googleadservices.com/pagead/conversion/1234567/?gclid=&appversion=3.1.a&conv=1234567&label=abc&ai=×tamp=1413203719&osversion=8.0.2&bundleid=com.example&lat=0&idtype=idfa&sdkversion=gtm-i-v3.0&rdid=1234&remarketing_only=0
Successfully sent hit: http://www.googleadservices.com/pagead/conversion/1234567/?gclid=&appversion=3.1.a&conv=1234567&label=abc&ai=×tamp=1413203719&osversion=8.0.2&bundleid=com.example&lat=0&idtype=idfa&sdkversion=gtm-i-v3.0&rdid=1234&remarketing_only=0
I suspect the _aid error is related to the inability to access the IDFA. I have included all the libraries and frameworks stated here (https://developers.google.com/tag-manager/ios/v3/#add-sdk) and I have used the force_load flag as well, but I'm still getting this error message.
As for the dispatch URL, we can again see that the ai query parameter (which I assume should equal the IDFA), is left blank. I'm not sure how the hit is able to be "sucessfully sent" despite the ai parameter missing. The status of the conversion in the AdWords interface remains as "unverified".
Any idea how I can get rid of the _aid has no backing implementation error message and properly get the ai parameter to populate?
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 have a simple iOS app into which I am integrating Google Maps. However, the API key I've provided results in several of these error messages when my map view is displayed:
ClientParametersRequest failed, 3 attempts remaining (0 vs 5). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x1818bf40 {data=<CFData 0x18137410 [0x302aec8]>{length = 145, capacity = 256, bytes = ...}}
Here is what I have already tried to no avail:
Calling [GMSServices provideAPIKey:] as the first line of code within didFinishLaunchingWithOptions
Double-checking that my API key is correct and is an iOS API key (I copy/pasted it directly from the Google Cloud Console into my app)
Providing the API key both with {} and without
Confirming my bundle name by outputting it with [[Bundle mainBundle] bundleIdentifier]
Omitting bundle identifier restrictions altogether
Regenerating the API key
I am not sure what else to try. My bundle name is in this format: net.company.MyApp and I have entered it exactly that way into the Google Cloud Console (I know bundle IDs are case-sensitive).
Could it be that Google doesn't support bundle identifiers of a certain type (e.g., with upper-case letters or beginning with net.)?
You need to enable maps service in Google developer Console. In new layout, choose APIs & auth section and APIs subitem in the left column. Next, in the right one enable Maps SDK for iOS by clicking on the Off button.
I found the issue. Google Maps SDK for iOS must be enabled for keys to work. I already had Google Maps API v3 enabled and I thought that was enough, but it wasn't.
if you are doing a manual integration of SDK, it is no longer supported in latest version. Also GoogleMapsM4B version needs to be deleted and only keep GoogleMaps SDK in your project. This worked for me.
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.