Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty AssertionError in 1.1.0 #102

Closed
jamadden opened this issue Mar 27, 2020 · 0 comments
Closed

Faulty AssertionError in 1.1.0 #102

jamadden opened this issue Mar 27, 2020 · 0 comments
Labels

Comments

@jamadden
Copy link
Member

Module nti.app.renderers.rest:214 in render_externalizable
>>  body = to_json_representation_externalized(body)
Module nti.externalization.representation:108 in dump
>>  return simplejson.dumps(obj, **self._DUMP_ARGS)
Module simplejson:412 in dumps
>>  **kw).encode(obj)
Module simplejson.encoder:296 in encode
>>  chunks = self.iterencode(o, _one_shot=True)
Module simplejson.encoder:378 in iterencode
>>  return _iterencode(o, 0)
Module nti.externalization.representation:82 in _second_pass_to_external_object
>>  result = toExternalObject(obj, name='second-pass')
Module nti.externalization.externalization._externalizer:314 in nti.externalization.externalization._externalizer.to_external_object
Module nti.externalization.externalization._externalizer:396 in nti.externalization.externalization._externalizer.to_external_object
Module nti.externalization.externalization._externalizer:269 in nti.externalization.externalization._externalizer._to_external_object_state
Module nti.externalization.externalization._externalizer:236 in nti.externalization.externalization._externalizer._externalize_object
Module nti.externalization._datastructures:750 in nti.externalization._datastructures.InterfaceObjectIO.toExternalObject
Module nti.externalization._datastructures:271 in nti.externalization._datastructures.AbstractDynamicObjectIO.toExternalObject
Module nti.externalization._datastructures:240 in nti.externalization._datastructures.AbstractDynamicObjectIO.toExternalDictionary
Module nti.externalization.externalization._externalizer:314 in nti.externalization.externalization._externalizer.to_external_object
Module nti.externalization.externalization._externalizer:396 in nti.externalization.externalization._externalizer.to_external_object
Module nti.externalization.externalization._externalizer:247 in nti.externalization.externalization._externalizer._to_external_object_state
AssertionError: 

That line is assert object is not None. It's caused by not stripping primitives on 'second-pass' anymore; that's not actually needed, but was a temporary state on the way to #101 (for YAML, but that ended up being solved another way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant