Getting Error 404, application not found error whe

2019-04-02 11:44发布

I have a Java Application, using Eclipse plugin. When I try to upload, I get error:

com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=my_appname&version=1&
404 Not Found
This application does not exist (app_id=u'my_appname').

Here, my_appname is the application id from my Google App Engine account. I have already checked the contents of appengine-web.xml, it looks fine:

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>my_appname</application>
  <version>1</version>
</appengine-web-app>

Why am I getting this error and how can I fix my application?

6条回答
我命由我不由天
2楼-- · 2019-04-02 11:47

Just to leave documented to others, I had similar issue while running it from command line. The first attempt was with the email I hold for other apps, so it did not find the app I was trying to update. Then, even forcing the option --email, still no luck.

It turned out that once the authentication is cached (with cookies), it will use it by default even if you force --email with a different credential. So, the solution is to add the option --no_cookies, which removes the previously stored cookie and prompts for the password of the email.

# assuming you are in the root directory of your app, 
# and GAE tools are in yout $PATH
$ appcfg.py --email {your email here} --no_cookies . 
查看更多
一夜七次
3楼-- · 2019-04-02 11:51

I also faced this problem , for solution try it

1->your application Id must be same as your application name in your google app engine account.

2->version must not be in dot(.) format.

查看更多
倾城 Initia
4楼-- · 2019-04-02 11:55

Got the exact same thing.

The above suggestion was correct. It was a permissions problem.

Go to the Google App Engine Console, open the app. Look down the left side, open Permissions link. I have two domain email accounts that I use. One was shown as having 'Owner' role with respect to the app. The other was not listed! The problem occurred because I was logged into Eclipse using the unauthorized (missing) email account.

Simply make sure you are logged into Eclipse GAE using an account that has 'Owner' or 'Developer' role and that will solve it.

查看更多
疯言疯语
5楼-- · 2019-04-02 12:01

Reason: This happens when you had changed your application name in "build.properties" file but its not updated into "appengine-web.xml" file.

Solution: Please go ahead and change application name in "appengine-web.xml" manually.

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>Modified_application_name</application>
  <version>1</version>
  <threadsafe>true</threadsafe>
</appengine-web-app>
查看更多
叼着烟拽天下
6楼-- · 2019-04-02 12:09

A common error is forget to edit the web.xml file, you must to specific the inicial web page.

<!-- Default page to serve --> <welcome-file-list>
<welcome-file>Default.html</welcome-file>  </welcome-file-list>

Best regards

查看更多
乱世女痞
7楼-- · 2019-04-02 12:10

try to check the permissions. Go to App Engine Console > Administration > Permissions > setup your permissions.

查看更多
登录 后发表回答