Closed ste-pool closed 1 year ago
Me again. Sorry :see_no_evil:
Don't be, every bug report is very welcome!
Maybe the solution is to rename
enc_hook
todefault
then it mirrors the signature of json.dumps
Yes, that would be the best solution. Wanna add a PR?
This also definitely should have been caught by our tests.
This seems to be a regression at least since 2.0.0
https://github.com/litestar-org/litestar/blob/v2.0.0/litestar/serialization/msgspec_hooks.py#L127
I'm seeing the same error when using msgspec encoder over the default json.dumps
Me again. Sorry 🙈
Describe the bug Running the structlog example here results in an internal server error as of v1.45 (I think)
The default encoder was changed here Which doesn't accept the
default
argument given hereI'm not sure if it's a structlog problem or a starlite problem.
Maybe the solution is to rename
enc_hook
todefault
then it mirrors the signature ofjson.dumps
? I'm not sure, to be honest.To Reproduce Run the structlog example in the documentation:
Additional context Add any other context about the problem here.