You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could the ID be set on the post? Would make it a little bit easier to script, rather than parsing the JSON? But it's reasonable not to offer that, too.
Why doesn't the GET work?
POST causes no error in the log, but on the GET:
[13/Feb/2017 21:08:17] ERROR [django.request:124] Internal Server Error: /api/v1/viewconfs/
Traceback (most recent call last):
File "/opt/conda/lib/python2.7/site-packages/django/core/handlers/exception.py", line 39, in inner
response = get_response(request)
File "/opt/conda/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/opt/conda/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/conda/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/opt/conda/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/conda/lib/python2.7/site-packages/rest_framework/views.py", line 477, in dispatch
response = self.handle_exception(exc)
File "/opt/conda/lib/python2.7/site-packages/rest_framework/views.py", line 437, in handle_exception
self.raise_uncaught_exception(exc)
File "/opt/conda/lib/python2.7/site-packages/rest_framework/views.py", line 474, in dispatch
response = handler(request, *args, **kwargs)
File "/opt/conda/lib/python2.7/site-packages/rest_framework/decorators.py", line 52, in handler
return func(*args, **kwargs)
File "./tilesets/views.py", line 254, in viewconfs
return JsonResponse(json.loads(obj.viewconf))
File "/opt/conda/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/opt/conda/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/conda/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Maybe it's not actually writing to the database?
The text was updated successfully, but these errors were encountered:
On the 0.0.7 Docker image: (or from source: I just replicated it)
POST causes no error in the log, but on the GET:
Maybe it's not actually writing to the database?
The text was updated successfully, but these errors were encountered: