<div dir="ltr">Solved.<br><div>There were some documents that had some issues while they have been uploaded because some services were down.</div><div>So I removed the docs and uploaded them again and now the list is ok.</div><div><br></div><div>Bye,</div><div><br></div><div>P.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 24, 2020 at 11:25 AM Paolo Pasquali <<a href="mailto:paolo.pasquali@gmail.com">paolo.pasquali@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Dear devs,<div><br></div><div>I'm getting an error on documents. The list of documents does not appear but if I apply some filters (e.g. Document Type) the list seems correct. I have no problem on layer and map lists.</div><div>Should I check out-of-date custom templates (e.g. search templates)? I've upgraded from 2.10.2 to 2.10.4.</div><div>Please find the error below.</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Best,</div><div><br></div><div>Paolo</div><div><br></div><div><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">Internal Server Error: /api/documents/</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">Traceback (most recent call last):</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py", line 227, in wrapper</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> response = callback(request, *args, **kwargs)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py", line 467, in dispatch_list</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> return self.dispatch('list', request, **kwargs)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py", line 499, in dispatch</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> response = method(request, **kwargs)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py", line 582, in get_list</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> request, to_be_serialized, response_objects=objects)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py", line 650, in create_response</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> data['objects'])) if x['id'] in filtered_objects_ids]</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py", line 1029, in format_objects</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace"> username = obj.owner.get_username()</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">AttributeError: 'NoneType' object has no attribute 'get_username'</font></span></p></div></div></div>
</blockquote></div>