You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to compile some schemas, the following stack trace is encountered:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/fastjsonschema/__init__.py", line 80, in compile
resolver = RefResolver.from_schema(definition, handlers=handlers)
File "/usr/local/lib/python3.5/dist-packages/fastjsonschema/ref_resolver.py", line 109, in from_schema
return cls(schema.get('id', ''), schema, handlers=handlers, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/fastjsonschema/ref_resolver.py", line 98, in __init__
self.walk(schema)
File "/usr/local/lib/python3.5/dist-packages/fastjsonschema/ref_resolver.py", line 180, in walk
self.walk(item)
File "/usr/local/lib/python3.5/dist-packages/fastjsonschema/ref_resolver.py", line 173, in walk
self.store[normalize(self.resolution_scope)] = node
File "/usr/local/lib/python3.5/dist-packages/fastjsonschema/ref_resolver.py", line 45, in normalize
return urlparse.urlsplit(uri).geturl()
File "/usr/lib/python3.5/urllib/parse.py", line 328, in urlsplit
url, scheme, _coerce_result = _coerce_args(url, scheme)
File "/usr/lib/python3.5/urllib/parse.py", line 115, in _coerce_args
return _decode_args(args) + (_encode_result,)
File "/usr/lib/python3.5/urllib/parse.py", line 99, in _decode_args
return tuple(x.decode(encoding, errors) if x else '' for x in args)
File "/usr/lib/python3.5/urllib/parse.py", line 99, in <genexpr>
return tuple(x.decode(encoding, errors) if x else '' for x in args)
AttributeError: 'dict' object has no attribute 'decode'
...I am still trying to get more information about the schemas that cause this.
When attempting to compile some schemas, the following stack trace is encountered:
...I am still trying to get more information about the schemas that cause this.
Example code to trigger problem:
This appears to be introduced in 1.5; not encountered in 1.4.
The text was updated successfully, but these errors were encountered: