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

Feedback tool not working on dev, stage environments #2713

Closed
lbeaufort opened this issue Oct 25, 2017 · 2 comments
Closed

Feedback tool not working on dev, stage environments #2713

lbeaufort opened this issue Oct 25, 2017 · 2 comments
Assignees

Comments

@lbeaufort
Copy link
Member

lbeaufort commented Oct 25, 2017

The "Feedback" tool isn't working on dev or stage:

When I try "Test" "Test" "Test", I get the following error: image.png

On my local machine, I have the same error and the error that displays is:
Internal Server Error: /data/issue/
Traceback (most recent call last):
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/exception.py", line 42, in inner
response = get_response(request)
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users//dev/cms/fec-cms/fec/data/views.py", line 447, in feedback
data = json.loads(request.body)
File "/Users//.pyenv/versions/3.5.4/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
Internal Server Error: /data/issue/
Traceback (most recent call last):
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/exception.py", line 42, in inner
response = get_response(request)
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users//dev/cms/.env/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users//dev/cms/fec-cms/fec/data/views.py", line 447, in feedback
data = json.loads(request.body)
File "/Users//.pyenv/versions/3.5.4/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'

@lbeaufort
Copy link
Member Author

@patphongs FYI

@lbeaufort
Copy link
Member Author

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

No branches or pull requests

2 participants