Google app engine How do I implement an OpenID consumer in my Google App Engine project?

I want to use OpenID in my Java Google App Engine web application but I don't know where to start... I have looked at openid4java and joid. openid4java says you have to place some libraries on the "endorsed libraries"-path. I don't have one locally on my computer, and I sure don't know how to do that on Google App Engine. joid looks simple enough but doesn't look up to date or something because I get a HTTP 400 back from Google when I try to get an authentication. Any pointers?

Google app engine tiny random-looking ID generation

I'm trying to generate unique IDs for use in a Google App Engine application and would like feedback on the feasibility of the approach I'm thinking of using (questions at the end). I've read quite a few questions on this topic, but I don't remember coming across this particular approach. I'd like random-looking IDs, e.g., MD5 hashes, but I also want them to be small. Four to six characters, along the lines of tinyurl, would be ideal. The IDs will be for user-generated content, in the contex

Google app engine What's the best way to back up data on Google App Engine?

Google itself provides two solutions. One of these is new and experimental and requires you to run a separate command (and separately enter your username and password) for each kind of data you want to back up. The other requires you to twice write out information on the structure of all the kinds of your data, information that is already implicit in your models file. (We've got 25 different kinds of data so I'm sensitive

Google app engine gqlquery for no values in ListProperty

I have this code to find all the nodes where property branches is empty. nobranches=TreeNode.all() for tree in nobranches: if tree.branches==[]: I wanted to find a better, more efficient way to do this. A meathod where I don't have to retrieve all the TreeNodes. I have tried TreeNode.all().filter(branches=[]) but this gives me a message, "BadValueError('Filtering on lists is not supported'" . How can I do something like TreeNode.gql('WHERE branches=:1', []).fetch(100). I tried th

Google app engine App engine 1.4.0 urlfetch() data over 1M

the version of my app engine is 1.4.0.the data dem.bil is under the /war/dem.bil directory.and these are my codes to fetch the data dem.bil that is 3M: try{ URLConnection a = url.openConnection(); InputStream b = a.getInputStream(); int len = a.getContentLength(); if (len < 0) { return null; } //System.out.println("Total: "+len); byte[] c = new byte[len];

Google app engine Google app engine : How effective prospective search is for real world application?

Google app engine already has Prospective search in its experimental feature at least for python. How this prospective search is different from currently available full text engine alternatives? How efficient it is for real world web application, say product search. current full text alternatives are, Bill Katz's solution Django based solution gae-text-search, another python based solution

Google app engine Verification SMS - Google App Engine

I have a problem regarding Google App Engine. I wanted to create a new application and SMS verification code is required. I entered my phone number correctly, but i received nothing !!! ... again and again until "You have sent too many SMS verification messages." and yet i got nothing. I came by this question and tried it, but still not working: Is SMS the only way to register with Google App Engine? Does anyone know what can i do to solve this problem ? Thanks, Samer Samy

Google app engine How to avoid duplicates in GAE datastore?

Let's say here is the database structure: class News(db.Model): title = db.StringProperty() class NewsRating(db.Model): user = db.IntegerProperty() rating = db.IntegerProperty() news = db.ReferenceProperty(News) Each user can leave only one rating for each News. The following code doesn't care about duplicates: rating = NewsRating() rating.user = 123456 rating.rating = 1 = News.get_by_key_name('news-unique-key') rating.put() How should I modify that that it wil

Google app engine AppConfigNotFoundError for on Django-nonrel and Google App Engine

I'm trying to clear my local db like explained in the docs But when I try and run the --clear_datastore command I get --clear_datastore dennys Traceback (most recent call last): File "/usr/local/bin/", line 76, in <module> run_file(__file__, globals()) File "/usr/local/bin/", line 72, in run_file execfile(script_path, globals_) File "/Applications/Go

Google app engine GAE log on localhost to file

when i debug my GAE application on localhost, how can i save the log created with Logger class to file? I can see it in console now(stderr) but dont want to redirct console to file. I found some solutions for python but cant make it work for java. Please can you help me?

Google app engine Google AppEngine sending all requests to same instance

Lately, I have seen GAE taking much, much longer to process requests than it did just a week ago. Nothing changed in my code, but GAE now is taking 4000-12000ms to respond to requests. What makes is worse is that I have plenty of instances available with 0 requests on them. Has anyone else seen this happen? What can I do to fix it?I have gone as far as to spin up 15 extra instances (and paid through the nose for them) but nothing seems to send requests to the other idle instances reliably. My

Google app engine how to manually set a task to run in a gae queue for the second time

I have a task that runs in GAE queue. according to my logic, I want to determine if the task will run again or not. I don't want it do be normally executed by the queue and then to put it again in the queue because I want to have the ability to check the "X-AppEngine-TaskRetryCount" and quit trying after several attempts. To my understanding it seems that the only case that a task will re-executed is when an internal GAE error will happen (or If my code will take too long in a "DeadlineExceede

Google app engine google cloud endpoint with maven

I'm trying to work with google cloud endpoint on gae. I'm trying to integrate it maven. I've found this maven plugin to do so : I was able to define my api and produce the api. I'am able to call my api when it is deployed on app engine. But when i try to call it localy for debugging, I get the following exception : javax.servlet.ServletContext log: unavailable java.lang.IllegalArgumentException: '' not a valid path variable name at

Google app engine Google App Engine: (Python 2.7) Do Transactions work when using the Memcache as well as the Datastore

A few days ago I posted a question about Transactions and Idempotence but didn't get much response. Google App Engine: (Python) Datastore transactions and idempotence Today I realised that Transactions are a feature of the datastore but most of the time I am pulling my data from the Memcache, doing a bunch of work, then saving back to the memcache and datastore. I only get data from the datastore if the data is missing in the memcache. Will placing a function in a transaction prevent anoth

Google app engine GWT + Appengine + JPA + Eclipse + Maven: How to get them to work together

I have a project where I want to use the eclipse GWT tools (dev mode and debugger) to interact with the GWT/Appengine/Maven application I am writing. I have things in a somewhat working order but there are still a few things around the edges I don't have right. I will post the POM file if anyone could help me with these few issues. When I do a Maven->Update Project, I loose the appengine nature in the eclipse project properties and have to go to Properties, Google, AppEngine and recheck Use

Google app engine Bulk Download via Google App Engine Backend

I have 1.6 Million entities in a Google App Engine app that I would like to download. I tried using the built in bulkloader mechanism but found that it is terribly slow. While I can only download ~30 entities/second via the bulkloader, I can do ~500 entities/second by querying the datastore via a backend. A backend is necessary to circumvent the 60 second request limit. In addition, datastore queries can only live for up to 30 seconds so you need to break up your fetches across multiple queries

Google app engine Selecting GWT module to compile for deployment to App Engine

I introduced additional GWT modules where previously there's only been one in my GWT/GAE project. When deploying to App Engine via Google Plugin for Eclipse I noticed that the plugin compiles all the GWT modules in the project, which is not what I want. I wasn't able to find a way to tell GPE which GWT modules to compile for deployment. Is this at all possible?

Google app engine Why "form POST" stay in status "PENDING" when trying to uplaod image to blobstore

When I go to I see that images are uploaded (cf. blob viewer). In prod mode : In chrome dev tool, when I submit the form in order to upload the image, I see that the form stay in a "PENDING" status. The purpose of this mail is to help me to understand what should fail. In the Network tab, I hae the following Header : Request URL:

Google app engine How do I get a Google Admin to Fix my Project Console?

Short of paying $150/month so I can actually submit a ticket, what can I do to get Google's attention? I've seen other people get help for what appears to be the exact same issue. I uploaded a new (small) app to Google App Engine (GAE), and the Applications Settings page shows an error under Cloud Integration ("An error occurred when creating the project. Please retry"). I've retried over a period of days, but it tries for a while, then reports another failure. I've asked questions of StackO

Google app engine Is there an equivalent of AWS "security groups" between App Engine and Compute Engine instances?

TLDR; Are there any updates about this question? Google App Engine communicate with Compute Engine over internal network -- It is possibile to enable HTTP traffic between App Engine and Compute Engine instances that are in the same Cloud Project? Obviously denying all HTTP traffic from other sources. Between AWS EC2/RDS/Beanstalk this is possibile with "security groups".

Google app engine Google Apps Marketpalce Migration

I have integrated my application with Google apps marketplace with old version of OpenID and getting the data from Google calendar by using Google calendar version 2 API. Now I need to integrate every thing to new version. I have confused a little bit as Google is providing various authentication and authorization process. I looked in to OpenID connect, JWT (JSON Web Token), Google calendar version 3 service account. May any one please help me out from this issue like that should I use to authen

Google app engine Posting to Google+ Using Apps Scripts

I am trying to create an apps script that will post onto Google+. From here: function createPost() { var userId = 'me'; var post = { object: { originalContent : 'Happy Monday! #caseofthemondays' }, access: { items: [{ type: 'domain' }], domainRestricted: true } }; post = PlusDomains.Activities.insert(post, userId); Logger.log('Post created with URL: %s', post.url); } But I get an error: Forbidden (line 15, file "Code") Linke 15 is "

Google app engine Error while deploying Hadoop cluster (tutorial): The resource 'projects/project-id was not found

Good morning, I am new to the Google Cloud Platform. I am trying to follow the tutorial to deploy an Hadoop Cluster and I am experiencing some problems. I have installed the Cloud SDK, created a new project from the web interface, created a new bucket, enabled billing, obtained the permission "Can edit" (default), generated the pair of ssh keys and put them in $HOME/.ssh/ and configured the script to use my project and my bucket. This is what happens when I execute some commands i

Google app engine Import log files from Google Cloud Storage to BigQuery

We'r developing project which uploads log files (example below) from logstach into Google Cloud Storage. Then let App Engine import log data into BigQuery. The problem is BigQuery does not accepted some field names such as @timestamp ,created by logstach, in log file. How could I handle this.Can App Engine do anything to solve this? How can I define BigQuery schema for nested JSON (geoip:)? {"uuid":"8806ceef34123122cdd009063f301a34158252f53b9a7d3147639fb71f68b585","item_id":1234,"member_id":

Google app engine Google App Engine Access Cloud Datastore from Different Project

I have been trying to find a solution to accessing a datastore in one project from a different google app engine project. I went through the tutorial on accessing a datastore from a different project's compute engine, however, this is not what I am looking for. What is required here is accessing a datastore on one project from a different app engine project. Has anyone done this successfully? Any ideas? Cheers

Google app engine Retrieve a Blob by ID/Name from Google Blobstore

Storing images in Blobstore is working really well especially because of the serving url which doesn't require any frontend instances. ServingUrlOptions options = ServingUrlOptions.Builder.withBlobKey(blobKey); String url = imagesService.getServingUrl(options); After uploading the images I throw away the filenames (it is auto generated). Blobs in the datastore console have the kind __GsFileInfo__ and have the fields as follows: Key: agljbHV0dHJ3ZWJyY... Write Ops: 10 ID/Name: encoded_gs_key:

Google app engine Getting mp3 duration storaged in google app engine cloud storage

I have mp3 files storaged in Google App Engine Cloud Storage and I want to get their durations. I made this code with help from one guy here but unfortunately the class AudioSystem doesn't work with the Google App Engine Cloud Storage. Does someone know a way to do it? ListResult lr = gcsService.list(mybucketname, ListOptions.DEFAULT); while (lr.hasNext() && playlistLength > 0) { ListItem li =; String filename = li.getName(); GcsService gcsService = GcsServiceFactory.create

Google app engine google app engine soft memory error

In google app engine on python, I am getting the following error: exceeded soft private memory limit of 128 MB with 157 MB after servicing 2 requests total. I tried using these following commands to get rid of the problem. context = ndb.get_context() and context.set_cache_policy(False). I put this method in the and also in the handler that is supposed to handle the request. I was wondering if there is any other place to put this command or if I should be using a different com

Google app engine PHP Fatal error: Class 'Message' not found - Google App Engine

I am using Google App Engine and am trying to send email alerts with the Mail PHP API. I have defined a class with a public function but whenever I run it I get this error: PHP Fatal error: Class 'Message' not found in... PHP Code: use \google\appengine\api\mail\Message; class crawls { public function check() { try { $message = new Message(); $message->setSender('Name <>');

Google app engine Error posting to URL 400 Bad Request when I try deploy to app engine

A few months ago my application was deploying perfectly to appengine but I tried to deploy it today but I got these errors in the log: Beginning interaction for module default... May 07, 2016 3:46:08 AM send1 WARNING: Error posting to URL: 400 Bad Request Client Error (400)The request is invalid for an unspecified reason. This is try

Google app engine Google Cloud SQL DeadlineExceededError when we try commit changes

I get exception DeadlineExceededError from my app engine instance at 15:43 (UTC+03). DeadlineExceededError: The overall deadline for responding to the HTTP request was exceeded. In requested method logic like that def post(self): data = json.loads( user = User(**data['user']) db.session.add(user) db.session.commit() return '', 201, {'Location': url_for(request.endpoint)} Google Cloud SQL have incident, but it closed sooner than I got this exception. https:/

Google app engine Guestbook example app fails to pass moderate load test

I had performance issues with flexible app engine service that I wrote in Python. So I decided to conduct load tests on different languages and environments and this is what I found. Somehow autoscaler on flexible app engine won't work on Python! We are considering rewriting our service in another language! Can somebody explain how the performance can be so bad on a guestbook application in Python? I was expecting horizontal autoscaler to just WORK every time!

Google app engine Objectify: How does one use the @Container annotation?

The following (abstracted) code gives a StackOverflow error, I assume due to recursive referencing between Team and Member (Team contains Member, which contains Team, etc). @Entity public class Team { @Id public String id; public List<Member> members; public Team() { = UUID.randomUUID().toString(); } } public class Member { @Container Team team; //removing this line prevents error, but then how to reference this member's team? public Member() {} } How does o

Google app engine Adding custom domain to google app engine

I am a newbie to google compute engine, I looked at various tutorials and could add a custom domain to app engine. I added a sub domain as advised in the tutorial [][1]. I want my URL to be but it's showing a blank screen. What could I have possibly done wrong. I have added the resource names as suggested by google with my domain registrar. Please advice. Thanks in advance

Google app engine Login not asked by appengine with login required

I'm using Google AppEngine to deploy a webapp and I've set my app.yaml like this: handlers: - url: /assets static_dir: dist/assets - url: /dist static_dir: dist - url: /.* script: secure: always login: required When I open my app in Chrome Incognito mode, Flask handles the call to / and serve the file index.html (no direct access to this file, which is not even in /assets nor /dist) and then all my static resources are served (the CSS, JS present in index.html),

Google app engine Basic scaling instances of GAE don't shutdown even when idle-timeout is far exceeded

I have configured a version of my default service on Google App Engine Standard (Java, though that shouldn't make any difference) to use basic scaling and run a single B2 instance: <appengine-web-app xmlns=""> <application>${}</application> <version>tasks</version> <threadsafe>true</threadsafe> <runtime>java8</runtime> <module>default</module> <instance-class>B

Google app engine Change appengine ndb key

I have a game where I've (foolishly) made the db key equal to the users login email. I did this several years ago so I've got quite a few users now. Some users have asked to change their email login for my game. Is there a simple way to change the key? As far as I can tell I'd need to make a new entry with the new email and copy all the data across, then delete the old db entry. This is the user model but then I've got other models, like one for each game they are involved in, that store the

Google app engine AppEngine nodejs : how to protect a cron URL from public access? A cron handler is just a normal handler defined in app.yaml. You can prevent users from accessing URLs used by scheduled tasks by restricting access to administrator accounts. However this option is not available in nodejs. What's the recommended way to protect a CRON URL from public access with the nodejs runtime?

Google app engine Google App Engine Go 1.11 application can not access Google Spreadsheets

I'm trying to access google spreadsheet via API from the application running on Google App Engine Go 1.11 Standard Environment. Unfortunately, the application cannot read this spreadsheet. I'm getting next error on Spreadsheets.Values.Get call: googleapi: Error 403: Request had insufficient authentication scopes., forbidden sample code // Sample app showing issue with GAE -> google spreadsheets package main import ( "context" "fmt" "log" "net/http" "os" "cloud.g

Google app engine Connecting Node.js app on Google Cloud App Engine to a Google Cloud SQL instance

I have a Node app which uses MySQL, connecting via a config json: { "client": "mysql", "connection": { "host": "something", "user": "something", "password": "something", "database": "daimonion-db", "debug": false } } I've created a Google Cloud Platform SQL instance. I'm seeing an IP address and instance connection name. I've also deployed the Node app to Google Cloud App Engine in a flexible environment. How do I connect the Node app to t

Google app engine Use Google Access Token from another origin API

I need to access to a Core API store on Google App Engine from a web page using Google API JS . For Example : I've got this script that use Localstorage to store the generated access token function onSignIn(googleUser) { var profile = googleUser.getBasicProfile(); var token = googleUser.getAuthResponse().id_token; LocalStorage.setItem("accessToken", token); DisplayValues2(); } function DisplayValues2() { $.ajax({ url: 'h

Google app engine How solve High latency in app engine caused by "This request caused a new process to be started for your application..."?

App working with standard environment app engine, python 3.7 and cloud sql (Mysql) Checking the logs there are some with very high latencies (more than 4 seconds), when the expected are 800ms. All these logs are accompanied by this message: "This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application." I under

Google app engine Stackdriver Trace PHP: How to send spans in the background?

According to, App Engine flexible environment for PHP can run a daemon that sends trace spans to Stackdriver in the background rather than as part of the request processing (which could cause increased response latency). I am running Kubernetes Engine, but would still like to send trace requests in the background. Therefore: Is it possible to run that batch daemon myself? Out of curiosity, how does the Stackdriver PHP Exporter pass these spans to

  1    2   3   4   5   6  ... 下一页 最后一页 共 68 页