OVER_QUERY_LIMIT with places API - android

I need to use "nearby search" in my app. So I have opened a new api key specifically for Places Api. (the regular Places api, not the Android one) and it worked perfectly for a short time.
However, suddenly I started receiving OVER_QUERY_LIMIT error. I tried replacing the api key with a new one, but that doesn't help. I even tried opening a new project.. still didn't help.

The reason you are getting that error message is because you have used up all your API requests and passed over your quota
From the Documentation it says: "OVER_QUERY_LIMIT" indicates that you are over your quota.
Source: https://developers.google.com/maps/documentation/geocoding/intro#StatusCodes

Related

Leaked GCP API Keys : Your app contains exposed Google Cloud Platform (GCP) API keys. Please see this Google Help Center article for details

I am getting this error from Play Store:
I tried to limit the access of API key within that file but still getting this error. How can I solve this?
Make sure that keys are not leaked via sites such as GitHub.
Notice the message wording "Your app contains exposed ...". That message did not say your app is exposing the keys.
You will need to delete the key and create a new key, update your app, etc.
Delete current key and create new one. Also make sure you apply restrictions like HTTP referrers, IP Address restrictions etc. based on your use case. For more info, check this
https://cloud.google.com/docs/authentication/api-keys#api_key_restrictions
The error is due to the API key being included in your source code. Consider using Google's Secrets Gradle Plugin for Android to hide your API keys from source code. Documentation at https://github.com/google/secrets-gradle-plugin and demo by the author at https://youtu.be/X8lYNW_Or2o

Unexpected behaviour of app after upload in google play that leads to crash

I had a working app in Google Play. After some changes in the code and checking that is worked properly on the emulator in debug mode, I uploaded the new signed version on Google Play (as I did several times before). But the last time I did it app start to crash with "java.lang.NullPointerException" due to trying format date which is null, because my request to the server (I use retrofit2 to create a request) does not retrieve any response (that is why date is null - default value). The one of thing I changed before upload the bundle is target version from 28 to 29 (Google Play new requirement).
This is the exception I can see from Google Play console.
The app works in local machine unlike on Google Play.
I haven't got any clue what can be the reason of this problem. I'll be glad if somebody can help with any idea. Thanks in advance.
Thank you mate. You directed me into right way and I solved the issue. I use Retrofit and Gson for data serialization and several of DTOs classes but obviously ProGuard rename the fields and serialization fails. To avoid this I just add #Keep annotation to all my DTO classes and ... it works. Thank you

mapquest app key error 403

I am using the mapQuest Android SDK for developing a Navigation app. Whenever I try to create a route with the Route Manager, I get the following error
Status Code: 403[This key is not authorized for this service. If you do not have a key, you can obtain a free key by registering at http://developer.mapquest.com.]
This occurred all of a sudden and since last week I have not been able to form a route
The app key is open and free edition and it starts with F
Creating a new app key does not solve the problem either
It seems the best approach for now is to use your key to hit the Directions API webservice, then parse the result into a line overlay that can be shown on your map, html for a narrative webview, or both.
This thread from the Mapquest developers forum is a good starting point:
http://developer.mapquest.com/web/products/forums/-/message_boards/message/1522959

Map not being displayed after refactoring to change the name of the project and package

I'm close to finish my first app so I change its name and the corresponding packages. To do so, I used the Android Tools from Eclipse and everything works after one or two attemps (there where a couple of things that I had to change manually), but in general, following the comments from this response, there were not further problems. Except for the Google Maps. Now they are not being displayed anymore and I'm getting the following error:
Google Maps Android API(12251): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
I know that there is no connection problem because I'm getting other kind of info from the internet and because the following sentence is true:
int availabilityCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());
if(availabilityCode == ConnectionResult.SUCCESS){
The first thing that I did was to go to the Google API and change the package name in the place where you generate the key to make it match the new one. That didn't work, so I deleted the key and created a new one. I pasted the new API key in the Android Manifest but it is not working. Any clues? I'm missing any steps?
In the manifest I still have the needed permissions set, like
<permission
android:name="com.alvarosantisteban.pathos.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
etc.
I think it was a combination of the three things commented here:
That the api key was not valid anymore (but when I posted the question, I already had that done, as I mentioned on it)
But specially that I had to clean the data. I actually deleted the app, because, thanks to the help of android_hungry I went to check my apps and saw that my app appeared two times, one with the maps workings and the other one, the one that is on my desktop as a shortcut, not.
Additionally, it might have happened what silver_man mentioned, I'm not sure.
Thanks to all for the help. :)
You have to create a new api key, as the fingerprint is made from your package name. https://developers.google.com/maps/documentation/android/start?hl=es#obtaining_an_api_key

REQUEST_DENIED response using Google Places Autocomplete API

I am working on android app which uses google's places autocomplete API.
When tried to hit following URL
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types=geocode&sensor=false&language=en&key=apiKey
I got the response as below.
{
"predictions" : [],
"status" : "REQUEST_DENIED"
}
I got the API key from link below
Google APIs console
also i have enabled Google Maps API v3 service.
As per API documentation REQUEST_DENIED response is generally due to lack of sensor parameter but which i have already provided.
After hitting above URL directly in browser also i am getting REQUEST_DENIED response.
Is anything else i have to do?
Are you sure your key is correct and that you have enough quota left? Try generating a new key and checking that you have the referrals correct/set to empty.
You also may need to wait up to 5 minutes for the key to become active.
FWIW I tested your URL with my own key and it worked fine.
I was also facing the same issue "REQUEST_DENIED" when using google places API for my android app. As per Google API console help "Android and iOS keys are only supported by some APIs, such as the Google Maps Android API or the Google Maps SDK for iOS." (https://developers.google.com/console/help/).
In my case problem solved by using the 'key for bowser apps' instead of using android/iOs keys.
I dont see input parameter listed on API page http://code.google.com/apis/maps/documentation/places/#PlaceSearches
What does it do? If you really need to have it, try moving it to the last item. Or just try removing it first to see if it works.
The problem that you are facing is may be related to API_KEY.You inserted something like
letter "l" instead of capital "i". Capital i and el(l) looks same in the xcode
environment.Try to insert correct letter will solve the issue.

Categories

Resources