[google-appengine] Re: How do I run the GoogleAppEngineLauncher.exe on Windows after installing the Google Cloud Platform SDK -- looks the installation is missing a folder.

2015-06-29 Thread Ryan (Cloud Platform Support)
Salutations Joe,

If you installed to the default location it should be:

C:\Program Files\Google\Cloud SDK\GoogleAppEngineLauncher.bat

*NOTE the .bat not .exe

On Friday, June 26, 2015 at 5:58:22 PM UTC-4, Joe White wrote:

 *Situation*
 I installed the Google Cloud Platform SDK (selecting all of the Google App 
 Engine options) on Windows 7 Ultimate. Installation succeeded without any 
 errors, but attempting to run the Google App Engine launcher fails because 
 no \launcher folder was installed (making 
 \launcher\GoogleAppEngineLauncher.exe kinda hard to find).

 I have uninstalled and reinstalled the Google Cloud Platform SDK several 
 times, even selecting only java options as well as all options.

 Any help or suggestions would be appreciated!


-- 
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/82da96b7-e129-4fd6-b30f-b3226a3fe2f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Planning to user Managed VMs

2015-06-29 Thread Naresh Pokuri
Hi,

Due to restrictions JVM of Google App Engine we are planning to deploy it 
on Managed VMs of Google. Before that I want to know few things.

1. Can I install whatever software I want to install?
2. If not what is the java version supported?
3. Will it support Play framework?
4. Can I debug my app on local managed VM?

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/ab9e94a7-eae2-470f-ad0c-91903c45af89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] How to catch task failure ?

2015-06-29 Thread Vladyslav Lubenskyi
Hi Alejandro,

Thanks for an advice! That means I need to implement it on my own :))

On Monday, June 29, 2015 at 1:57:33 PM UTC+2, Alejandro Gonzalez wrote:

 Hello Vlad,

 Have you noticed the request header that carries info about the retry 
 count? 

 in Java, inside a task: 

 String retryCount = request.getHeader(X-AppEngine-TaskRetryCount);

 You can control the number of retries manually, or make something when it 
 has been retried for X times.

 Hope this help.



 2015-06-29 13:51 GMT+02:00 Vladyslav Lubenskyi vlad.lu...@gmail.com 
 javascript::

 Hi,

 I configured my push queue to retry failed task 4 times. But how to catch 
 the moment, when all tries failed? Guys, is there a possibility in 
 taskqueue API to handle such case?

 I want to send sorry-letter to customers If all tries failed. It would be 
 awesome to have such functionality.

 Sincerely,
 Vladyslav Lubenskyi

 -- 
 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-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/89a05cb2-d30f-4f08-8684-88cd3be8a2ec%40googlegroups.com
  
 https://groups.google.com/d/msgid/google-appengine/89a05cb2-d30f-4f08-8684-88cd3be8a2ec%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/e09e59d1-2f2c-4e89-abc8-296c30c2e82a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Not very friendly - New Datastore Query Screen

2015-06-29 Thread Aswath Satrasala
Hi,
The new Datastore Query Screen is not very friendly to query and to do
the analysis.  Several issues.
- The screen itself takes long time to appear
- After doing the query using the namespace, as you scroll down the
results, there is no indication, to say it is the end of the results
- Drill down (click on one of the row), then do browser back button,
then the query filter is lost.  It takes a very long time here, when
you press the back button
- The results view is shown from the beginning. The view is not
positioned at the same place, where the row was clicked, when I did
the drill down in the previous step.

-Aswath
www.AccountingGuru.net
(Mobile + Online inventory/order/accounting service)

-- 
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/CAKFF5G5SSGb3BYarKEw75QcP75Uk-rhRG9PdiD9pRNX%3D4zWbtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Entity Save Error - New Datastore Query Screen

2015-06-29 Thread Aswath Satrasala
Hi,
I was trying to edit and save one of the entities, and it said the following
Your Request included invalid parameters'

-Aswath
www.AccountingGuru.net
(Mobile + Online inventory/order/accounting service)

-- 
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/CAKFF5G4QroddqSu4Akfnek5JFFJD%3D6%3DohiZRR_f6ZVMjTVd%2BVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] How to catch task failure ?

2015-06-29 Thread Alejandro Gonzalez
Hello Vlad,

Have you noticed the request header that carries info about the retry
count?

in Java, inside a task:

String retryCount = request.getHeader(X-AppEngine-TaskRetryCount);

You can control the number of retries manually, or make something when it
has been retried for X times.

Hope this help.



2015-06-29 13:51 GMT+02:00 Vladyslav Lubenskyi vlad.lubens...@gmail.com:

 Hi,

 I configured my push queue to retry failed task 4 times. But how to catch
 the moment, when all tries failed? Guys, is there a possibility in
 taskqueue API to handle such case?

 I want to send sorry-letter to customers If all tries failed. It would be
 awesome to have such functionality.

 Sincerely,
 Vladyslav Lubenskyi

 --
 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/89a05cb2-d30f-4f08-8684-88cd3be8a2ec%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/89a05cb2-d30f-4f08-8684-88cd3be8a2ec%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/CAM5QdGfZCci%2BDJT0CEiMhK3QrwMFdS%3D4SnDcrhRLDo7W-pFZhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Response not gzipped specifically for Twitterbot requests?

2015-06-29 Thread Taengoo Taengstagram
I've noticed for when Twitterbot crawls my app on GAE, the response does 
not appear to be gzipped (as seen by the response bytes size in GAE logs). 
I've tested this with other apps deployed on the *.appspot.com, for example 
https://ga-dev-tools.appspot.com/.

To illustrate, I'm using a test user agent  Twitterbot/9.0, although the 
actual Twitter user agent is Twitterbot/1.0.

# Test case 1: With a generic Mozilla useragent Mozilla/9.0 + gzip headers, 
response returned is gzipped
$ curl 'https://ga-dev-tools.appspot.com/' -H 'Accept-Encoding: gzip, 
deflate, sdch' --compressed -A 'Mozilla/9.0' -i

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Mon, 29 Jun 2015 10:11:35 GMT
Server: Google Frontend
Alternate-Protocol: 443:quic,p=1
Transfer-Encoding: chunked

# Test case 2: With a Twitterbot useragent Twitterbot/9.0 + gzip headers, 
response returned is not gzipped
$ curl 'https://ga-dev-tools.appspot.com/' -H 'Accept-Encoding: gzip, 
deflate, sdch' --compressed -A 'Twitterbot/9.0' -i

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Date: Mon, 29 Jun 2015 10:12:06 GMT
Server: Google Frontend
Content-Length: 7956
Alternate-Protocol: 443:quic,p=1

# Test case 3: With a Twitterbot useragent Twitterbot/9.0 + no other 
headers, response returned is not gzipped
$ curl 'https://ga-dev-tools.appspot.com/' -A 'Mozilla/9.0' -i

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Date: Mon, 29 Jun 2015 10:13:17 GMT
Server: Google Frontend
Content-Length: 7956
Alternate-Protocol: 443:quic,p=1


You will noticed that GAE is returning identical responses for test #2 
(Twitterbot) and #3 (uncompressed request). This is unexpected and rather 
puzzling. Any idea why?


-- 
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/d3119e67-db89-4e25-92c3-2b087a00ec6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to catch task failure ?

2015-06-29 Thread Vladyslav Lubenskyi
Hi,

I configured my push queue to retry failed task 4 times. But how to catch 
the moment, when all tries failed? Guys, is there a possibility in 
taskqueue API to handle such case?

I want to send sorry-letter to customers If all tries failed. It would be 
awesome to have such functionality.

Sincerely,
Vladyslav Lubenskyi

-- 
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/89a05cb2-d30f-4f08-8684-88cd3be8a2ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Validating model data in Python

2015-06-29 Thread Patrice (Cloud Platform Support)
Hey Renzo!

Honestly, I glanced through it, and it looks like incredible work!

I haven't had a chance to test it, and the only complaint I had reading 
just your post here is that it was lacking doc on the tool... and look here 
https://github.com/renzon/gaeforms/blob/master/README.md, you have a full 
readme!

Good job sir, thank you for posting your work here :).

Cheers!

On Friday, June 26, 2015 at 2:13:26 PM UTC-4, Renzo Nuccitelli wrote:

 Hi!

 I have just finished the documentation of a project that I wrote to 
 validate ndb Models in similar way to DjangoForms:

 https://github.com/renzon/gaeforms

 It is only missing the internationalisation docs which I will write soon. 
 I hope it can help someone ;)

 Regards,


-- 
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/0af9a97a-cfe1-4d21-9c60-1ef088f35a46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Not very friendly - New Datastore Query Screen

2015-06-29 Thread husayt
I do agree with the points aswath raised, although for justice's sake, have 
to say this is much better what we had two months ago.

While I have criticised query screen many times, what we have now is
* faster than before (although still not as fast as it could be)
* allows quicker namespace search
* allows to run queries

Thank you for latest changes, but please continue, as it still needs polish 
for a kind of important tool it is. 




On Monday, June 29, 2015 at 10:32:44 AM UTC+1, aswath wrote:

 Hi, 
 The new Datastore Query Screen is not very friendly to query and to do 
 the analysis.  Several issues. 
 - The screen itself takes long time to appear 
 - After doing the query using the namespace, as you scroll down the 
 results, there is no indication, to say it is the end of the results 
 - Drill down (click on one of the row), then do browser back button, 
 then the query filter is lost.  It takes a very long time here, when 
 you press the back button 
 - The results view is shown from the beginning. The view is not 
 positioned at the same place, where the row was clicked, when I did 
 the drill down in the previous step. 

 -Aswath 
 www.AccountingGuru.net 
 (Mobile + Online inventory/order/accounting service) 


-- 
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/3c2495a9-53ad-4634-8d4f-1d7e5fac5fa1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Datastore Admin : receiving Server Error A server error has occurred.

2015-06-29 Thread Patrice (Cloud Platform Support)
Hi Johhan,

Your issue is unfortunately not really clear right now.

In any case, your datastore admin can possibly return a 500 server error 
because you may be out of quota?

In any case, if you could send the screenshot of the error you receive, but 
also look at your quotas for the day and make sure they haven't been 
exceeded, this might help.

Cheers!

On Monday, June 29, 2015 at 2:33:15 AM UTC-4, Johhan Barba wrote:

 Hi guys,

   I'm still a beginner with Google App Engine, and so I tried backup 
 up for my data, I created a GCS account and Bucket, but before that, I 
 already enabled the Datastore Admin, after doing the backup, I tried 
 accessing back the Datastore Admin, but it then gives me a Server error? 
 Did anyone experience 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/8a8a4acd-bbde-4dc9-9547-8699700bb91c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: hrd migration question

2015-06-29 Thread Ryan (Cloud Platform Support)
Salutations Matthew,

If you go to this link 
https://cloud.google.com/appengine/docs/adminconsole/migration#the_migration_process
 you 
see this message:

You do not incur any billing costs when you do this migration.

On Sunday, June 28, 2015 at 3:48:11 PM UTC-4, Matthew Pease wrote:

 Hi all-

   I've just remembered I need to migrate my M/S to HRD.

   When I run the HRD migration tool, am I billed for all those M/S reads  
 HRD writes?

   If so, then is there a way to instruct the migration tool to ignore some 
 tables?  

   (Yes, I know I can delete, but that's expensive.)

 Thank you-
 Matt  


-- 
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/5958fef2-7de5-46dd-86e9-7466eafed2ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Problem running a cron job

2015-06-29 Thread Patrice (Cloud Platform Support)
Hey Ken,

I'm a bit unclear on your issue, so if you could clarify, it would be 
helpful.

You have a cronJob on the /admin/cron/crontest1 URL that creates a js and 
displays it. When you hit the url yourself, it goes through... but when the 
job autoruns, it fails... right?

If this is the behavior you're experiencing, I'd say it's to be expected... 
how would a scheduled cron job running on the backend display anything?

Let me know if I'm the one not understanding your issue properly here.

Cheers!

On Monday, June 29, 2015 at 12:02:20 AM UTC-4, Ken Bowen wrote:


 I have a simple test cron job which does not succeed in running on GAE. 
  The target url runs correctly when invoked from a browser (when I’m logged 
 in as admin),  but cron is not successfully running the job.  The GAE Cron 
 Jobs page shows:

 /admin/cron/crontest1every 2 hours (America/New_York) 
 Initial simple test2015/06/28 23:18:03 2 secs late Failed

 Here’s the cron.xml:
 ?xml version=1.0 encoding=UTF-8?
 cronentries
 cron
 descriptionInitial simple test/description
 timezoneAmerica/New_York/timezone
 url/admin/cron/crontest1//url
 scheduleevery 2 hours/schedule
 /cron
 /cronentries

 In web.xml, the url-pattern/admin/*/url-pattern gets the   
 security-constraint:
 auth-constraint
  role-nameadmin/role-name
 /auth-constraint

 The target url /admin/cron/crontest1/ assembles a very simple jsp page 
 equivalent to:
 head
 script type='text/javascript' 
 src='/admin/cron/crontest1/crontest1.js'/script
 script
 $(document).ready(function() {
 crontest1init();
 });
 /script
 /head
 body 
 h1CronTest1/h1  
 /body 

 where crontest1.js is just:

 function crontest1init()
 {
 AdminIntf.crontest1();
 }

 And AdminIntf.crontest1() is just a DWR (Direct Web Remoting) call to this:

 public static void crontest1(){
 final DateTimeFormatter fmt = Constants.YMDHMS_DATETIME_FORMATTER;
 String now = fmt.print(System.currentTimeMillis());
 logger.warn(## crontest1() :  + now);
 }

 When I am logged in as admin and issue the url

 http://[my.project].appspot.com/admin/cron/crontest1/

 the result is a page showing

 CronTest1

 and the logs show:

 ……/dwr/call/plaincall/AdminIntf.crontest1.dwr 200 …blah,blah
 I 2015-06-28 21:10:18.026 org.directwebremoting.util.CommonsLoggingOutput 
 info: Exec: AdminIntf.crontest1()
 W 2015-06-28 21:10:18.064 com.strongbrain.admin.AdminIntf crontest1: 
 ## crontest1() : 2015-06-29 03:10:18 UTC

 The url action returns 200, but, as noted at top, cron doesn’t 
 successfully run this.  Clearly I’m missing something essential, but I 
 can’t see what.
 Any help will definitely be appreciated.
 Thanks in advance,
 Ken Bowen



-- 
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/e49bc100-aeda-475c-94d4-0dc9b3ef94b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Planning to user Managed VMs

2015-06-29 Thread Patrice (Cloud Platform Support)
Hi Naresh,

On a managed VM, you can use whatever runtime you want, so you can send 
whichever version of Java you want.

I haven't worked a lot with the Play framework, so I can't say for sure, 
but I think that you wouldn't encounter major issues using it on a managed 
VM.

As to your fourth question, yes you can test locally :) I would suggest 
reading up on our documentation 
https://cloud.google.com/appengine/docs/java/managed-vms/ on the subject 
and experimenting with it.

Cheers!

On Monday, June 29, 2015 at 5:45:26 AM UTC-4, Naresh Pokuri wrote:

 Hi,

 Due to restrictions JVM of Google App Engine we are planning to deploy it 
 on Managed VMs of Google. Before that I want to know few things.

 1. Can I install whatever software I want to install?
 2. If not what is the java version supported?
 3. Will it support Play framework?
 4. Can I debug my app on local managed VM?

 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/09042726-dc38-4a1b-99e1-c52ca85f93e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Try to launched a wamp stack it gives an error saying billing not enabled

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

This forum isn't the correct place to look for 1-on-1 support, 
unfortunately, although I'm happy to provide some advice for you:

You should either contact billing 
https://support.google.com/cloud/contact/cloud_platform_billing?hl=encfsi=bronze_contactcfnti=6186161cft=3ref_topic=2991962
 
for a question like this, check the help center/docs 
https://support.google.com/cloud/answer/3540854?hl=enref_topic=2991962, 
or attempt to follow your intuition: if it complains that billing isn't 
enabled, and you're not sure if you've enabled billing, you should keep 
trying to find ways to enable billing. When you say seems it doesn't 
help, that doesn't provide enough information for anybody to help you. 
What happens when you attempt to add a billing account? Did you go through 
the steps to upgrade? If you didn't do these things, you won't have any 
free trial credits, since that requires 

Best wishes,

Nick

On Monday, June 29, 2015 at 2:37:30 AM UTC-4, 
contactnimaliferna...@gmail.com wrote:


 SOrry i often misspells its lamp stack
 On Monday, June 29, 2015 at 11:51:39 AM UTC+5:30, contactnim...@gmail.com 
 wrote:

 I just signed up for the google cloud trial
 and i am getting a error saying i have to enable billing i tried clicking 
 on the upgrade button seems it doesn;t help can anyone help me to get this 
 resolved and also its not showing my 300usd free credits on the top also i 
 need that credit



-- 
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/a9452ca2-cb92-4766-b9f7-d11e500fbf32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: What is the expected life time of a resident public backend instance?

2015-06-29 Thread Nick (Cloud Platform Support)
Hi Mauricio,

It truly seems to be an error that your _ah/stop handler is not being 
triggered, and that there is no info in the logs explaining why your 
instances spin down. As you say, you've already got a case open with 
support, so I suggest that you continue to follow-up with them there, and 
include any relevant details they would want to know in your responses. 

Unfortunately, this forum isn't meant for 1-on-1 support or specific 
technical issues, but is rather meant for general discussion of the 
platform, so as said above, you should continue to look into this issue in 
the correct way, which is with 1-on-1 support through a support package.

Best wishes,

Nick

On Saturday, June 27, 2015 at 3:47:47 PM UTC-4, Mauricio Lumbreras wrote:

 Hello,
 we have a GAE app written in Java, where we need full response all the day.
 The problem we face is our resident instances are shut down, without 
 reason :there is no error nor any other anomaly
 We don't receive any ah stop invocation ever.
 According GAE support there is a investigation what is happening but this 
 issue is present from months, it is not new.
 If there is no traffic, instance are quite stable, living hours
 If there is low traffic like 5 request per seq, instances are shut down 
 and restarted again. Usually instances time life is 20 minutes.
 Is someone suffering this?
 We expect with resident instances more stability but it seems internal 
 machinery of GAE remove it too frequently 

 Regards
 Mauricio


-- 
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/51d69e67-f5f7-4863-afd1-bb166ffd1f45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: We dev using google cloud?

2015-06-29 Thread Nick (Cloud Platform Support)
Hey Nerou,

You can definitely do more than host a static site with Google Cloud 
Platform. I'd advice you to take a closer look and explore the docs. You 
might want to check out App Engine https://cloud.google.com/appengine/docs 
or Compute Engine https://cloud.google.com/compute/ for hosting a site 
that needs server-side computation, and look at Cloud SQL 
https://cloud.google.com/sql/docs/introduction for a MySQL db solution, 
although there are other solutions such as BigTable 
https://cloud.google.com/bigtable/docs/ or Datastore 
https://cloud.google.com/datastore/docs/concepts/overview.

Best wishes,

Nick 

On Sunday, June 28, 2015 at 7:10:30 PM UTC-4, Nerou Daantos wrote:

 I'm just new to the cloud, I've searched for things like how i can deploy 
 a site to google cloud but i only see its for static ones.

 what i wanna ask is that, would it be possible to host my entire site in 
 google cloud? like the database and etc? its actually a school portal with 
 inquiry system. 

 i do have a domain from Name Cheap and a D N S too.

 -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/cf2dedfc-f980-4bd1-b7d8-5f18ff247b3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Problem running a cron job

2015-06-29 Thread Ken Bowen
Hey Patrice,

It’s my mistake. All I really wanted to do was execute the java method
public static void crontest1(){ 
final DateTimeFormatter fmt = 
Constants.YMDHMS_DATETIME_FORMATTER; 
String now = fmt.print(System.currentTimeMillis()); 
logger.warn(## crontest1() :  + now); 
 
}

The jsp/js was just going to be a stepping stone to this, but now I understand 
the fact that cron isn’t going to execute that jsp “headless”.

o am I correct that the right way to do this is to write a simple servlet, 
something like this:

public class CronTest1Servlet extends LoggedHttpServlet { 
private static Logger logger = 
Logger.getLogger(CronTest1Servlet.class.getName()); 
@Override 
public void doGet(HttpServletRequest request, 
HttpServletResponse response) throws ServletException, IOException 
{   final DateTimeFormatter fmt = 
DateTimeFormat.forPattern(-MM-dd HH:mm:ss z); 
String now = fmt.print(System.currentTimeMillis()); 
logger.warn(## CronTest1Servlet 
:  + now); } 
} 

Thanks much,
—Ken

On Jun 29, 2015, at 11:41 AM, Patrice (Cloud Platform Support) 
pvoutsi...@google.com wrote:

 Hey Ken,
 
 I'm a bit unclear on your issue, so if you could clarify, it would be helpful.
 
 You have a cronJob on the /admin/cron/crontest1 URL that creates a js and 
 displays it. When you hit the url yourself, it goes through... but when the 
 job autoruns, it fails... right?
 
 If this is the behavior you're experiencing, I'd say it's to be expected... 
 how would a scheduled cron job running on the backend display anything?
 
 Let me know if I'm the one not understanding your issue properly here.
 
 Cheers!
 
 On Monday, June 29, 2015 at 12:02:20 AM UTC-4, Ken Bowen wrote:
 
 I have a simple test cron job which does not succeed in running on GAE.  The 
 target url runs correctly when invoked from a browser (when I’m logged in as 
 admin),  but cron is not successfully running the job.  The GAE Cron Jobs 
 page shows:
 
/admin/cron/crontest1every 2 hours (America/New_York) 
Initial simple test   2015/06/28 23:18:03 2 secs late 
 Failed
 
 Here’s the cron.xml:
 ?xml version=1.0 encoding=UTF-8?
 cronentries
 cron
descriptionInitial simple test/description
timezoneAmerica/New_York/timezone
url/admin/cron/crontest1//url
scheduleevery 2 hours/schedule
 /cron
 /cronentries
 
 In web.xml, the url-pattern/admin/*/url-pattern gets the   
 security-constraint:
   auth-constraint
 role-nameadmin/role-name
/auth-constraint
 
 The target url /admin/cron/crontest1/ assembles a very simple jsp page 
 equivalent to:
 head
script type='text/javascript' 
 src='/admin/cron/crontest1/crontest1.js'/script
script
   $(document).ready(function() {
   crontest1init();
   });
/script
 /head
 body 
 h1CronTest1/h1  
 /body 
 
 where crontest1.js is just:
 
 function crontest1init()
 {
   AdminIntf.crontest1();
 }
 
 And AdminIntf.crontest1() is just a DWR (Direct Web Remoting) call to this:
 
 public static void crontest1(){
   final DateTimeFormatter fmt = Constants.YMDHMS_DATETIME_FORMATTER;
String now = fmt.print(System.currentTimeMillis());
logger.warn(## crontest1() :  + now);
 }
 
 When I am logged in as admin and issue the url
 
 http://[my.project].appspot.com/admin/cron/crontest1/
 
 the result is a page showing
 
 CronTest1
 
 and the logs show:
 
 ……/dwr/call/plaincall/AdminIntf.crontest1.dwr 200 …blah,blah
 I 2015-06-28 21:10:18.026 org.directwebremoting.util.CommonsLoggingOutput 
 info: Exec: AdminIntf.crontest1()
 W 2015-06-28 21:10:18.064 com.strongbrain.admin.AdminIntf crontest1: 
 ## crontest1() : 2015-06-29 03:10:18 UTC
 
 The url action returns 200, but, as noted at top, cron doesn’t successfully 
 run this.  Clearly I’m missing something essential, but I can’t see what.
 Any help will definitely be appreciated.
 Thanks in advance,
 Ken Bowen
 
 
 -- 
 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/3OjCkOL2jhI/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/e49bc100-aeda-475c-94d4-0dc9b3ef94b8%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

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

[google-appengine] Try to launched a wamp stack it gives an error saying billing not enabled

2015-06-29 Thread contactnimalifernando
I just signed up for the google cloud trial
and i am getting a error saying i have to enable billing i tried clicking 
on the upgrade button seems it doesn;t help can anyone help me to get this 
resolved and also its not showing my 300usd free credits on the top also i 
need that credit

-- 
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/85f4cbd4-18df-4d27-a38b-b442c99df60c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Query failing in Taskqueue

2015-06-29 Thread test . wfs . acn


 

We have a Web2py application hosted on Google app engine.

We are trying to implement Taskqueue for fetching record from tables, we 
are passing the filter field (date type) and number of years as parameters. 
These parameters will be then passed to a Query to fetch the data from the 
Database.

Please find the code snippet as given below:

Task_handler() function accepts the 2 input parameters and calls the 
taskqueue which is defined in the task_process() function. In 
task_process() function we are calculating the date based on the number of 
years parameters and using it in the query to fetch the records older than 
the calculated date.

def task_handler():

  if len(request.args):

field= request.args[0]

filter=int(request.args[1])

   return 
taskqueue.add(url=URL('task_process'),params={’field’:field,'diff': 
filter,},method=POST)

   

def task_process():

field= request.form.get(‘field’)

diff = request.form.get('diff')

filter_date = datetime.date.today() + datetime.timedelta(-(365*(diff)))

result = [] 

result = db(field  filter_date).select()

 

Note :
field in this case is db.tablename.columnname

 

If we directly use the input parameter in query, it fails due to datatype 
mismatch.

So we tried by hardcoding the table field name in the query but got 
Attribute Error for that.

 

Kindly provide your inputs on what are we missing here or doing wrong.

 

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/c8da5f65-33a8-415a-8823-c3f5ccc1d3a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Datastore Admin : receiving Server Error A server error has occurred.

2015-06-29 Thread Johhan Barba
Hi guys,

  I'm still a beginner with Google App Engine, and so I tried backup up 
for my data, I created a GCS account and Bucket, but before that, I already 
enabled the Datastore Admin, after doing the backup, I tried accessing back 
the Datastore Admin, but it then gives me a Server error? Did anyone 
experience 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/df1a9bae-3d4f-4f39-aacb-368b748a279b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Try to launched a wamp stack it gives an error saying billing not enabled

2015-06-29 Thread contactnimalifernando

SOrry i often misspells its lamp stack
On Monday, June 29, 2015 at 11:51:39 AM UTC+5:30, contactnim...@gmail.com 
wrote:

 I just signed up for the google cloud trial
 and i am getting a error saying i have to enable billing i tried clicking 
 on the upgrade button seems it doesn;t help can anyone help me to get this 
 resolved and also its not showing my 300usd free credits on the top also i 
 need that credit


-- 
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/3e863ebb-3f9c-4552-9f1e-7ed5490e574e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Response not gzipped specifically for Twitterbot requests?

2015-06-29 Thread Taengoo Taengstagram
I've logged it as issue #12104 
https://code.google.com/p/googleappengine/issues/detail?id=12104

Thanks for pointing out the presence of a whitelist. This explains why I've 
seen uncompressed responses in the logs to possibly lesser known mobile 
useragents such as custom embedded webviews. This is unfortunate when it is 
precisely these mobile devices which will stand to gain the most from 
compressed content.

Also to note, application/site owners are rarely in a position to request 
that crawlers/users modify their user agent string to comply with such a 
specific requirement for GAE.


On Tuesday, June 30, 2015 at 3:27:59 AM UTC+8, Nick (Cloud Platform 
Support) wrote:

 Hey Taengoo,

 It seems as though you may have stumbled on a valid Feature Request in the 
 making. In the docs, it's explained that serving content-encoding: gzip 
 responses is done based on a combination of User-Agent and Accept-Encoding 
 headers https://cloud.google.com/appengine/kb/general#compression, 
 however it appears that the Twitterbot UA string doesn't pass the test. 

 Attached is a .tar.gz containing an example app you can deploy, and a 
 script you can use, to test this behaviour on App Engine. If you change the 
 application id in app.yaml inside the app/ directory, you can deploy the 
 app. At that point, you'll want to run :

 ./curl-uas.sh 1.testheaders.APPID.appspot.com

 Where your APPID will be an actual app id. 

 This script runs through the user-agents in user-agents.txt, which contain 
 the most statistically-popular UA strings on the web at the moment, along 
 with several test values. You'll notice that your observations are 
 replicated for Twitterbot-style UA strings, while the special User-Agent 
 gzip, as explained in the docs, can force compression.

 I think you should open a Feature Request thread in the public issue 
 tracker http://code.google.com/p/googleappengine/issues/list to either 
 have the Twitterbot UA included in the list of those which can accept gzip 
 if they request it via Accept-Encoding, or to simply have the 
 Accept-Encoding header be respected.

 If possible, you could modify your Twitterbot to use UA gzip, in order 
 to simply get it working today.

 Best wishes,

 Nick

 On Monday, June 29, 2015 at 6:27:04 AM UTC-4, Taengoo Taengstagram wrote:

 I've noticed for when Twitterbot crawls my app on GAE, the response does 
 not appear to be gzipped (as seen by the response bytes size in GAE logs). 
 I've tested this with other apps deployed on the *.appspot.com, for 
 example https://ga-dev-tools.appspot.com/.

 To illustrate, I'm using a test user agent  Twitterbot/9.0, although 
 the actual Twitter user agent is Twitterbot/1.0.

 # Test case 1: With a generic Mozilla useragent Mozilla/9.0 + gzip 
 headers, response returned is gzipped
 $ curl 'https://ga-dev-tools.appspot.com/' -H 'Accept-Encoding: gzip, 
 deflate, sdch' --compressed -A 'Mozilla/9.0' -i

 HTTP/1.1 200 OK
 Content-Type: text/html; charset=utf-8
 Cache-Control: no-cache
 Content-Encoding: gzip
 Vary: Accept-Encoding
 Date: Mon, 29 Jun 2015 10:11:35 GMT
 Server: Google Frontend
 Alternate-Protocol: 443:quic,p=1
 Transfer-Encoding: chunked

 # Test case 2: With a Twitterbot useragent Twitterbot/9.0 + gzip headers, 
 response returned is not gzipped
 $ curl 'https://ga-dev-tools.appspot.com/' -H 'Accept-Encoding: gzip, 
 deflate, sdch' --compressed -A 'Twitterbot/9.0' -i

 HTTP/1.1 200 OK
 Content-Type: text/html; charset=utf-8
 Cache-Control: no-cache
 Date: Mon, 29 Jun 2015 10:12:06 GMT
 Server: Google Frontend
 Content-Length: 7956
 Alternate-Protocol: 443:quic,p=1

 # Test case 3: With a Twitterbot useragent Twitterbot/9.0 + no other 
 headers, response returned is not gzipped
 $ curl 'https://ga-dev-tools.appspot.com/' -A 'Mozilla/9.0' -i

 HTTP/1.1 200 OK
 Content-Type: text/html; charset=utf-8
 Cache-Control: no-cache
 Date: Mon, 29 Jun 2015 10:13:17 GMT
 Server: Google Frontend
 Content-Length: 7956
 Alternate-Protocol: 443:quic,p=1


 You will noticed that GAE is returning identical responses for test #2 
 (Twitterbot) and #3 (uncompressed request). This is unexpected and rather 
 puzzling. Any idea why?




-- 
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/38af3d6e-7539-41b0-b2f9-d23fdadafa2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: We dev using google cloud?

2015-06-29 Thread Nerou Daantos
Thank you nick for responding in regards of this matter.
just wanna clarify if we build our website and have a database for it we 
are using xamp and phpmyadmin as our backend
does it mean we need to avail different product solutions for our database, 
our front end and etc?
thanks a lot. looking forward deploying our school website with google

On Tuesday, June 30, 2015 at 4:12:55 AM UTC+8, Nick (Cloud Platform 
Support) wrote:

 Hey Nerou,

 You can definitely do more than host a static site with Google Cloud 
 Platform. I'd advice you to take a closer look and explore the docs. You 
 might want to check out App Engine 
 https://cloud.google.com/appengine/docs or Compute Engine 
 https://cloud.google.com/compute/ for hosting a site that needs 
 server-side computation, and look at Cloud SQL 
 https://cloud.google.com/sql/docs/introduction for a MySQL db solution, 
 although there are other solutions such as BigTable 
 https://cloud.google.com/bigtable/docs/ or Datastore 
 https://cloud.google.com/datastore/docs/concepts/overview.

 Best wishes,

 Nick 

 On Sunday, June 28, 2015 at 7:10:30 PM UTC-4, Nerou Daantos wrote:

 I'm just new to the cloud, I've searched for things like how i can deploy 
 a site to google cloud but i only see its for static ones.

 what i wanna ask is that, would it be possible to host my entire site in 
 google cloud? like the database and etc? its actually a school portal with 
 inquiry system. 

 i do have a domain from Name Cheap and a D N S too.

 -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/fae62092-b86b-4051-8ba0-39b211c77fd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Response not gzipped specifically for Twitterbot requests?

2015-06-29 Thread Nick (Cloud Platform Support)
Hey Taengoo,

It seems as though you may have stumbled on a valid Feature Request in the 
making. In the docs, it's explained that serving content-encoding: gzip 
responses is done based on a combination of User-Agent and Accept-Encoding 
headers https://cloud.google.com/appengine/kb/general#compression, 
however it appears that the Twitterbot UA string doesn't pass the test. 

Attached is a .tar.gz containing an example app you can deploy, and a 
script you can use, to test this behaviour on App Engine. If you change the 
application id in app.yaml inside the app/ directory, you can deploy the 
app. At that point, you'll want to run :

./curl-uas.sh 1.testheaders.APPID.appspot.com

Where your APPID will be an actual app id. 

This script runs through the user-agents in user-agents.txt, which contain 
the most statistically-popular UA strings on the web at the moment, along 
with several test values. You'll notice that your observations are 
replicated for Twitterbot-style UA strings, while the special User-Agent 
gzip, as explained in the docs, can force compression.

I think you should open a Feature Request thread in the public issue tracker 
http://code.google.com/p/googleappengine/issues/list to either have the 
Twitterbot UA included in the list of those which can accept gzip if they 
request it via Accept-Encoding, or to simply have the Accept-Encoding 
header be respected.

If possible, you could modify your Twitterbot to use UA gzip, in order to 
simply get it working today.

Best wishes,

Nick

On Monday, June 29, 2015 at 6:27:04 AM UTC-4, Taengoo Taengstagram wrote:

 I've noticed for when Twitterbot crawls my app on GAE, the response does 
 not appear to be gzipped (as seen by the response bytes size in GAE logs). 
 I've tested this with other apps deployed on the *.appspot.com, for 
 example https://ga-dev-tools.appspot.com/.

 To illustrate, I'm using a test user agent  Twitterbot/9.0, although the 
 actual Twitter user agent is Twitterbot/1.0.

 # Test case 1: With a generic Mozilla useragent Mozilla/9.0 + gzip 
 headers, response returned is gzipped
 $ curl 'https://ga-dev-tools.appspot.com/' -H 'Accept-Encoding: gzip, 
 deflate, sdch' --compressed -A 'Mozilla/9.0' -i

 HTTP/1.1 200 OK
 Content-Type: text/html; charset=utf-8
 Cache-Control: no-cache
 Content-Encoding: gzip
 Vary: Accept-Encoding
 Date: Mon, 29 Jun 2015 10:11:35 GMT
 Server: Google Frontend
 Alternate-Protocol: 443:quic,p=1
 Transfer-Encoding: chunked

 # Test case 2: With a Twitterbot useragent Twitterbot/9.0 + gzip headers, 
 response returned is not gzipped
 $ curl 'https://ga-dev-tools.appspot.com/' -H 'Accept-Encoding: gzip, 
 deflate, sdch' --compressed -A 'Twitterbot/9.0' -i

 HTTP/1.1 200 OK
 Content-Type: text/html; charset=utf-8
 Cache-Control: no-cache
 Date: Mon, 29 Jun 2015 10:12:06 GMT
 Server: Google Frontend
 Content-Length: 7956
 Alternate-Protocol: 443:quic,p=1

 # Test case 3: With a Twitterbot useragent Twitterbot/9.0 + no other 
 headers, response returned is not gzipped
 $ curl 'https://ga-dev-tools.appspot.com/' -A 'Mozilla/9.0' -i

 HTTP/1.1 200 OK
 Content-Type: text/html; charset=utf-8
 Cache-Control: no-cache
 Date: Mon, 29 Jun 2015 10:13:17 GMT
 Server: Google Frontend
 Content-Length: 7956
 Alternate-Protocol: 443:quic,p=1


 You will noticed that GAE is returning identical responses for test #2 
 (Twitterbot) and #3 (uncompressed request). This is unexpected and rather 
 puzzling. Any idea why?




-- 
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/62997f29-c562-4957-abef-630f71863512%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


test-ua-content-encoding.tar.gz
Description: Binary data


[google-appengine] Re: Query failing in Taskqueue

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

Unfortunately, this forum isn't the right place to look for technical 
support on specific issues, or 1-on-1 support. 

For that, you should either purchase a support package 
http://cloud.google.com/support or post to StackOverflow 
http://stackoverflow.com. 

If you believe you've noticed an actual issue on the platform, feel free to 
open 
an issue in the public issue tracker for App Engine 
http://code.google.com/p/google-appengine/issues/list.

Whether you post to StackOverflow or the public issue tracker, you should 
include enough details to explain what you're doing, what you expect to 
see, and if possible, enough code to allow someone to reproduce the issue. 

As to your specific issue here, it seems odd that you are attempting to 
use url=URL('task_process'), when task_process is a function. Perhaps there 
is some framework you're using that converts this to a proper URL on your 
app which routes to that function, but this is left out of your post, and I 
can only guess. In addition, it seems odd that you can reference the 
variable request, even though it isn't part of the function arguments or 
declared within the functions.

At any rate, I hope the above advice is helpful to you and that you can 
move on to post this issue to the correct forum, and/or get a support 
package for 1-on-1 support.

Have a nice day!

-- Nick

On Monday, June 29, 2015 at 3:20:33 AM UTC-4, test.wfs@gmail.com wrote:

  

 We have a Web2py application hosted on Google app engine.

 We are trying to implement Taskqueue for fetching record from tables, we 
 are passing the filter field (date type) and number of years as parameters. 
 These parameters will be then passed to a Query to fetch the data from the 
 Database.

 Please find the code snippet as given below:

 Task_handler() function accepts the 2 input parameters and calls the 
 taskqueue which is defined in the task_process() function. In 
 task_process() function we are calculating the date based on the number of 
 years parameters and using it in the query to fetch the records older than 
 the calculated date.

 def task_handler():

   if len(request.args):

 field= request.args[0]

 filter=int(request.args[1])

return 
 taskqueue.add(url=URL('task_process'),params={’field’:field,'diff': 
 filter,},method=POST)



 def task_process():

 field= request.form.get(‘field’)

 diff = request.form.get('diff')

 filter_date = datetime.date.today() + datetime.timedelta(-(365*(diff)))

 result = [] 

 result = db(field  filter_date).select()

  

 Note :
 field in this case is db.tablename.columnname

  

 If we directly use the input parameter in query, it fails due to datatype 
 mismatch.

 So we tried by hardcoding the table field name in the query but got 
 Attribute Error for that.

  

 Kindly provide your inputs on what are we missing here or doing wrong.

  

 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/68725cdf-c033-4da5-953d-76693a7ab170%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Query failing in Taskqueue

2015-06-29 Thread Nick (Cloud Platform Support)
Ah, at any rate, I can see that you're using web2py. In addition to my 
advice from my first post, you should look into whether this framework 
might be impacting what you see, and also, when you create your 
StackOverflow thread / public issue tracker issue, you should specify which 
database you're using, as the syntax you show is unfamiliar to me, and 
possibly to others.

Best wishes,

-- Nick

On Monday, June 29, 2015 at 3:43:40 PM UTC-4, Nick (Cloud Platform Support) 
wrote:

 Hi,

 Unfortunately, this forum isn't the right place to look for technical 
 support on specific issues, or 1-on-1 support. 

 For that, you should either purchase a support package 
 http://cloud.google.com/support or post to StackOverflow 
 http://stackoverflow.com. 

 If you believe you've noticed an actual issue on the platform, feel free 
 to open an issue in the public issue tracker for App Engine 
 http://code.google.com/p/google-appengine/issues/list.

 Whether you post to StackOverflow or the public issue tracker, you should 
 include enough details to explain what you're doing, what you expect to 
 see, and if possible, enough code to allow someone to reproduce the issue. 

 As to your specific issue here, it seems odd that you are attempting to 
 use url=URL('task_process'), when task_process is a function. Perhaps there 
 is some framework you're using that converts this to a proper URL on your 
 app which routes to that function, but this is left out of your post, and I 
 can only guess. In addition, it seems odd that you can reference the 
 variable request, even though it isn't part of the function arguments or 
 declared within the functions.

 At any rate, I hope the above advice is helpful to you and that you can 
 move on to post this issue to the correct forum, and/or get a support 
 package for 1-on-1 support.

 Have a nice day!

 -- Nick

 On Monday, June 29, 2015 at 3:20:33 AM UTC-4, test.wfs@gmail.com 
 wrote:

  

 We have a Web2py application hosted on Google app engine.

 We are trying to implement Taskqueue for fetching record from tables, we 
 are passing the filter field (date type) and number of years as parameters. 
 These parameters will be then passed to a Query to fetch the data from the 
 Database.

 Please find the code snippet as given below:

 Task_handler() function accepts the 2 input parameters and calls the 
 taskqueue which is defined in the task_process() function. In 
 task_process() function we are calculating the date based on the number of 
 years parameters and using it in the query to fetch the records older than 
 the calculated date.

 def task_handler():

   if len(request.args):

 field= request.args[0]

 filter=int(request.args[1])

return 
 taskqueue.add(url=URL('task_process'),params={’field’:field,'diff': 
 filter,},method=POST)



 def task_process():

 field= request.form.get(‘field’)

 diff = request.form.get('diff')

 filter_date = datetime.date.today() + 
 datetime.timedelta(-(365*(diff)))

 result = [] 

 result = db(field  filter_date).select()

  

 Note :
 field in this case is db.tablename.columnname

  

 If we directly use the input parameter in query, it fails due to datatype 
 mismatch.

 So we tried by hardcoding the table field name in the query but got 
 Attribute Error for that.

  

 Kindly provide your inputs on what are we missing here or doing wrong.

  

 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/11d08149-d1e6-400e-a979-5921ec06d75c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.