Error deploying Eclipse Web Project to Google App Engine - java

I'm trying to deploy my web project to Google App Engine via eclipse and I am getting the following error;
**com.google.appengine.tools.admin.HttpIoException: Error posting to URL:
https://appengine.google.com/api/appversion/getresourcelimits?app_id=*****&version=1&
403 Forbidden
You do not have permission to modify this app (app_id=u's~*****').**
Can anybody point me in the right direction? Please comment if more information is required.

As far as I know a browser window should open asking for permissions on your Google account.
Same thing would happen if you would deploy it through CLI directly with maven. You might wanna give that a chance.

Turns out the problem was being caused by being logged into multiple Gmail accounts at the same time. Need to ensure that you are logged into the same account on Eclipse and GAE.

Related

Using two Google APIs with the same application

I have an application which connects to Google Drive API.
Now I have to add another function which requires the Google Directory API.
I granted the necessary permissions and enabled the new API in my project.
However I'm still getting this error:
"message" : "Access Not Configured. Admin Directory API has not been
used in project 594418282793 before or it is disabled. Enable it by
visiting
https://console.developers.google.com/apis/api/admin.googleapis.com/overview?project=594418282793
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry."
The problem is that the URL in the message gives me an error; apparently the project ID is invalid.
This is the error:
There was an error while loading
/apis/dashboard?project=594418282793. You are missing at least one of
the following required permissions:
Project
resourcemanager.projects.get
Check that the project ID is valid and you have permissions to access
it.
I have no idea what is the cause of this mismatch, why the project ID provided in the error message doesn't seem to exist, and where else should I enable the second API in my application.
Any ideas would be much appreciated.
I think you have miss understood how the credentials.json works.
Access Not Configured.
Means that the credentials you have loaded for this client has not been setup for the api you are trying to connect to.
When you create a project on Google developer console this is to give google information about your application as a whole and what it is designed to do. You should enable both apis in the single project.
Once that is done create your Oauth credentials as you did before this credential file will then be able to connect to both apis .
googel developer console
Left hand menu click credentials then button on the top says create credentials
Once you have created it click the arrow to download you can download the file anytime

Google Oauth Cross-client Identity android (com.google.android.gms.auth.GoogleAuthException: Unknown)

I am trying to get a token from my android app in order to exchange it later on my server for a refresh token. I followed the following guide 'https://developers.google.com/accounts/docs/CrossClientAuth' and tried the following:
GoogleAuthUtil.getToken(getContext(), "somegooglemail#gmail.com", "oauth2:server:client_id:" + myServerClientId + ":api_scope:https://www.googleapis.com/auth/plus.login")
somegooglemail#gmail.com is my personnal mail and I am testing on my mobile phone so no problem from this side. The "myServerClientId" has the value defined from the Google developper console (i have create a native application and taken the id of this application). The two applications (my android and my native appliaction are of course in the same developper project in the developper console).
I am getting this all the time:
com.google.android.gms.auth.GoogleAuthException: Unknown
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
Does anybody has an idea? By the way I can obtain normal token when only specifying the scope!
I have finally found the problem. It is linked to the type of my server application. I have use "Native appliaction installed" like I saw in some post and it is necessary to use "Web appliaction" to make it works. Hope it will help someone...

Trouble accessing friends lists on facebook with Spring social

I'm trying to use the spring social facebook plugin. To do so, I'm using the quickstart-v3 sample they provide. It works fine, except one point : with my facebook account, I can browse all my friendlists. I added the permission read_friendlists in the application management and the application requests the good rights when used for the first time. However, when I log in to another facebook account (as application admin as me), I get nothing. Do you guys know what the problem could be ?
I found the problem : I didn't used my app permissions but the graph api permissions. That's why it only worked with me.
You need to request read_friendlists permission for every account you're connecting to your app.

How do I change the target app engine account in eclipse to deploy a new app?

I have a Google App Engine account that hosts some Java apps I have put together. I use Eclipse Indigo with appengine-java-sdk version 1.6.5. I can deploy an app to my own account with no problems, but the google sdk does not ask for a username or password. I can't find any way to deploy my app to someone else's account, for which I have a username and password.
If anyone has any insight into this I would be very greatful.
There is detailed documentation on the Google Plugin for Eclipse authentication at https://developers.google.com/eclipse/docs/signin
There's a button (on the bottom left corner in my eclipse...) to log in/out of google appengine.
Maybe this helps. I use a DOS script to deploy applications. This is a python example
D:\PROGRAMS\google_appengine\appcfg.py --no_cookies --email=you#gmail.com --passin update D:\Eclipse\workspace\myproject < d:\gae\password.txt
By the way : you need a script like this, if you use two step verification.

Android + Google App Engine connection

I'm working on connecting an android app in Java with google app engine. This is my first time doing it. I watched and did the same thing that it was done in this video:
http://www.youtube.com/watch?v=M7SxNNC429U
I have been working and I'm getting the same problem. When creating the project and running it, it runs but it shows me a message that I have to create/add an account, I already register it when creating the project. When I enter my gmail account info it shows me a message saying: "Can not connect with the server". I'm not sure what it is happening, please a ed help on it, thanks for you time and patience.
Careful C2DM is deprecated in favor of Google Cloud Messaging and the latest Google plugin doesn't have the wizard for creating a App engine connected android project
That video is awesome, but there's some useful documentation for AppEngine Connected Android apps too. Specifically in the Creating A New Project section, it explicitly states,
Important: You must sign up for a C2DM account using the same Google account that you use for the Android application you are developing and for the GPE plugin.
You can go back and edit things later so that the account you're logging into the app with is separate from the role account being used for C2DM. But for the code generated by the plugin, they have to be the same account. Also, don't forget you actually have to sign up for C2DM, as it isn't enabled in all accounts by default.

Categories

Resources