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

Cannot Resubmit Boundaries #193

Closed
rajadain opened this issue Nov 10, 2022 · 0 comments · Fixed by #195
Closed

Cannot Resubmit Boundaries #193

rajadain opened this issue Nov 10, 2022 · 0 comments · Fixed by #195
Assignees
Labels
bug Something isn't working Task 3.3 Django back-end

Comments

@rajadain
Copy link
Contributor

Overview

Seeing this error:

[2022-11-10 18:30:44 +0000] [8] [DEBUG] PATCH /api/boundaries/4/submit/
Internal Server Error: /api/boundaries/4/submit/
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/src/api/views/boundary.py", line 149, in patch
    now = datetime.now(tz=timezone(settings.TIME_ZONE))
TypeError: timezone() argument 1 must be datetime.timedelta, not str
@rajadain rajadain added bug Something isn't working Task 3.3 Django back-end labels Nov 10, 2022
@mstone121 mstone121 self-assigned this Nov 10, 2022
@mstone121 mstone121 mentioned this issue Nov 10, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Task 3.3 Django back-end
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants