Hi,

I believe this is related to the 'offset' that you are are using, and am
curious if you could elaborate more as to with which values of 'offset' this
occurs and the number of results you think you have in your results set.

-Marzia

On Mon, Sep 29, 2008 at 9:07 AM, Venkatesh Rangarajan <
[EMAIL PROTECTED]> wrote:

> Sample Error :
>
> http://payrate.appspot.com/?keyword=Lead+Programmer
>
>
> On Thu, Sep 25, 2008 at 10:15 AM, Venkatesh Rangarajan <
> [EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I am running a simple query
>>
>>    keyword = self.request.get('keyword')
>>
>>    if len(keyword) <=0:
>>     keyword='Google Engineer'
>>
>>    query = search.SearchableQuery('Visa')
>>    query.Search(keyword)
>>
>>  for result in query.Get(100, int(page)):
>>     visas.append(result)
>>
>> I keep running into the following error in some occasions. Not all.
>>
>> Traceback (most recent call last):
>>
>>   File 
>> "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 
>> 496, in __call__
>>     handler.get(*groups)
>>   File "/base/data/home/apps/payrate/3.33/Main.py", line 142, in get
>>
>>
>>     for result in query.Get(100, int(page)):
>>   File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 
>> 938, in Get
>>     return self._Run(limit, offset)._Next(limit)
>>   File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 
>> 885, in _Run
>>
>>
>>     *datastore_index.CompositeIndexForQuery(pb)[:-1])
>> TypeError: 'NoneType' object is unsubscriptable
>>
>>
>> Any idea on how to handle these and what is causing it? And why does it
>> happen only for certain keywords
>>
>> Rgds,
>> Venkatesh
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to