Skip to content

Fix for “Object of type UUID is not JSON serializable” exception for TAXII2#251

Closed
andrewbeard wants to merge 1 commit into
eclecticiq:masterfrom
andrewbeard:fix-taxii2-uuid-encoding
Closed

Fix for “Object of type UUID is not JSON serializable” exception for TAXII2#251
andrewbeard wants to merge 1 commit into
eclecticiq:masterfrom
andrewbeard:fix-taxii2-uuid-encoding

Conversation

@andrewbeard
Copy link
Copy Markdown
Contributor

Multiple taxii2 endpoints (pretty much anything that prints an id) cause an exception when trying to convert an object that contains UUID to json. This is a minimal fix that handles the UUID encoding by converting to a string first on json conversion.

Copy link
Copy Markdown
Contributor

@eric-eclecticiq eric-eclecticiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are missing.

@eric-eclecticiq
Copy link
Copy Markdown
Contributor

Fixed with #289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants