AngularJS and Cloud Endpoints on App Engine - angularjs

I have been using App Engine since last three years and recently started exploring AngularJS and Cloud Endpoints for creating web apps.
I started with this recipe given on Google developer's website and facing following problems since last three days. I am using Eclipse with GAE plugin - App Engine SDK 1.8.9. Used the plugin for generating the APIs.
Why it stops working on localhost when it was running fine just a few minutes ago? I get proxy html error now and then. Situation is like - sometimes it works, sometimes it doesn't!!
Why the same code when uploaded on GAE does not work at all (no data fetching or adding ) though things are working absolutely fine in API explorer?
Not posting my code since I am using the same code given in the above recipe.
My question is : why this surprising behavior - no consistency? Am I missing anything?
SOLVED:
We have to use https and not http. Working fine for me now.

Related

Running spring boot in google-cloud-eclipse

I've raised an issue in Google-cloud-eclipse but the situation is as follows.
I can run a spring-boot application in google appengine standard using the java8 profile, to do this however requires removing the embedded tomcat engine.
If I add a SpringBootServletInitializer then the project never shows as started in eclipse. (despite having started).
Is there a convenient flow for developing against Google app engine including spring boot, that allows for code changes on the fly?
Issue raised against google-cloud-eclipse

Cannot deploy new version to App Engine Flexible

I tried to deploy new version to app engine. But it keeps saying
vm_check_disk_space.sh and health check logs.
and on web browser it gives me 502 error saying
Error: Server Error
The server encountered a temporary error and could not complete your
request.
Please try again in 30 seconds.
I have tried 4 times trying to deploy but never worked.
I think you can reproduce this by deploying any project to app engine.
I am using Google Cloud SDK 157.0.0
and
tried to deploy service with java and nodejs environment
I received many weird errors like this while deploying months ago with both maven and gradle. Various strange things with app.yaml can cause this as well. Even the example projects provided from google contained strange bugs like this when deployed.
Try one of the test projects that google provides: Google NodeJS bookshelf app
(Hopefully this project has been fixed by now and will deploy correctly!!)
Also, it's possible that an old version can prevent your new code from deploying. Go to your console, and delete/stop all running versions of the service. (I have had issues with old versions becoming stuck, which causes issues with the new deployment becoming the default service).

Google Cloud Storage Client not working on dev appserver

I 'm building an AppEngine application that stores data in Google Cloud Storage. I use the Google Cloud Storage Client (GCS) library as suggested.
My app is working when deployed on AppEngine (reading/writing/listing objects) but I cannot make it work on the development server. The development server keeps returning error 404 and GCS raises NotFoundError. The dev-appserver is supposed to emulate the cloud storage functionality without any specific configurations etc. I see in the log files that the dev server is accepting requests at "/_ah/gcs" yet it seems that there is no handler for that url. I 've tried with version 1.8.5 and 1.8.6. Apart from my app, not even the demo app provided by Google works.
Is there something that I 'm missing here, e.g. a special configuration for the dev-appserver?
Sorry the following change was pushed out too early by mistake. It only works with 1.8.8 SDK. We are streamlining the release process of gcs client to align with SDK. Sorry
https://code.google.com/p/appengine-gcs-client/source/detail?r=125
Without this change, it works on 1.8.7 SDK.

Google App Engine Tutorial example not working

I deployed the Web Application "Google App Engine Tutorial example 1" (http://googcloudlabs.appspot.com/codelabexercise1.html) to GAE at the site http://templiba.appspot.com . I can access the site but the application is not saving the Product and Item values in the DataStore. The same is happening when I try on my local. It there a known fix for it? Or could you assist me with a Tutorial example with code that writes to the DataStore? Thank you.
Are you sure you made all the required modifications to the code provided as outlined in Step 4? When I migrated from Google App Engine for Python to Java, the Getting Started guide was very useful; it covers all the basic concepts starting from creating the Eclipse project while presenting the code in a easier way to understand (in my opinion) than the Code Labs which seem slighly outdated (broken links, etc).
Getting Started
Datastore Overview within Getting Started

Google App. Engine - Hosting our Web Application

All,
We are trying to host our web application on Google App. Engine with little success.
Here are the specifics:
The web application is built on HTML5, SVG & Javascript. We are using python 2.6 for upload. We initially used the following tutorial for upload but are getting errors once its uploaded.
Link to tutorial: http://www.labnol.org/internet/host-website-on-google-app-engine/18801/
We are getting errors in the appcfg.py python file. We are totally clueless how to go about using this so any guidance would be awesome, tutorials would be even more so.
UPDATE: Further to the outcry and Milimetric's helpful post, here is more detail:
We have managed to upload the web application onto the Google App Engine. Going into the dashboard, we can see the application is running (we can see the instance graphs and CPU stats), however, when we execute the custom link to the web application, we only get the 'Hello World' message.
We followed the tutorial by Milimetric & Rolled back the 'appcfg.py' to original state. Following the tutorial, we only made changes to the 'app.yaml' (inserted our application name). We didnt write any custom python script.
We are not getting any errors anywhere, only the message 'Hello World' upon executing the link in the browser window.
Hope the above is more useful.
Cheers,
If any of the following is redundant (or you already went through the steps), let me know and I'll edit. Just didn't know where to start or how familiar with app engine you were.
That tutorial will set up a functional app engine site. Were you able to get that running without any errors before adding your own code? Try running it locally with the launcher (localhost:8080 by default).
To add code, you have to start with the main.py file from the tutorial. Google app engine applications use the google.appengine.ext.webapp namespace to get started and listen to requests. In main.py, start with MainHandler and add code there.
To add more "routes" to your app, look at the WSGIApplication constructor: webapp.WSGIApplication ([('/(.*html)?', MainHandler)], debug=True) from their tutorial. So for example, you can have a route go to contact-us like this: webapp.WSGIApplication ([('/(.*html)?', MainHandler), ('/contact-us', ContactUsHandler)], debug=True).
As far as tutorials, the google app engine "Getting Started" tutorial is a good primer to get you in the mindset: http://code.google.com/appengine/docs/python/gettingstarted/
Google app engine is a cloud computing technology and it is designed for developing and hosting web applications it supports APIs, and frameworks. To solve this issue you ha eto understand app engine completely so to learn more about app engine visit the link above:
http://en.wikipedia.org/wiki/Google_App_Engine

Resources