We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Non-JSON serializable types can cause the application to panic.
FAILED tests/test.pt - TypeError: Object of type int64 is not JSON serializable 1 failed, 29 passed, 39 warnings in 10.53s
_appmap/generation.py:114: in default return json.JSONEncoder.default(self, o)
via https://appmap-group.slack.com/archives/C03GM7D2QRH/p1708366829827279
#312
The text was updated successfully, but these errors were encountered:
Rather than adding a special case for int64 to AppMapEncoder, we need to figure out a better way of handling unknown types.
int64
AppMapEncoder
Maybe something like
try: return json.JSONEncoder.default(self, o) except TypeError: return repr(o) # or maybe str(o)
It would probably be good if the tests for this fix include some sort of simple app that uses numpy.
numpy
Sorry, something went wrong.
zermelo-wisen
Successfully merging a pull request may close this issue.
Non-JSON serializable types can cause the application to panic.
via https://appmap-group.slack.com/archives/C03GM7D2QRH/p1708366829827279
#312
The text was updated successfully, but these errors were encountered: