Re: [web2py] Update query failing on GAE

2012-03-07 Thread Sushant Taneja
The update() returns 0. I am now taking care of it. But I still don't see any error logs corresponding to the updates etc. May be the reason is eventual consistency. Thanks for the help On Wednesday, March 7, 2012 10:16:32 AM UTC+5:30, Sushant Taneja wrote: As per my understanding, update

Re: [web2py] Update query failing on GAE

2012-03-07 Thread howesc
an update() that updates 0 records is not considered a failure so there will be no logs about it. On Wednesday, March 7, 2012 4:41:14 AM UTC-8, Sushant Taneja wrote: The update() returns 0. I am now taking care of it. But I still don't see any error logs corresponding to the updates etc.

[web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
Hi All, I am building a invite module. In the controller, I have the following code : try: some initial stuff try: ... some stuff update_request_query = (db.INVITE_SIGNUP.email_id == request_email_id)

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
Looks its a timeout. Maybe I am wrong but you can state an update too many records. GAE has time limitations, I dont know how much because I dont use it anymore. Search for the GAE docs on these limitations. 2012/3/6 Sushant Taneja sushant.tanej...@gmail.com: Hi All, I am building a invite

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
Hi, I thought the same but as you can see I have handled the Timeout exception in the code. If its the Timeout then why I am unable to catch the exception ? On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: Looks its a timeout. Maybe I am wrong but you can state an update too

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Carlos Costa
I dont know, but have you examined the GAE log? 2012/3/6 Sushant Taneja sushant.tanej...@gmail.com: Hi, I thought the same but as you can see I have handled the Timeout exception in the code. If its the Timeout then why I am unable to catch the exception ? On Tuesday, March 6, 2012 7:30:38

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
Yes I did check GAE logs. There are no logs with severity level error. On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: I dont know, but have you examined the GAE log? 2012/3/6 Sushant Taneja sushant.tanej...@gmail.com: Hi, I thought the same but as you can see I have

Re: [web2py] Update query failing on GAE

2012-03-06 Thread howesc
you probably need to add some more logging to see what is happening. perhaps the row is not found? (remember eventual consistency), perhaps there is some other error that is currently not being logged On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: Yes I did check GAE

Re: [web2py] Update query failing on GAE

2012-03-06 Thread Sushant Taneja
As per my understanding, update statement returns the number of records updated. What does it return when no records are updated 0 or None ? Will have to modify my code accordingly On Wednesday, March 7, 2012 9:33:48 AM UTC+5:30, howesc wrote: you probably need to add some more logging to see