Skip to content

TypeError: keys must be str, int, float, bool or None, not ModelBase #42

Description

@yml
Exception in thread kolo-save_request_in_db:
Traceback (most recent call last):
 File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
INFO "GET /sitemap-news.xml HTTP/1.1" 200 493
   self.run()
 File "/usr/local/lib/python3.10/threading.py", line 953, in run
   self._target(*self._args, **self._kwargs)
 File "/usr/local/lib/python3.10/site-packages/kolo/profiler.py", line 233, in save_request_in_db
   data = json.dumps(json_data, cls=KoloJSONEncoder)
 File "/usr/local/lib/python3.10/json/__init__.py", line 238, in dumps
   **kw).encode(obj)
 File "/usr/local/lib/python3.10/json/encoder.py", line 199, in encode
   chunks = self.iterencode(o, _one_shot=True)
 File "/usr/local/lib/python3.10/json/encoder.py", line 257, in iterencode
   return _iterencode(o, 0)
TypeError: keys must be str, int, float, bool or None, not ModelBase

The error above is trigger when I add django/db in the config.toml

[filters]
include_frames = ["django/contrib/sitemaps", "django/db"]

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions