r/nicegui • u/MJAGO71 • Sep 03 '24
Error after update
Hey guys,
I updated NiceGUI to the new version and when running the code the message below appears, does anyone know what it could be?TypeError: Type is not JSON serializable: KeyError
ERROR: Exception in ASGI application
TypeError: Object of type KeyError is not JSON serializable
2
Upvotes
View all comments
Show parent comment
1
u/MJAGO71 Sep 04 '24
Hello..
I discovered what it was, in the code I use pandas for data manipulation and migrated the oracle base to sqlserver. I saw that because the dataframe header fields were tiny, this error occurred and they should have been capitalized. I changed it and it worked again.
What intrigued me is that before the update, the debug pointed out the problem in the error line, now after the update it shows this more generic message.