Skip to content

Fix uuid encoder super call - #28

Closed
zZedix wants to merge 4 commits into
PasarGuard:nextfrom
zZedix:fix-uuidencoder-super-call
Closed

Fix uuid encoder super call#28
zZedix wants to merge 4 commits into
PasarGuard:nextfrom
zZedix:fix-uuidencoder-super-call

Conversation

@zZedix

@zZedix zZedix commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

UUIDEncoder.default was incorrectly calling super().default(self, obj), which passed self twice.
Since super().default is already bound to the instance, this caused a TypeError
(JSONEncoder.default() takes 2 positional arguments but 3 were given) whenever JSON serialization used cls=UUIDEncoder — for example, during XRay subscription exports.
The extra self argument has been removed, preventing the crash.

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