Error posting to URL: appengine.google.com/api/appversion/create - 404

萝らか妹 提交于 2020-01-06 19:53:16

问题


I have created a maven google app engine project from appengine-cloudsql-native-mysql-hibernate-jpa-demo-java. My project includes Rest webservices, Java, JPA and Hibernate.

Locally everything (rest webservices and database connection) working perfect. But when I try to deploy my code ...

I have a problem exactly same as Error posting to URL: appengine.google.com/api/appversion/create - 404.

I tried all possible ways (enlisted in above link) to solve it but unable to solve it.

Anybody can help me?


回答1:


Solution:

I have gone through many links but no luck, but now I am able to solve it using following step(s)

  1. You must be signed in in the eclipse with a google account. (already done)

  2. You must configure cloud sql (if you are using database - mysql in my case) (already done)

  3. After that run maven command something like mvn appengine:update (already done)

  4. Permissions. ( This is where I stuck ). Open the project on google app engine https://console.cloud.google.com/ . Goto IAM & Admin, select project then permissions. After that you see that your email id (say abcd@gmail.com) will be listed as an owner and another(dummy) email address like 664581334627-compute@developer.gserviceaccount.com and/or 664581334627@cloudservices.gserviceaccount.com. Give all above 3 email addresses rights of Project Editor and App Engine Deployer.

After this run mvn appengine:update and you will see there will be no exception/error. And you code will be deployed successfully.

P.S.: already done means that in original post I have already done these steps, but just wanted to let you know all possible steps.



来源:https://stackoverflow.com/questions/41636846/error-posting-to-url-appengine-google-com-api-appversion-create-404

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!