spyne
spyne copied to clipboard
Corner case error
Stacktrace (most recent call last):
File "raven/middleware.py", line 31, in __call__
iterable = self.application(environ, start_response)
File "apigateway/server.py", line 229, in __call__
return app(environ, start_response)
File "spyne/server/wsgi.py", line 250, in __call__
return self._verb_handlers[verb](req_env, start_response)
File "spyne/server/wsgi.py", line 359, in handle_rpc
self.get_in_object(p_ctx)
File "spyne/server/_base.py", line 82, in get_in_object
message=self.app.in_protocol.REQUEST)
File "spyne/protocol/dictdoc.py", line 422, in deserialize
self.validator)
File "spyne/protocol/dictdoc.py", line 541, in _doc_to_object
value = self._from_dict_value(member, v, validator)
File "spyne/protocol/dictdoc.py", line 489, in _from_dict_value
retval = self.from_string(class_, value)
File "apigateway/spyne_injection.py", line 389, in from_string
return super(JsonDocument, self).from_string(*args, **kwargs)
File "spyne/protocol/_base.py", line 281, in from_string
return handler(class_, string, *args, **kwargs)
File "spyne/model/_base.py", line 38, in wrapper
return func(cls, string, *args, **kwargs)
File "spyne/protocol/_model.py", line 293, in date_from_string
raise ValidationError(string, "%%r: %r" % e)
File "spyne/error.py", line 69, in __init__
Fault.__init__(self, 'Client.ValidationError', custom_msg % s)
Local variables in the last frame:
'custom_msg' '%r: ValueError("time data '12.21.1221' does not match format '%Y-%m-%d'",)'
In the previous frame:
'cls' <class 'spyne.model.primitive.Date'>
'e' ValueError("time data '12.21.1221' does not match format '%Y-%m-%d'",)
'string' u'12.21.1221'