[google-appengine] Re: Issues with Cloud SQL query parsing

2015-06-17 Thread Yann Le Bihan
I have the exact same pb.
Yann

On Monday, June 15, 2015 at 9:09:20 PM UTC-7, Glenn Molnar wrote:

 Hi,


 We are suddenly seeing SQLExceptions when attempting to execute a Cloud 
 SQL query, in a particular application environment as follows:


 java.sql.SQLException: Wrong number of parameters: expected 0, was given 1 
 Query: delete from ppq.channel where clientId = ? Parameters: 
 [7a8261ef-a3ff-480b-8024-05f959ccd762]


 The error message does not make a whole lot of sense, as clearly the query 
 has a ? parameter. This stopped working all of a sudden without any new 
 code being deployed, but only in a single app engine application. The exact 
 same code is running OK in other environments.


 The only difference we have been able to spot is that the environment we 
 are getting the error on is running appengine 1.9.23, but the others are 
 are still working are running 1.9.22. Has something changed that we need to 
 be aware of?


 Thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/791144cb-c571-4f6d-b968-11a02e51a95f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Best solution / practice for temp files with App Engine PHP?

2015-06-17 Thread Mars Lan
You can find the pricing details for GCS 
at https://cloud.google.com/storage/pricing

On Wednesday, June 17, 2015 at 10:17:58 AM UTC-7, Alex Kerr wrote:

 Thanks. No problems with tempnam, but I'm capacity planning for what is 
 likely to be a heavily loaded site with many users hitting simultaneously. 
 I want to avoid (or plan for) a situation where there is no spare memory in 
 a particular instance for another temp file to be created because it's 
 serving so many other users at the same time. I'm not sure if this is a 
 likely scenario or not because I don't know what the potential temp folder 
 capacity is and the maximum users one instance is likely to be serving 
 simultaneously.

 Current strategy is to try and create a temp file in vfs:// and if that 
 fails create one in Cloud Storage - but is it suitable for that kind of 
 momentary usage and would I incur significant cost (I realise no cost for 
 bandwidth if in the same region) or what's the minimum cost for each 
 momentary usage of Cloud Storage - is it billed by the second, hour or day? 
 (i.e. if used for 1 second, I get billed for a day?)

 Many thanks,
 Alex


 On Sunday, June 14, 2015 at 11:22:13 PM UTC+1, Stuart Langley wrote:

 Have you tried using tempnam 
 http://php.net/manual/en/function.tempnam.php? If so, what problems 
 did you see? That seems to be the obvious solution.

 On Sunday, 14 June 2015 05:11:03 UTC+10, Alex Kerr wrote:

 Hi,

 What's generally accepted wisdom/tech solution for temp files on GAE 
 using PHP, please?

 I need to store and process an image (a few hundred K in size) using PHP 
 that momentarily (e.g.  1 second) needs to exist as a temp file somewhere 
 before it's sent on elsewhere and the temp file can be deleted. My site 
 will need to autoscale for potentially large numbers of users (using GAE as 
 standard) - i.e. so site may need to be doing this for many users 
 simultaneously (all for different images) on however many GAE instances are 
 running.

 My idea was to attempt to store the temp file in memory (using tempnam() 
 etc) and if that failed (e.g. mem full on that instance), immediately try 
 and use some other storage instead on the fly. Question is what? Image has 
 to be available as a file for CURL to access it (I think?) and send 
 elsewhere, so Memcache is not an option (can't access the data as a file to 
 pass into CURL - or can I?), but e.g. Cloud Storage is (via 
 'gs://[bucket-name]/...'). Thing is, if I've just written the file to 
 storage, is it immediately available for reading? That's also a significant 
 cost incurred... Or Cloud Datastore? But again is file available for 
 reading immediately, and is there a file wrapper for access...?

 Any help much appreciated!

 Thanks,
 Alex



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/51640e6e-8427-4753-bab5-67801ab53b3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Issues with Cloud SQL query parsing

2015-06-17 Thread Ryan (Cloud Platform Support)
If anyone else runs into this issue please see this PIT. 
https://code.google.com/p/googleappengine/issues/detail?id=12066thanks=12066ts=1434572430

On Tuesday, June 16, 2015 at 12:09:20 AM UTC-4, Glenn Molnar wrote:

 Hi,


 We are suddenly seeing SQLExceptions when attempting to execute a Cloud 
 SQL query, in a particular application environment as follows:


 java.sql.SQLException: Wrong number of parameters: expected 0, was given 1 
 Query: delete from ppq.channel where clientId = ? Parameters: 
 [7a8261ef-a3ff-480b-8024-05f959ccd762]


 The error message does not make a whole lot of sense, as clearly the query 
 has a ? parameter. This stopped working all of a sudden without any new 
 code being deployed, but only in a single app engine application. The exact 
 same code is running OK in other environments.


 The only difference we have been able to spot is that the environment we 
 are getting the error on is running appengine 1.9.23, but the others are 
 are still working are running 1.9.22. Has something changed that we need to 
 be aware of?


 Thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4aa1523c-b105-4465-bf61-a0d6ee9da456%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Serving images

2015-06-17 Thread Stuart Langley
You need to use App Engine to use that class - there is no similar service 
available on compute eng

On Wednesday, 17 June 2015 22:08:01 UTC+10, mohamed hassan wrote:

 Salutations Stuart Langley,

 Thanks for reply . What do you mean exactly ? can not i use 
 CloudStorageTools on compute engine ? how can use these features of this 
 class on compute engine please ?

 Thanks .

 On Wed, Jun 17, 2015 at 1:42 AM, Stuart Langley slan...@google.com 
 javascript: wrote:

 FWIW CloudStorageTools only works on App Engine, not compute engine. 

 On Tuesday, 16 June 2015 22:43:12 UTC+10, mohamed hassan wrote:

 Really thanks for quick reply . What i need is to use image resizing and 
 cropping which exist in CloudStorageTools class which exist in Google PHP 
 SDK i need to retrieve images without any reducing in its resolution so i 
 wanted to use this feature from google so i need to know howa can i install 
 google php sdk on my google compute engine using SSH please provide me with 
 the commands that i can use to do that .

 Thanks .

 On Mon, Jun 15, 2015 at 9:08 PM, Michael (Cloud Platform Support) 
 mke...@google.com wrote:

 Hi Mohamed!

 What sort of issues are you running into when you try cropping and 
 resizing images? How about when you try installing the PHP SDK? Are you 
 noticing any particular error messages preventing you from using it at 
 all? 
 Also, once you have set this up, are you planning to allow users to access 
 your project? We'll need more information before we can point you in the 
 right direction.

 Cheers!

 On Monday, June 15, 2015 at 5:33:10 AM UTC-4, mohamed hassan wrote:

 Salutations ,

 Please i installed GCE and i need to use some features like crop 
 images and resize them which they saved in my buckets . i am working on 
 php 
 project so i heard about Google PHP SDK but i couldn't use it on GCE . So 
 can i use these features without using Google PHP SDK and if i can't can 
 you please tell me how to install it on GCE in details knowing that i 
 installed centos 6.5 .

 Thanks . 

  -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-appengine/yHnZ_-Q4Hu0/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/d26cddb7-230b-4544-a0b5-9e7c6033f70d%40googlegroups.com
  
 https://groups.google.com/d/msgid/google-appengine/d26cddb7-230b-4544-a0b5-9e7c6033f70d%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-appengine/yHnZ_-Q4Hu0/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to google-a...@googlegroups.com 
 javascript:.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/e8359df9-87ee-4b31-a269-45d518b48b04%40googlegroups.com
  
 https://groups.google.com/d/msgid/google-appengine/e8359df9-87ee-4b31-a269-45d518b48b04%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3725c04a-b4b4-4cee-817b-d2df1648b900%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: multiple applications on same subdomain.

