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 Exception is not JSON serializable #7

Open
sentry-io bot opened this issue May 8, 2020 · 0 comments
Open

TypeError: Object of type Exception is not JSON serializable #7

sentry-io bot opened this issue May 8, 2020 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented May 8, 2020

Sentry Issue: LOGGI-WEB-9X1A

Exception: Failed to get_address_data. Providers: google
  File "shipment/schemas/mutation/create_order.py", line 320, in _update_address_components
    update_address_components(package, metadata)
  File "shipment/schemas/mutation/helpers.py", line 66, in update_address_components
    metadata=metadata
  File "cep/wally.py", line 279, in get_address_data
    providers_names=', '.join([p.name for p in providers])

TypeError: Object of type Exception is not JSON serializable
(4 additional frame(s) were not displayed)
...
  File "json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "base/serializers.py", line 139, in default
    return self.formatter_callback(data)(data)
  File "choicesenum/patches.py", line 12, in _default
    return getattr(obj.__class__, "__json__", _default.default)(obj)
  File "json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '

Failed to log data: RetailPreOrderUpdateAddressComponents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants