Skip to content
New issue

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

TypeError: Object of type ChatStore is not JSON serializable #37

Closed
velecto1 opened this issue Mar 24, 2023 · 3 comments
Closed

TypeError: Object of type ChatStore is not JSON serializable #37

velecto1 opened this issue Mar 24, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@velecto1
Copy link

Hello, I got this error when running the current 'message_table' branch with '--json' option:

...
Gathering media...(4301/4301)
Gathering vCards...(6/6)
Copying media directory...
Traceback (most recent call last):
  File "/usr/local/bin/wtsexporter", line 8, in <module>
    sys.exit(main())
  File "/home/tomtom/.local/lib/python3.8/site-packages/Whatsapp_Chat_Exporter/__main__.py", line 222, in main
    data = json.dumps(data)
  File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ChatStore is not JSON serializable
@KnugiHK KnugiHK added the bug Something isn't working label Mar 24, 2023
@KnugiHK KnugiHK self-assigned this Mar 24, 2023
@KnugiHK
Copy link
Owner

KnugiHK commented Mar 24, 2023

I noticed this issue when #26 was raised.

@KnugiHK
Copy link
Owner

KnugiHK commented Mar 25, 2023

Fixed by #26 and commit 430a5ec. I will leave this open until it is released with #9.

@KnugiHK KnugiHK added the pending for release Feature or bug fix to be released label Mar 25, 2023
@KnugiHK
Copy link
Owner

KnugiHK commented May 16, 2023

Released in 0.9.0.

@KnugiHK KnugiHK closed this as completed May 16, 2023
@KnugiHK KnugiHK removed the pending for release Feature or bug fix to be released label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants