I have been stuck at "Deploy to APP Engine" from Eclipse, and following error message always popped up. Possible actions what I can think of were taken but all failed.
An error occurred while retrieving projects: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
{
"error" : "invalid_grant",
"error_description" : "Bad Request"
}
com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
{
"error" : "invalid_grant",
"error_description" : "Bad Request"
}
Here is my situation what I have right now.
Application(Java Servlet) run normally in debug level
"Deploy to App Engine" from Eclipse was working fine in 2018 around
Available software have been up to date
I followed instruction of Java 8 Deploy manual (Google), and re-init the project and authenticated my account successfully
https://cloud.google.com/appengine/docs/standard/java/building-app/environment-setup?hl=ja
Does anyone help me to solve this problem? I want to deploy my application to the Google Cloud Platform.
I cloud resolve this problem by signing out and back into the Google Plugin for Eclipse. The OAuth tokens had been expired since I kept logged in my google account in 2018.
Related
Hi there, the above picture is the error I am facing through. I run Google Tag Manager then afterward, the web pages show this "HTTP error 500".
I am configuring Google Tag Manager to add a script to web pages, but then the site displays this error.
getting this error message in logcat after entering the mobile number and clicking on verify.
2020-12-12 18:23:55.403 15226-15226/com.example.proj1 E/zzf: Problem retrieving SafetyNet Token: 7:
2020-12-12 17:28:13.461 29510-31007/com.example.proj1 E/FirebaseAuth: [GetAuthDomainTask] Error getting project config. Failed with {
"error": {
"code": 400,
"message": "INVALID_CERT_HASH : Client does not match API key",
"errors": [
{
"message": "INVALID_CERT_HASH : Client does not match API key",
"domain": "global",
"reason": "invalid"
}
]
}
}
400
2020-12-12 18:23:56.998 15226-15226/com.example.proj1 E/zzf: Failed to get reCAPTCHA token - calling backend without app verification
2020-12-12 18:23:57.660 15226-15263/com.example.proj1 E/FirebaseAuth: [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17093 null
help.....
solved the problem by redoing the whole thing.
the problem was i was also integrating gmail login in my android app. so i think the credentials for both services were clashing. i removed both things first. then created firebase project did whole thing for otp authorisation, enabled phone auth and voila the otp service was working.
then for gmail login i used the same fire base project and enabled google auth for that and this service also started working.
the problem was i think i used firebase project for otp and google cloud project for gmail. i think these clashed and i got this error.
if you need any more help let me know.
While calling endpoint API, sometimes we are getting 500 Unknown error from server, but most of the time API works fine. And also in case of 500 Unknown error, we are unable to see any logs in google console logs.
API response takes 2 sec approx. We are using App engine Java deployment.
Can anyone help me find the root cause of this problem?
Following is the chrome console error
/conge-portal/#!/dashboard/myage:1 XMLHttpRequest cannot load https://a-master-server.appspot.com/_ah/api/ageEndPoint/v1/aghie…5648/674390454714943921958166322392772?showTarget=true&month=May&year=2017. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 500.
From the error message, it looks like browser rejected a preflight CORS OPTIONS request because "http://localhost" is not listed as the the allowed origins.
Are you using App Engine standard or App Engine Flex environment? CORS handling are different on these two platforms.
Issue stopped after migrating to endpoint framework 2.0
I'm trying to run the Prediction API example. Everything is configured by following these instructions, but the only message I received is:
500 Internal Server Error
{
"code" : 500,
"message" : null
}
Process finished with exit code 1
Could not find what I'm missing...
Any help is welcome.
I think you are using an older version of the Prediction API - v1.5. The current version is v1.6, you can find some sample code here - https://github.com/gxlzlihao/GooglePredictionAPISample/blob/master/src/main/java/com/google/api/services/samples/prediction/cmdline/PredictionSample.java
I am trying to make the sample works so here is the code :
Sample Code
The documentation for the installation is there:
Installation documentation
I had a little problem on the step:
Click on "API Access", and then on "Create an OAuth 2.0 Client
ID...". Enter a product name and click "Next".
The UI of the console has been upgraded probably so I use those data for the authentication in the console:
Then I run the program and it brings me to the webpage to allow the app and then i got the following error message in the console:
403 Forbidden
{
"code" : 403,
"errors" : [ {
"message" : "you are not allowed to make this api call"
} ],
"message" : "you are not allowed to make this api call"
}
My queue.xml ACL is set with the email i used to authenticate
Why don't you use the native TaskQueue-API from the GAE Java SDK? You don't need to set up credentials, connection, ... .
You can see an example on the GAE Docs - here a Pull Queue, but you can also use a Push Queue if you want (an example is also in the GAE Docs).
Which one of the examples do you want to launch on the google app engine? On your posted link are many examples available :) . Tell me if you really want to use the Google-API to access the TaskQueues.