Errors while executing harvest_all
While executing harvest_all
using web2py -d
, the following stacktraces were printed out on the console.
The Selector options were: 2014 -> 2015, no team, no project, mode:save in database, format:html
Bug present in production 0.8.10.
Traceback (most recent call last):
File "applications/track_publications/modules/harvest_tools.py", line 926, in process_url
self.decode_xml(xml)
File "applications/track_publications/modules/harvest_tools.py", line 973, in decode_xml
self.load_db(record)
File "applications/track_publications/modules/harvest_tools.py", line 1209, in load_db
year=year)
File "applications/track_publications/modules/harvest_tools.py", line 1108, in check_by_fields
year=year)
File "applications/track_publications/modules/plugin_dbui/helper.py", line 388, in get_id
row = table(query)
File "/home/meessen/mywap/web2py/gluon/dal.py", line 9124, in __call__
limitby=(0, 1), for_update=for_update, orderby=orderby, orderby_on_limitby=False).first()
File "/home/meessen/mywap/web2py/gluon/dal.py", line 10749, in select
return adapter.select(self.query, fields, attributes)
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1868, in select
sql = self._select(query, fields, attributes)
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1767, in _select
sql_w = ' WHERE ' + self.expand(query) if query else ''
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1544, in expand
out = op(first, second, **optional_args)
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1382, in AND
return '(%s AND %s)' % (self.expand(first), self.expand(second))
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1544, in expand
out = op(first, second, **optional_args)
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1382, in AND
return '(%s AND %s)' % (self.expand(first), self.expand(second))
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1544, in expand
out = op(first, second, **optional_args)
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1440, in EQ
self.expand(second, first.type))
File "/home/meessen/mywap/web2py/gluon/dal.py", line 1555, in expand
return str(self.represent(expression, field_type))
File "/home/meessen/mywap/web2py/gluon/dal.py", line 2005, in represent
return str(long(obj))
ValueError: invalid literal for long() with base 10: '|2014|2014|'