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

Not recreating tasks, not finding existing tasks when trying to edit, unable to create new tasks #17

Closed
Liekinloimu opened this issue Dec 30, 2020 · 4 comments

Comments

@Liekinloimu
Copy link

As the header says.

When i try to edit task, i get:
"ValueError at /edit_task_action/1852/
The view to_do_overs.views.edit_task_action didn't return an HttpResponse object. It returned None instead."

and Traceback for it gives:

Environment:

Request Method: POST
Request URL: https://kirska.pythonanywhere.com/edit_task_action/1852/

Django Version: 1.11.29
Python Version: 2.7.12
Installed Applications:
['to_do_overs.apps.ToDoOversConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:

File "/home/Kirska/.virtualenvs/Habitica_ToDoOvers-virtualenv/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)

File "/home/Kirska/.virtualenvs/Habitica_ToDoOvers-virtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
198. "returned None instead." % (callback.module, view_name)

Exception Type: ValueError at /edit_task_action/1852/
Exception Value: The view to_do_overs.views.edit_task_action didn't return an HttpResponse object. It returned None instead.

Trying to create a new task returns "Invalid form of data" as the image shows:

image

@Kirska
Copy link
Owner

Kirska commented Dec 30, 2020

I just cleared out the session data, try it again

@Liekinloimu
Copy link
Author

Some of the tasks are being recreated, but not all. I'm also still unable to edit or create new tasks

@Kirska
Copy link
Owner

Kirska commented Jan 12, 2021

It appears the problem is one of your tags having a character that Django can't translate. Tags get reloaded from Habitica when you go to create a task. Hopefully this helps you workaround it.

DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128). You passed in <Tags: [Bad Unicode data]> (<class 'to_do_overs.models.Tags'>)

@Liekinloimu
Copy link
Author

Thank you! Now it's working. One of the challenges I had participated apparently had an emoji in their tag, and that's what caused the problem.

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

2 participants