I'm trying to find a human user ID from artist-entered name data from our daily-maker. Can anyone tell me why I can use the first three of these filters with sg.find_one('HumanUser', filter), but the last one throws an error?
['login','is', 'Tim Bowman']
['lastname','is', 'Tim Bowman']
['firstname','is', 'Tim Bowman']
['name','is','Tim Bowman']
Here's the error message:
--------------------------------------------------------------------------------
XMLRPC Fault 104:
API read() CRUD ERROR #10: Read failed for entity type [HumanUser]: undefined method `[]' for nil:NilClass
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "dailyDbaseTools.py", line 189, in <module>
user = sg.find_one('HumanUser', [filters[useThisFilter]])
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 205, in find_one
result = self.find(entity_type, filters, fields, order, filter_operator, 1)
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 179, in find
resp = self._api3.read(req)
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 333, in callable
return self.meta_caller(attr, *args, **kwargs)
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 340, in meta_caller
(self.__class__.__name__, attr, self.__class__.__name__)
File "<string>", line 1, in <module>
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 1629, in __call__
return self.__send(self.__name, args)
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 1921, in __request
verbose=self.__verbose
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 1684, in request
return self._parse_response(h.getfile(), sock)
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 1823, in _parse_response
return u.close()
File "/Volumes/ol03/dive_rsrc/_scripts/shotgun/API/shotgun_api3_preview.py", line 1266, in close
raise Fault(**self._stack[0])
shotgun_api3_preview.Fault: <Fault 104: "API read() CRUD ERROR #10: Read failed for entity type [HumanUser]: undefined method `[]' for nil:NilClass">