GeezerVison is showing github.com — Requests from this Android client application <empty> are blocked · Issue #1697 · googleapis/google-cloud-java
Requests from this Android client application <empty> are blocked #1697DescriptionHi all,
When i tried to translate the text with Google Cloud API but i got a message :
{
"error": {
"code": 403,
"message": "Requests from this Android client application \u003cempty\u003e are blocked.",
"errors": [
{
"message": "Requests from this Android client application \u003cempty\u003e are blocked.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}
I don't know how to fix this issue , plz tell me if you have any solution.
Thanks Activitygarrettjonesgoogle commented on Mar 10, 2017 It looks like you aren't doing auth correctly. Are you setting an API key? suntzu93 commented on Mar 11, 2017 I setting and using Android key then got above message . I tried public key then ok . I don't know why Android key i can't use it. tcoffee-google commented on Jun 5, 2017 @thanhlv93 are you still experiencing this problem? If so, could you share the code you're using for authentication to help us diagnose the issue? Thanks! suntzu93 commented on Jun 5, 2017 @tcoffee-google yeah , i still this problem and i'm using public key instead private key. tcoffee-google commented on Jun 5, 2017 @thanhlv93 it would help us to see the code you were using for authentication that was producing the error message. tcoffee-google commented on Jun 22, 2017 Closing this issue due to lack of context --- @thanhlv93 please re-open if you can provide additional information. Thanks! rchamara commented on Apr 3, 2021 same issues here
working perfectly in my local emulator when restricted as None in google console
But if I changed it into Android same error got
- add debug key and package name correctly (100% sure) in google console save and wait more than 5 minutes to update
- debug key and package name is ok and i double-check with my android code is with getting its programmatically
- use com.google.apis:google-api-services-youtube lib (java) for call services from android side
- API key also double check and its correct
E/ServiceRequestTask: mLastError: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
GET https://www.googleapis.com/youtube/v3/videos?chart=mostPopular&key=***********************&maxResults=10&part=snippet,contentDetails,statistics®ionCode=US
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Requests from this Android client application <empty> are blocked.",
"reason" : "forbidden"
} ],
"message" : "Requests from this Android client application <empty> are blocked.",
"status" : "PERMISSION_DENIED"
}
E/MainActivity: error: 400
nizarhaider commented on Oct 27, 2021 By default your API key has restrictions. Just disable this on the API Dashboard. Worked for me. (Not safe though!) 0wwafa commented on Jun 1, 2024 how to specify the requesting application?
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|