Hi.
I’m using the Python library for ORS directions, and sometimes I’m getting some errors (maybe 1 of each 100 queries thrown)
File "python3.5/site-packages/openrouteservice/validator.py", line 683, in _directions_validation
v.validate(params, schema)
File "python3.5/site-packages/cerberus/validator.py", line 992, in validate
for field in self.document:
RuntimeError: dictionary changed size during iteration
File "python3.5/site-packages/openrouteservice/validator.py", line 683, in _directions_validation
v.validate(params, schema)
File python3.5/site-packages/cerberus/validator.py", line 1044, in __validate_definitions
value = self.document[field]
KeyError: 'geometry_format'
File "python3.5/site-packages/openrouteservice/validator.py", line 683, in _directions_validation
v.validate(params, schema)
File python3.5/site-packages/cerberus/validator.py", line 1044, in __validate_definitions
value = self.document[field]
KeyError: 'format_out'
File "python3.5/site-packages/openrouteservice/validator.py", line 683, in _directions_validation
v.validate(params, schema)
File "python3.5/site-packages/cerberus/validator.py", line 992, in validate
for field in self.document:
RuntimeError: dictionary changed size during iteration
As I’ve seen all of them comes from cerberus/validator.py, and the query I throw is always the same. This error comes when I throw some queries with threads.
Any clue on what could be happening?
thanks!