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 '__proxy__' is not JSON serializable #844

Closed
mbeacom opened this issue Apr 10, 2018 · 0 comments
Closed

TypeError: Object of type '__proxy__' is not JSON serializable #844

mbeacom opened this issue Apr 10, 2018 · 0 comments
Assignees
Labels
backend This needs backend expertise.

Comments

@mbeacom
Copy link
Contributor

mbeacom commented Apr 10, 2018

View details in Rollbar: https://rollbar.com/gitcoin/gitcoin/items/709/

Traceback (most recent call last):
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/ubuntu/gitcoin/coin/app/faucet/views.py", line 98, in save_faucet
    new_faucet_request(fr)
  File "/home/ubuntu/gitcoin/coin/app/marketing/mails.py", line 120, in new_faucet_request
    send_mail(from_email, to_email, subject, body, from_name=_("No Reply from Gitcoin.co"))
  File "/home/ubuntu/gitcoin/coin/app/marketing/mails.py", line 76, in send_mail
    response = sg.client.mail.send.post(request_body=mail.get())
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/python_http_client/client.py", line 217, in http_request
    data = json.dumps(kwargs['request_body']).encode('utf-8')
  File "/usr/lib/python3.6/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.6/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.6/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type '__proxy__' is not JSON serializable
@mbeacom mbeacom added backend This needs backend expertise. rollbar labels Apr 10, 2018
@mbeacom mbeacom closed this as completed Apr 16, 2018
@mbeacom mbeacom removed the to do label Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This needs backend expertise.
Projects
None yet
Development

No branches or pull requests

1 participant