2015-06-17 Thread Nick (Cloud Platform Support)
Hi Navneet, 

I'll try to answer your questions simply:

can we have multiple application on a single subdomain ?


It depends what you mean. A single fully-qualified domain name (like 
www.google.com) maps to a single IP address in the DNS system. Ultimately, 
the unique computer identified by that IP address will receive a TCP 
connection on port 80 from your user's computer. What gets sent in the 
response to GET / HTTP/1.1 will be *one *html document, representing the 
*single 
*website that they see. 

You can, however, as an example, use headers to dispatch requests to 
different web-apps hosted on the same server (I'm not speaking of App 
Engine here, but in general how webservers can be programmed). 

However, browsers generally don't allow users to customize headers when 
going to your site, so this is not a solution most developers will use (
appspot.com works this way - the Host header is used to determine which app 
the request should go to (that is, which subdomain of appspot.com), since 
the same front-end servers handle all appspot.com requests). In this way, 
you can have multiple web apps  on a single domain. 

*On App Engine, however, you can only have one App Engine app served from 
your custom domain. *When you set up your custom domain mapping, you do 
this for one project/app, and it can't be done with the same domain on 
multiple apps.

If you'd like to use subdomains of the domain you register serve different 
versions and modules of your App Engine app, you should look into the custom 
domains documentation 
https://cloud.google.com/appengine/docs/domain#subdomains. 

because i have ssl certificate for only 1 sub domain , 
 and  don't want to buy other one ,


This means that you can only serve https connections on exactly that 
subdomain. Therefore, you won't be able to serve version and module 
subdomains as described in the doc above. You'll need to:

* buy a wildcard certificate for the subdomains that will handle versions 
and modules (imagine you deployed module api version v1 - you'd access it 
at v1-dot-api.example.appspot.com)

or 

* buy a certificate with subject alternative name 
https://en.wikipedia.org/wiki/SubjectAltName entries that match the 
specific subdomains (such as v1-dot-api) that you'll want to use.

Finally, you can use dispatch files  
https://cloud.google.com/appengine/docs/python/modules/routingon App 
Engine to capture certain routes and send them to specific modules. So, you 
could deploy completely different apps to different modules, and have users 
access sub.hellow.com/app1 to reach app1, and sub.hellow.com/app2 to reach 
app2.

can we deploy both project separately then assign then same subdomain name.?


This doesn't make sense, since a custom domain mapping will be associated 
with a single app.

So, the two options are:

* use custom domains version/module subdomain routing with a wildcard 
certificate (or subject alt name extension to your certificate)

or 

* use the dispatch file to route requests on different routes (like /app1 
and /app2) to your different modules.

I hope this was helpful to you, and have a great day!

On Wednesday, June 17, 2015 at 4:43:37 PM UTC-4, navn...@senspan.com wrote:


 and I dun't want all under same project .


 can we deploy both project separately then assign then same subdomain 
 name.?
   

  


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f944d95d-772d-43de-91b5-9f872ca592b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Site security maintenance for a Python app on GAE: Easy?

2015-06-17 Thread Nick (Cloud Platform Support)
You're generally correct that we keep on top of critical security updates 
for all components of our infrastructure, including the python runtime that 
python App Engine uses, and python libraries.

However, some aspects of security are up to you as a developer: for example 
ensuring that your API only processes requests from valid clients, ensuring 
that users can only access the data on your app that is meant to be visible 
to them, ensuring that you don't expose yourself to SQL injection if you 
use a remote MySQL box for data storage, etc.

Using Endpoints https://cloud.google.com/appengine/docs/java/endpoints/ 
for your API, you can implement client auth 
https://cloud.google.com/appengine/docs/java/endpoints/auth, so there are 
even aspects of the platform that help you do these things in a way that 
respects best-practices. There's even a beta Security Scanner 
https://cloud.google.com/tools/security-scanner/ which is very good.

In general, programming any web app, these issues tend to come up. You'll 
also have to implement protections against XSS and XSRF, although not from 
scratch, as there are many great libraries and frameworks out there.

Does this help answer your question? Do you have any more specific 
questions about security?

On Wednesday, June 17, 2015 at 4:53:03 PM UTC-4, Tom Campbell wrote:

 I'm finishing up a web2py app that I will be deploying to paying 
 customers. I am not a great sysadmin.

 Seems like GAE is a good choice, because while I follow all web2py best 
 practices I'm always nervous about forgetting to apply a security patch to 
 the OS, or having an apt-get cause unforeseen problems. 

 Does GAE free me from these issues? It seems to me I simply need to write 
 to Python 2.7 and update web2py when necessary, and GAE takes care of OS 
 updates, security, etc.

 Is that correct or am I oversimplifying?







-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0e630471-ed56-4962-ae5a-011e510f0eda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Site security maintenance for a Python app on GAE: Easy?

2015-06-17 Thread Tom Campbell

 However, some aspects of security are up to you as a developer:

Yep, got that part--web2py happens to be super awesome at this stuff and
I'm also aware of these issues.

Does this help answer your question? Do you have any more specific
 questions about security?

It all sounds almost too good to be true, thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALXkWBR%3DDQP9Rp-4hMM43VbTFg1mAvniZ%2BX_g4iMcPA%2Bz_9L6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google App Engine inter module communication authorization (python)

2015-06-17 Thread Nick (Cloud Platform Support)
I can confirm this is occurring, and I've reproduced the issue. The issue 
is being tracked over in theApp Engine public issue tracker 
https://code.google.com/p/googleappengine/issues/detail?id=12069. Follow 
there for any updates.

For now, I think it's much better to be manually-inspecting the 
X-Appengine-Inbound-Appid header, as this is managed by the infrastructure 
and can't be spoofed.

You could also implement OAuth, but that adds overhead you may not want or 
need on a small app.

I've also posted the same as the above in the stackoverflow thread 
mentioned. 



On Wednesday, June 17, 2015 at 12:37:36 PM UTC-4, Diego Fernandez wrote:

 Hello,
 citing 
 *http://stackoverflow.com/questions/30237946/google-app-engine-inter-module-communication-authorization#comment49814138_30237946
  
 http://stackoverflow.com/questions/30237946/google-app-engine-inter-module-communication-authorization#comment49814138_30237946*
  
 the problem I have is that in the Docs (communication between modules) 
 https://cloud.google.com/appengine/docs/python/modules/#Python_Communication_between_modules
  it 
 says:

 *You can configure any manual or basic scaling module to accept requests 
 from other modules in your app by restricting its handler to only allow 
 administrator accounts, specifying login: admin for the appropriate handler 
 in the module's configuration file. With this restriction in place, any 
 URLFetch from any other module in the app will be automatically 
 authenticated by App Engine, and any request that is not from the 
 application will be rejected.*


 And this is exactly the configuration I have for my module called api1. 
 In my *app.yaml* file I have:

 # can accept requests from other modules. with login: admin and they are 
 authenticated automatically.
 - url: /.*
   script: _go_app
   login: admin

 I'm trying now, from a different module in the same app, to make a service 
 call as suggested in the doc using *urfetch.fetch()* method, and my 
 implementation is:

 from google.appengine.api import urlfetch, modules, app_identity
 from rest_framework.response import Response, status

 @api_view(['POST'])
 def validate_email(request):
 url = http://%s/; % modules.get_hostname(module=api1)
 payload = json.dumps({SOME_KEY:SOME_VALUE})

 appid = app_identity.get_application_id()
 result = urlfetch.fetch(url + emails/validate/document,
 follow_redirects=False,
 method=urlfetch.POST,
 payload=payload,
 headers={Content-Type:application/json)

 return Response({
 'status_code': result.status_code,
 'content': result.content
 }, status=status.HTTP_200_OK)

 According to the documentation, having specified the 
 *follow_redirects=False*, *fetch()* will automatically insert an header 
 in my call (I've even tried to add it explicitly) with the 
 *X-Appengine-Inbound-Appid 
 : MY-APP-ID*.
 Unfortunately I get as result of the fetch call a 302 redirect, if I 
 follow it, it's a redirect to the authentication form. This occurs in 
 Development server as well as in Production.

 Can you please let me know how can I call my *api1* service inside my 
 *validate_email* document (belonging to a different module in the same 
 app)?
 Is there another way to authenticate the call since it seems the way 
 suggested inside the documentation is not working?

 Thank you



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/08d0079c-ee07-4a97-a36b-437311f74ee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Suddenly App Engine not Serving Anymore: Error code 123

2015-06-17 Thread Tom Campbell
I couldn't really afford this kind of outage when my app is deployed. is 
there a away around this, for example, having both a US and  EUR -based 
servers?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/64814580-cf27-4ef5-b61a-1db52f431eb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] multiple applications on same subdomain.

2015-06-17 Thread navneet



 and I dun't want all under same project .


can we deploy both project separately then assign then same subdomain name.?
  

 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ca8ea26d-7a89-44c9-ba03-29f05822503b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Site security maintenance for a Python app on GAE: Easy?

2015-06-17 Thread Tom Campbell
I'm finishing up a web2py app that I will be deploying to paying customers. 
I am not a great sysadmin.

Seems like GAE is a good choice, because while I follow all web2py best 
practices I'm always nervous about forgetting to apply a security patch to 
the OS, or having an apt-get cause unforeseen problems. 

Does GAE free me from these issues? It seems to me I simply need to write 
to Python 2.7 and update web2py when necessary, and GAE takes care of OS 
updates, security, etc.

Is that correct or am I oversimplifying?





-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e11b8a4f-3962-4dfe-a115-66f9b810b3f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Suddenly App Engine not Serving Anymore: Error code 123

2015-06-17 Thread Karl-Heinz Müller
Hi Michael,

Thank you for following up. Now, the problem has been resolved. The 
incident has taken place from around 12:15 till 13:30 but now the pages are 
served as usual.

Thank you
Karl-Heinz

On Wednesday, June 17, 2015 at 4:29:11 PM UTC-4, Michael (Cloud Platform 
Support) wrote:

 Hi Karl,

 Are you still experiencing this issue? Does your two applications at all 
 connect to CloudSQL instances in the us-central1 region?

 Cheers!

 On Wednesday, June 17, 2015 at 1:01:36 PM UTC-4, Karl-Heinz Müller wrote:

 I have a few app engines running, serving different domain names using 
 the same application code php. 

 Two of them suddenly stopped serving content. In the log file I see the 
 following error message:

 I 12:56:46.855 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.
 E 12:56:46.855 Process terminated because the request deadline was 
 exceeded. (Error code 123)


 I have another app engine running the same application without any issues 
 and accessing the same data storage unit. Wondering why two shut down and 
 the other not. 


 No changes have been done. The incident started today 12:00


 Thanks



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/66db937c-0fd5-471a-bd7d-0a8e96a4b651%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Push Task Queue: Process terminated because the request deadline was exceeded during a loading request.

2015-06-17 Thread Michael (Cloud Platform Support)
Hi Mike!

I was just checking in on this thread, are you still experiencing this 
issue? Does your application connect to CloudSQL instances in the 
us-central1 region?

Cheers!

On Tuesday, June 16, 2015 at 7:55:51 PM UTC-4, Clint Doriot wrote:


 I have a push task queue that, even with relatively small load, produces a 
 lot of the following error: Process terminated because the request 
 deadline was exceeded during a loading request.

 Tasks that produce these errors run the full 600s before they time out, 
 tie up the task queue, and don't seem to call any of my handler code*. When 
 they do finally run, they typically take 1-60 seconds (probably average 
 closer to 20s).

 * I'm assuming its not running any of my main handler code because the 
 first line of my handler code is a print statement, and it never gets 
 logged. Also one of the early steps is hitting an external server, which 
 also never logs the hit.

 I'm also noticing that these errors seem to be generated by a subset of 
 the same instances. Its like the instance gets tripped up and doesn't 
 process any of the requests that get sent to it. Those instances seem to 
 have no valid requests that have gone through.


 This is the main error I'm seeing:

 E 2015-06-16 17:42:27.108 500 0 B 605.3s E 17:42:27.105 
 /tasks/sync-twitter/friends/tw:944039 0.1.0.2 - - [16/Jun/2015:14:42:27 
 -0700] POST /tasks/sync-twitter/friends/tw:944039 HTTP/1.1 500 0 
 https://my-app.appspot.com/api/user; AppEngine-Google; 
 (+http://code.google.com/appengine) sync-twitter.my-app.appspot.com 
 ms=605304 cpu_ms=2 queue_name=sync-twitter-1 task_name=873919997852904174 
 pending_ms=5754 exit_code=125 
 instance=00c61b117cfd2005f05f45857103617298e8e508 app_engine_release=1.9.22 E 
 17:42:27.105 Process terminated because the request deadline was exceeded 
 during a loading request.


 But I also get a lot of similar deadline errors from seemingly random 
 points in the code:

 Traceback (most recent call last): File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 240, in Handle handler = 
 _config_handle.add_wsgi_middleware(self._LoadHandler()) File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) 
 File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 85, in LoadObject obj = __import__(path[0]) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/sync_twitter.py,
  
 line 18, in module from project.tasks import queue_sync_twitter_network 
 File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/tasks.py,
  
 line 12, in module import project.models File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/models/__init__.py,
  
 line 3, in module import leaderboards File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/models/leaderboards.py,
  
 line 16, in module import project.game_date as game_date File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/game_date.py,
  
 line 11, in module PROJECT_TZ_INFO = pytz.timezone('Pacific/Honolulu') 
 File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/lib/pytz/__init__.py,
  
 line 171, in timezone _tzinfo_cache[zone] = build_tzinfo(zone, 
 open_resource(zone)) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/lib/pytz/__init__.py,
  
 line 86, in open_resource return loader.open_resource(name) 
 DeadlineExceededError

 ...or...

 Traceback (most recent call last): File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 240, in Handle handler = 
 _config_handle.add_wsgi_middleware(self._LoadHandler()) File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) 
 File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 85, in LoadObject obj = __import__(path[0]) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/sync_twitter.py,
  
 line 18, in module from project.tasks import queue_sync_twitter_network 
 File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/tasks.py,
  
 line 2, in module Functions for adding tasks to their respective 
 task queues DeadlineExceededError


 Anyone have any idea as to what might be causing these errors?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this 

[google-appengine] multiple application on same subdomain.

2015-06-17 Thread navneet
hii, 

can we have multiple application on a single subdomain ?

because i have ssl certificate for only 1 sub domain , 
and  don't want to buy other one ,
 so i want to deploy the 2nd application under same subdomain name.

eg  sub.hellow.com  can have 2 application in it ?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/50948d4e-5c11-4956-9794-76985100ddc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: URL redirects to Appspot.com and I want to remove it

2015-06-17 Thread Nick (Cloud Platform Support)
Hey Brad,

Google Groups isn't really the right place to look for 1-on-1 support, 
although I'm happy to provide some advice on things you can test for. 
Generally, a question like this should either be answered through opening a 
support 
ticket http://cloud.google.com/support, or through posting to 
stackoverflow http://stackoverflow.com/questions/tagged/google-app-engine 
with enough information that somebody could begin to understand the problem.

In order to determine whether you're dealing with a 3xx redirect 
https://en.wikipedia.org/wiki/URL_redirection#HTTP_status_codes_3xx or a 
DNS redirect (CNAME record), you should run some commands which test the 
HTTP responses from test.domain.com are in the 300-399 range, or whether 
there's a CNAME record on that domain.

You can run the following command to check the HTTP response status and 
headers for test.domain.com:

curl -s -D - http://test.domain.com -o /dev/null


You can run the following command to check the zone file of the domain:

dig test.domain.com


 I'll monitor this thread to see if you have any trouble with this, but 
keep in mind that in-depth 1-on-1 support isn't meant to be provided via 
this forum. Wishing you luck!

On Wednesday, June 17, 2015 at 10:24:38 AM UTC-4, Brad Bowers wrote:

 A previous engineer that is no longer with us had setup a status page for 
 an application on appspot.com.  For example test.domain.com when down 
 would redirect to this status page.  I want to remove this redirect to send 
 this to a new status page, but can't figure out how the redirect was 
 performed.   Currently I have deleted the old DNS entry both internally and 
 externally to test.domain.com.   I have configured a CNAME for 
 test.domain.com to point to status.domain.com.  Status.domain.com is a 
 local server internally where we just have an IIS page displayed for the 
 outage.  So this works fine internally when trying to access 
 https://test.domain.com it redirects to https://status.domain.com. 
  Externally it works for both http and https.  However, internally when 
 accessing http://test.domain.com I am getting redirected to 
 status.appspot.com.  There are no other internal DNS entries for 
 test.domain.com and I have cleared DNS cache and flushed cache 
 internally.  How is this being redirected to the appspot status page?  


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b1062f69-adfc-45db-9730-5d357e7c4324%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Best solution / practice for temp files with App Engine PHP?

2015-06-17 Thread Stuart Langley
If you're doing images a few hundred K in size I seriously doubt you'll hit 
memory limits using vfs:// - I'd start there.

On Thursday, 18 June 2015 03:17:58 UTC+10, Alex Kerr wrote:

 Thanks. No problems with tempnam, but I'm capacity planning for what is 
 likely to be a heavily loaded site with many users hitting simultaneously. 
 I want to avoid (or plan for) a situation where there is no spare memory in 
 a particular instance for another temp file to be created because it's 
 serving so many other users at the same time. I'm not sure if this is a 
 likely scenario or not because I don't know what the potential temp folder 
 capacity is and the maximum users one instance is likely to be serving 
 simultaneously.

 Current strategy is to try and create a temp file in vfs:// and if that 
 fails create one in Cloud Storage - but is it suitable for that kind of 
 momentary usage and would I incur significant cost (I realise no cost for 
 bandwidth if in the same region) or what's the minimum cost for each 
 momentary usage of Cloud Storage - is it billed by the second, hour or day? 
 (i.e. if used for 1 second, I get billed for a day?)

 Many thanks,
 Alex


 On Sunday, June 14, 2015 at 11:22:13 PM UTC+1, Stuart Langley wrote:

 Have you tried using tempnam 
 http://php.net/manual/en/function.tempnam.php? If so, what problems 
 did you see? That seems to be the obvious solution.

 On Sunday, 14 June 2015 05:11:03 UTC+10, Alex Kerr wrote:

 Hi,

 What's generally accepted wisdom/tech solution for temp files on GAE 
 using PHP, please?

 I need to store and process an image (a few hundred K in size) using PHP 
 that momentarily (e.g.  1 second) needs to exist as a temp file somewhere 
 before it's sent on elsewhere and the temp file can be deleted. My site 
 will need to autoscale for potentially large numbers of users (using GAE as 
 standard) - i.e. so site may need to be doing this for many users 
 simultaneously (all for different images) on however many GAE instances are 
 running.

 My idea was to attempt to store the temp file in memory (using tempnam() 
 etc) and if that failed (e.g. mem full on that instance), immediately try 
 and use some other storage instead on the fly. Question is what? Image has 
 to be available as a file for CURL to access it (I think?) and send 
 elsewhere, so Memcache is not an option (can't access the data as a file to 
 pass into CURL - or can I?), but e.g. Cloud Storage is (via 
 'gs://[bucket-name]/...'). Thing is, if I've just written the file to 
 storage, is it immediately available for reading? That's also a significant 
 cost incurred... Or Cloud Datastore? But again is file available for 
 reading immediately, and is there a file wrapper for access...?

 Any help much appreciated!

 Thanks,
 Alex



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dc8c0ade-0a80-4c93-9de2-1222ee53e382%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Process terminated because the request deadline was exceeded. (Error code 123)

2015-06-17 Thread Antoine Azar
Hi Michael, thanks for following up. How can I find out where our CloudSQL
instances are located? Also, as we were down for over an hour today, do you
have recommendations in the future on what we should do?

Thanks,
Antoine


From:  Michael (Cloud Platform Support) mkev...@google.com
Reply-To:  google-appengine@googlegroups.com
Date:  Wednesday, June 17, 2015 at 4:28 PM
To:  google-appengine@googlegroups.com, Antoine Azar
anto...@thirdshelf.com
Subject:  [google-appengine] Re: Process terminated because the request
deadline was exceeded. (Error code 123)

Hi Antoine!

I was just checking in on this thread, are you still experiencing this
issue? Does your application connect to CloudSQL instances in the
us-central1 region?

Cheers!

On Wednesday, June 17, 2015 at 1:01:30 PM UTC-4, AntoineA wrote:
 We're seeing this right now on two different GAE projects, with all calls
 failing with the error Process terminated because the request deadline was
 exceeded. (Error code 123).
 
 This has been going on for at least 45 minutes, since 12:14 EST. This kind of
 downtime is unacceptable. The Google status board shows all healthy. We tried
 restarting the instances, reuploading the codebase, etc, no success.

-- 
You received this message because you are subscribed to a topic in the
Google Groups Google App Engine group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-appengine/0QWBQwoRWTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/8e2d5ad8-3af7-4b0e-84ef-1
50b27af61f4%40googlegroups.com
https://groups.google.com/d/msgid/google-appengine/8e2d5ad8-3af7-4b0e-84ef-
150b27af61f4%40googlegroups.com?utm_medium=emailutm_source=footer .
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/D1A79395.D1CD8%25antoine%40thirdshelf.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to dispatch to a specific version of a module?

2015-06-17 Thread Gadi


 Hiroshi Saito,

You are right !
It would help to clarify the docs on this... 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e3a63da4-8b54-4829-a041-68063bfdebea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] I lost the source code of my application from eclipse, I have deployed it on google app engine

2015-06-17 Thread navneet
I lost the source code of my application from eclipse, but  I have deployed 
it on google app engine, can i get the files back , is their any way to 
download them
?
 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/825542fd-84ca-4c3a-b28b-02b0c1f0c669%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Best solution / practice for temp files with App Engine PHP?

2015-06-17 Thread Alex Kerr
Thanks. No problems with tempnam, but I'm capacity planning for what is 
likely to be a heavily loaded site with many users hitting simultaneously. 
I want to avoid (or plan for) a situation where there is no spare memory in 
a particular instance for another temp file to be created because it's 
serving so many other users at the same time. I'm not sure if this is a 
likely scenario or not because I don't know what the potential temp folder 
capacity is and the maximum users one instance is likely to be serving 
simultaneously.

Current strategy is to try and create a temp file in vfs:// and if that 
fails create one in Cloud Storage - but is it suitable for that kind of 
momentary usage and would I incur significant cost (I realise no cost for 
bandwidth if in the same region) or what's the minimum cost for each 
momentary usage of Cloud Storage - is it billed by the second, hour or day? 
(i.e. if used for 1 second, I get billed for a day?)

Many thanks,
Alex


On Sunday, June 14, 2015 at 11:22:13 PM UTC+1, Stuart Langley wrote:

 Have you tried using tempnam 
 http://php.net/manual/en/function.tempnam.php? If so, what problems did 
 you see? That seems to be the obvious solution.

 On Sunday, 14 June 2015 05:11:03 UTC+10, Alex Kerr wrote:

 Hi,

 What's generally accepted wisdom/tech solution for temp files on GAE 
 using PHP, please?

 I need to store and process an image (a few hundred K in size) using PHP 
 that momentarily (e.g.  1 second) needs to exist as a temp file somewhere 
 before it's sent on elsewhere and the temp file can be deleted. My site 
 will need to autoscale for potentially large numbers of users (using GAE as 
 standard) - i.e. so site may need to be doing this for many users 
 simultaneously (all for different images) on however many GAE instances are 
 running.

 My idea was to attempt to store the temp file in memory (using tempnam() 
 etc) and if that failed (e.g. mem full on that instance), immediately try 
 and use some other storage instead on the fly. Question is what? Image has 
 to be available as a file for CURL to access it (I think?) and send 
 elsewhere, so Memcache is not an option (can't access the data as a file to 
 pass into CURL - or can I?), but e.g. Cloud Storage is (via 
 'gs://[bucket-name]/...'). Thing is, if I've just written the file to 
 storage, is it immediately available for reading? That's also a significant 
 cost incurred... Or Cloud Datastore? But again is file available for 
 reading immediately, and is there a file wrapper for access...?

 Any help much appreciated!

 Thanks,
 Alex



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/28f8c178-e7ef-40e8-a7da-8c130f2e0fe3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Push Task Queue: Process terminated because the request deadline was exceeded during a loading request.

2015-06-17 Thread Mike D
As of this morning none of our apps (test, demo, production) are running. 
 Nothing changed over night.  Could this be the reason why?  Even now our 
apps won't run.  The GAE log shows: Process terminated because the request 
deadline was exceeded. (Error code 123).

There are multiple instances running.  We shut them all down and try 
accessing the app and the browser just waits and multiple instances start 
up again.

On Wednesday, June 17, 2015 at 6:50:21 AM UTC-7, Michael (Cloud Platform 
Support) wrote:

 Hi Clint,

 There was a known issue that occurred yesterday within your timeframe 
 involving application deployment difficulties and large task queue latency 
 spikes. This has since been resolved and you should be good to go from 
 here. You can find more info in this incident report 
 https://status.cloud.google.com/incident/appengine/15019.

 Cheers!

 On Tuesday, June 16, 2015 at 7:55:51 PM UTC-4, Clint Doriot wrote:


 I have a push task queue that, even with relatively small load, produces 
 a lot of the following error: Process terminated because the request 
 deadline was exceeded during a loading request.

 Tasks that produce these errors run the full 600s before they time out, 
 tie up the task queue, and don't seem to call any of my handler code*. When 
 they do finally run, they typically take 1-60 seconds (probably average 
 closer to 20s).

 * I'm assuming its not running any of my main handler code because the 
 first line of my handler code is a print statement, and it never gets 
 logged. Also one of the early steps is hitting an external server, which 
 also never logs the hit.

 I'm also noticing that these errors seem to be generated by a subset of 
 the same instances. Its like the instance gets tripped up and doesn't 
 process any of the requests that get sent to it. Those instances seem to 
 have no valid requests that have gone through.


 This is the main error I'm seeing:

 E 2015-06-16 17:42:27.108 500 0 B 605.3s E 17:42:27.105 
 /tasks/sync-twitter/friends/tw:944039 0.1.0.2 - - [16/Jun/2015:14:42:27 
 -0700] POST /tasks/sync-twitter/friends/tw:944039 HTTP/1.1 500 0 
 https://my-app.appspot.com/api/user; AppEngine-Google; 
 (+http://code.google.com/appengine) sync-twitter.my-app.appspot.com 
 ms=605304 cpu_ms=2 queue_name=sync-twitter-1 task_name=873919997852904174 
 pending_ms=5754 exit_code=125 
 instance=00c61b117cfd2005f05f45857103617298e8e508 app_engine_release=1.9.22 
 E 17:42:27.105 Process terminated because the request deadline was exceeded 
 during a loading request.


 But I also get a lot of similar deadline errors from seemingly random 
 points in the code:

 Traceback (most recent call last): File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 240, in Handle handler = 
 _config_handle.add_wsgi_middleware(self._LoadHandler()) File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) 
 File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 85, in LoadObject obj = __import__(path[0]) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/sync_twitter.py,
  
 line 18, in module from project.tasks import 
 queue_sync_twitter_network File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/tasks.py,
  
 line 12, in module import project.models File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/models/__init__.py,
  
 line 3, in module import leaderboards File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/models/leaderboards.py,
  
 line 16, in module import project.game_date as game_date File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/game_date.py,
  
 line 11, in module PROJECT_TZ_INFO = pytz.timezone('Pacific/Honolulu') 
 File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/lib/pytz/__init__.py,
  
 line 171, in timezone _tzinfo_cache[zone] = build_tzinfo(zone, 
 open_resource(zone)) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/lib/pytz/__init__.py,
  
 line 86, in open_resource return loader.open_resource(name) 
 DeadlineExceededError

 ...or...

 Traceback (most recent call last): File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 240, in Handle handler = 
 _config_handle.add_wsgi_middleware(self._LoadHandler()) File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) 
 File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 85, in LoadObject obj = __import__(path[0]) File 

Re: [google-appengine] Re: Connect Google App Engine to Google Compute Engine

2015-06-17 Thread Nick (Cloud Platform Support)
Seconding what Alex has said - if you'd like to run an Endpoints API 
https://cloud.google.com/appengine/docs/java/endpoints/*and *redis on 
your instance (although for reasons explained above, I advise against this 
and you'd do much better to put the DB on a Compute Engine instance), 
Managed VMs are the option you'd want to use, since they allow arbitrary 
port connections, processes and filesystem access (all needed by 
redis/mongo/mysql/etc.).

On Wednesday, June 17, 2015 at 11:36:23 AM UTC-4, Alex Martelli wrote:

 You can use App Engine services, including Cloud Endpoints, on compute 
 engine via Google's *Managed VMs* product (currently in beta release -- see 
 https://cloud.google.com/appengine/docs/java/managed-vms/ ).


 Alex


 On Tue, Jun 16, 2015 at 11:10 PM, Al Hennessey alhennesse...@gmail.com 
 wrote:

 Thank you for the info, its really helped to start understanding this, 
 one thing i was wondering was that i have heard a lot about google 
 endpoints and using them to connect to gae etc... and i was wondering 
 whether they could be used to connect to google compute engine as well, say 
 if i was running mongodb or redis on a vm, whether i could use endpoints to 
 connect my android and ios apps to them, or do i need to use another client?
 Thanks again

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/591b71af-2b16-43c8-9626-6034db514e90%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c3924498-01f4-4571-9a8a-d8e00ae503b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Process terminated because the request deadline was exceeded. (Error code 123)

2015-06-17 Thread Michael (Cloud Platform Support)
Hi Antoine!

I was just checking in on this thread, are you still experiencing this 
issue? Does your application connect to CloudSQL instances in the 
us-central1 region?

Cheers!

On Wednesday, June 17, 2015 at 1:01:30 PM UTC-4, AntoineA wrote:

 We're seeing this right now on two different GAE projects, with all calls 
 failing with the error Process terminated because the request deadline 
 was exceeded. (Error code 123). 

 This has been going on for at least 45 minutes, since 12:14 EST. This kind 
 of downtime is unacceptable. The Google status board shows all healthy. We 
 tried restarting the instances, reuploading the codebase, etc, no success.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8e2d5ad8-3af7-4b0e-84ef-150b27af61f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Suddenly App Engine not Serving Anymore: Error code 123

2015-06-17 Thread Michael (Cloud Platform Support)
Hi Karl,

Are you still experiencing this issue? Does your two applications at all 
connect to CloudSQL instances in the us-central1 region?

Cheers!

On Wednesday, June 17, 2015 at 1:01:36 PM UTC-4, Karl-Heinz Müller wrote:

 I have a few app engines running, serving different domain names using the 
 same application code php. 

 Two of them suddenly stopped serving content. In the log file I see the 
 following error message:

 I 12:56:46.855 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.
 E 12:56:46.855 Process terminated because the request deadline was 
 exceeded. (Error code 123)


 I have another app engine running the same application without any issues and 
 accessing the same data storage unit. Wondering why two shut down and the 
 other not. 


 No changes have been done. The incident started today 12:00


 Thanks



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/74dedd90-376f-49bf-b7eb-c05f5fde981f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Serving images

2015-06-17 Thread mohamed hassan
Salutations Stuart Langley,

Thanks for reply . What do you mean exactly ? can not i use
CloudStorageTools on compute engine ? how can use these features of this
class on compute engine please ?

Thanks .

On Wed, Jun 17, 2015 at 1:42 AM, Stuart Langley slang...@google.com wrote:

 FWIW CloudStorageTools only works on App Engine, not compute engine.

 On Tuesday, 16 June 2015 22:43:12 UTC+10, mohamed hassan wrote:

 Really thanks for quick reply . What i need is to use image resizing and
 cropping which exist in CloudStorageTools class which exist in Google PHP
 SDK i need to retrieve images without any reducing in its resolution so i
 wanted to use this feature from google so i need to know howa can i install
 google php sdk on my google compute engine using SSH please provide me with
 the commands that i can use to do that .

 Thanks .

 On Mon, Jun 15, 2015 at 9:08 PM, Michael (Cloud Platform Support) 
 mke...@google.com wrote:

 Hi Mohamed!

 What sort of issues are you running into when you try cropping and
 resizing images? How about when you try installing the PHP SDK? Are you
 noticing any particular error messages preventing you from using it at all?
 Also, once you have set this up, are you planning to allow users to access
 your project? We'll need more information before we can point you in the
 right direction.

 Cheers!

 On Monday, June 15, 2015 at 5:33:10 AM UTC-4, mohamed hassan wrote:

 Salutations ,

 Please i installed GCE and i need to use some features like crop images
 and resize them which they saved in my buckets . i am working on php
 project so i heard about Google PHP SDK but i couldn't use it on GCE . So
 can i use these features without using Google PHP SDK and if i can't can
 you please tell me how to install it on GCE in details knowing that i
 installed centos 6.5 .

 Thanks .

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/yHnZ_-Q4Hu0/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/d26cddb7-230b-4544-a0b5-9e7c6033f70d%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/d26cddb7-230b-4544-a0b5-9e7c6033f70d%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/yHnZ_-Q4Hu0/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/e8359df9-87ee-4b31-a269-45d518b48b04%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/e8359df9-87ee-4b31-a269-45d518b48b04%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALyG8V%2B8%3DOn%3DV1tmjR8Om84noBEFcMgbSUbZNVoufHcWNvYApQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Connect Google App Engine to Google Compute Engine

2015-06-17 Thread Al Hennessey
Thank you for the info, its really helped to start understanding this, one 
thing i was wondering was that i have heard a lot about google endpoints and 
using them to connect to gae etc... and i was wondering whether they could be 
used to connect to google compute engine as well, say if i was running mongodb 
or redis on a vm, whether i could use endpoints to connect my android and ios 
apps to them, or do i need to use another client?
Thanks again

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/591b71af-2b16-43c8-9626-6034db514e90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot use manual or basic scaling in default version of the default module

2015-06-17 Thread Mihail Lesikov

Yes, on the new console it works, I did not think about it.
Now I can switch to a manual or basic scaling. 
Thank you.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d68093b1-67bd-4dc0-8b0b-d1ae97b27af7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Push Task Queue: Process terminated because the request deadline was exceeded during a loading request.

2015-06-17 Thread Michael (Cloud Platform Support)
Hi Clint,

There was a known issue that occurred yesterday within your timeframe 
involving application deployment difficulties and large task queue latency 
spikes. This has since been resolved and you should be good to go from 
here. You can find more info in this incident report 
https://status.cloud.google.com/incident/appengine/15019.

Cheers!

On Tuesday, June 16, 2015 at 7:55:51 PM UTC-4, Clint Doriot wrote:


 I have a push task queue that, even with relatively small load, produces a 
 lot of the following error: Process terminated because the request 
 deadline was exceeded during a loading request.

 Tasks that produce these errors run the full 600s before they time out, 
 tie up the task queue, and don't seem to call any of my handler code*. When 
 they do finally run, they typically take 1-60 seconds (probably average 
 closer to 20s).

 * I'm assuming its not running any of my main handler code because the 
 first line of my handler code is a print statement, and it never gets 
 logged. Also one of the early steps is hitting an external server, which 
 also never logs the hit.

 I'm also noticing that these errors seem to be generated by a subset of 
 the same instances. Its like the instance gets tripped up and doesn't 
 process any of the requests that get sent to it. Those instances seem to 
 have no valid requests that have gone through.


 This is the main error I'm seeing:

 E 2015-06-16 17:42:27.108 500 0 B 605.3s E 17:42:27.105 
 /tasks/sync-twitter/friends/tw:944039 0.1.0.2 - - [16/Jun/2015:14:42:27 
 -0700] POST /tasks/sync-twitter/friends/tw:944039 HTTP/1.1 500 0 
 https://my-app.appspot.com/api/user; AppEngine-Google; 
 (+http://code.google.com/appengine) sync-twitter.my-app.appspot.com 
 ms=605304 cpu_ms=2 queue_name=sync-twitter-1 task_name=873919997852904174 
 pending_ms=5754 exit_code=125 
 instance=00c61b117cfd2005f05f45857103617298e8e508 app_engine_release=1.9.22 E 
 17:42:27.105 Process terminated because the request deadline was exceeded 
 during a loading request.


 But I also get a lot of similar deadline errors from seemingly random 
 points in the code:

 Traceback (most recent call last): File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 240, in Handle handler = 
 _config_handle.add_wsgi_middleware(self._LoadHandler()) File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) 
 File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 85, in LoadObject obj = __import__(path[0]) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/sync_twitter.py,
  
 line 18, in module from project.tasks import queue_sync_twitter_network 
 File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/tasks.py,
  
 line 12, in module import project.models File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/models/__init__.py,
  
 line 3, in module import leaderboards File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/models/leaderboards.py,
  
 line 16, in module import project.game_date as game_date File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/game_date.py,
  
 line 11, in module PROJECT_TZ_INFO = pytz.timezone('Pacific/Honolulu') 
 File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/lib/pytz/__init__.py,
  
 line 171, in timezone _tzinfo_cache[zone] = build_tzinfo(zone, 
 open_resource(zone)) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/lib/pytz/__init__.py,
  
 line 86, in open_resource return loader.open_resource(name) 
 DeadlineExceededError

 ...or...

 Traceback (most recent call last): File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 240, in Handle handler = 
 _config_handle.add_wsgi_middleware(self._LoadHandler()) File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) 
 File 
 /base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py,
  
 line 85, in LoadObject obj = __import__(path[0]) File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/sync_twitter.py,
  
 line 18, in module from project.tasks import queue_sync_twitter_network 
 File 
 /base/data/home/apps/s~project-test/sync-twitter:v2.385068030814249794/common/project/tasks.py,
  
 line 2, in module Functions for adding tasks to their respective 
 task queues DeadlineExceededError


 Anyone have any idea as to what might be causing these errors?


-- 
You received this message because you are subscribed to the Google Groups 

[google-appengine] URL redirects to Appspot.com and I want to remove it

2015-06-17 Thread Brad Bowers
A previous engineer that is no longer with us had setup a status page for 
an application on appspot.com.  For example test.domain.com when down 
would redirect to this status page.  I want to remove this redirect to send 
this to a new status page, but can't figure out how the redirect was 
performed.   Currently I have deleted the old DNS entry both internally and 
externally to test.domain.com.   I have configured a CNAME for 
test.domain.com to point to status.domain.com.  Status.domain.com is a 
local server internally where we just have an IIS page displayed for the 
outage.  So this works fine internally when trying to access 
https://test.domain.com it redirects to https://status.domain.com. 
 Externally it works for both http and https.  However, internally when 
accessing http://test.domain.com I am getting redirected to 
status.appspot.com.  There are no other internal DNS entries for 
test.domain.com and I have cleared DNS cache and flushed cache internally. 
 How is this being redirected to the appspot status page?  

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/faacb0f6-61b4-4f42-83f4-5788f6668800%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Suddenly App Engine not Serving Anymore: Error code 123

2015-06-17 Thread Karl-Heinz Müller
I have a few app engines running, serving different domain names using the 
same application code php. 

Two of them suddenly stopped serving content. In the log file I see the 
following error message:

I 12:56:46.855 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.
E 12:56:46.855 Process terminated because the request deadline was 
exceeded. (Error code 123)


I have another app engine running the same application without any issues and 
accessing the same data storage unit. Wondering why two shut down and the other 
not. 


No changes have been done. The incident started today 12:00


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/daa09bac-f6dd-4a6b-bac3-79e9e5bde19c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Process terminated because the request deadline was exceeded. (Error code 123)

2015-06-17 Thread AntoineA
We're seeing this right now on two different GAE projects, with all calls 
failing with the error Process terminated because the request deadline was 
exceeded. (Error code 123). 

This has been going on for at least 45 minutes, since 12:14 EST. This kind 
of downtime is unacceptable. The Google status board shows all healthy. We 
tried restarting the instances, reuploading the codebase, etc, no success.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/41f08a1b-4a20-4d29-8fc7-d47208a68ee1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Process terminated because the request deadline was exceeded. (Error code 123)

2015-06-17 Thread Karl-Heinz Müller
I see , I am not alone.

On Wednesday, June 17, 2015 at 1:01:30 PM UTC-4, AntoineA wrote:

 We're seeing this right now on two different GAE projects, with all calls 
 failing with the error Process terminated because the request deadline 
 was exceeded. (Error code 123). 

 This has been going on for at least 45 minutes, since 12:14 EST. This kind 
 of downtime is unacceptable. The Google status board shows all healthy. We 
 tried restarting the instances, reuploading the codebase, etc, no success.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/cc9842ac-f95c-499d-8569-f6ce145d6ec9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Connect Google App Engine to Google Compute Engine

2015-06-17 Thread 'Alex Martelli' via Google App Engine
You can use App Engine services, including Cloud Endpoints, on compute
engine via Google's *Managed VMs* product (currently in beta release -- see
https://cloud.google.com/appengine/docs/java/managed-vms/ ).


Alex


On Tue, Jun 16, 2015 at 11:10 PM, Al Hennessey alhennesse...@gmail.com
wrote:

 Thank you for the info, its really helped to start understanding this, one
 thing i was wondering was that i have heard a lot about google endpoints
 and using them to connect to gae etc... and i was wondering whether they
 could be used to connect to google compute engine as well, say if i was
 running mongodb or redis on a vm, whether i could use endpoints to connect
 my android and ios apps to them, or do i need to use another client?
 Thanks again

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/591b71af-2b16-43c8-9626-6034db514e90%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAE46Be-Zta7DdECHRnmvhXBXZvvbvzgDmftaUGsvZGUrWGHp_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine inter module communication authorization (python)

2015-06-17 Thread Diego Fernandez
Hello,
citing 
*http://stackoverflow.com/questions/30237946/google-app-engine-inter-module-communication-authorization#comment49814138_30237946*
 
the problem I have is that in the Docs (communication between modules) 
https://cloud.google.com/appengine/docs/python/modules/#Python_Communication_between_modules
 it 
says:

*You can configure any manual or basic scaling module to accept requests 
 from other modules in your app by restricting its handler to only allow 
 administrator accounts, specifying login: admin for the appropriate handler 
 in the module's configuration file. With this restriction in place, any 
 URLFetch from any other module in the app will be automatically 
 authenticated by App Engine, and any request that is not from the 
 application will be rejected.*


And this is exactly the configuration I have for my module called api1. 
In my *app.yaml* file I have:

# can accept requests from other modules. with login: admin and they are 
authenticated automatically.
- url: /.*
  script: _go_app
  login: admin

I'm trying now, from a different module in the same app, to make a service 
call as suggested in the doc using *urfetch.fetch()* method, and my 
implementation is:

from google.appengine.api import urlfetch, modules, app_identity
from rest_framework.response import Response, status

@api_view(['POST'])
def validate_email(request):
url = http://%s/; % modules.get_hostname(module=api1)
payload = json.dumps({SOME_KEY:SOME_VALUE})

appid = app_identity.get_application_id()
result = urlfetch.fetch(url + emails/validate/document,
follow_redirects=False,
method=urlfetch.POST,
payload=payload,
headers={Content-Type:application/json)

return Response({
'status_code': result.status_code,
'content': result.content
}, status=status.HTTP_200_OK)

According to the documentation, having specified the 
*follow_redirects=False*, *fetch()* will automatically insert an header in 
my call (I've even tried to add it explicitly) with the 
*X-Appengine-Inbound-Appid 
: MY-APP-ID*.
Unfortunately I get as result of the fetch call a 302 redirect, if I follow 
it, it's a redirect to the authentication form. This occurs in Development 
server as well as in Production.

Can you please let me know how can I call my *api1* service inside my 
*validate_email* document (belonging to a different module in the same app)?
Is there another way to authenticate the call since it seems the way 
suggested inside the documentation is not working?

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d4c88649-5b86-47a6-a22c-0e01064a90db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.