Created
December 22, 2021 09:57
-
-
Save ivangodfather/40e8e9da307fe98c576f7343ec9c553d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>django.core.exceptions.ValidationError: ['No data returned!'] // Werkzeug Debugger</title> | |
<link rel="stylesheet" href="?__debugger__=yes&cmd=resource&f=style.css" | |
type="text/css"> | |
<!-- We need to make sure this has a favicon so that the debugger does | |
not accidentally trigger a request to /favicon.ico which might | |
change the application's state. --> | |
<link rel="shortcut icon" | |
href="?__debugger__=yes&cmd=resource&f=console.png"> | |
<script src="?__debugger__=yes&cmd=resource&f=debugger.js"></script> | |
<script type="text/javascript"> | |
var TRACEBACK = 140567252340064, | |
CONSOLE_MODE = false, | |
EVALEX = true, | |
EVALEX_TRUSTED = false, | |
SECRET = "Kh82iz2So1uYt6VuXd9A"; | |
</script> | |
</head> | |
<body style="background-color: #fff"> | |
<div class="debugger"> | |
<h1>django.core.exceptions.ValidationError</h1> | |
<div class="detail"> | |
<p class="errormsg">django.core.exceptions.ValidationError: ['No data returned!']</p> | |
</div> | |
<h2 class="traceback">Traceback <em>(most recent call last)</em></h2> | |
<div class="traceback"> | |
<h3></h3> | |
<ul><li><div class="frame" id="frame-140567252339440"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/contrib/staticfiles/handlers.py"</cite>, | |
line <em class="line">76</em>, | |
in <code class="function">__call__</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>self.base_url = urlparse(self.get_base_url())</pre> | |
<pre class="line before"><span class="ws"> </span>super().__init__()</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>def __call__(self, environ, start_response):</pre> | |
<pre class="line before"><span class="ws"> </span>if not self._should_handle(get_path_info(environ)):</pre> | |
<pre class="line current"><span class="ws"> </span>return self.application(environ, start_response)</pre> | |
<pre class="line after"><span class="ws"> </span>return super().__call__(environ, start_response)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span>class ASGIStaticFilesHandler(StaticFilesHandlerMixin, ASGIHandler):</pre> | |
<pre class="line after"><span class="ws"> </span>"""</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252339344"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/core/handlers/wsgi.py"</cite>, | |
line <em class="line">133</em>, | |
in <code class="function">__call__</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>def __call__(self, environ, start_response):</pre> | |
<pre class="line before"><span class="ws"> </span>set_script_prefix(get_script_name(environ))</pre> | |
<pre class="line before"><span class="ws"> </span>signals.request_started.send(sender=self.__class__, environ=environ)</pre> | |
<pre class="line before"><span class="ws"> </span>request = self.request_class(environ)</pre> | |
<pre class="line current"><span class="ws"> </span>response = self.get_response(request)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>response._handler_class = self.__class__</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>status = '%d %s' % (response.status_code, response.reason_phrase)</pre> | |
<pre class="line after"><span class="ws"> </span>response_headers = [</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252337280"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py"</cite>, | |
line <em class="line">130</em>, | |
in <code class="function">get_response</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>def get_response(self, request):</pre> | |
<pre class="line before"><span class="ws"> </span>"""Return an HttpResponse object for the given HttpRequest."""</pre> | |
<pre class="line before"><span class="ws"> </span># Setup default url resolver for this thread</pre> | |
<pre class="line before"><span class="ws"> </span>set_urlconf(settings.ROOT_URLCONF)</pre> | |
<pre class="line current"><span class="ws"> </span>response = self._middleware_chain(request)</pre> | |
<pre class="line after"><span class="ws"> </span>response._resource_closers.append(request.close)</pre> | |
<pre class="line after"><span class="ws"> </span>if response.status_code >= 400:</pre> | |
<pre class="line after"><span class="ws"> </span>log_response(</pre> | |
<pre class="line after"><span class="ws"> </span>'%s: %s', response.reason_phrase, request.path,</pre> | |
<pre class="line after"><span class="ws"> </span>response=response,</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252340592"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py"</cite>, | |
line <em class="line">49</em>, | |
in <code class="function">inner</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>@wraps(get_response)</pre> | |
<pre class="line before"><span class="ws"> </span>def inner(request):</pre> | |
<pre class="line before"><span class="ws"> </span>try:</pre> | |
<pre class="line before"><span class="ws"> </span>response = get_response(request)</pre> | |
<pre class="line before"><span class="ws"> </span>except Exception as exc:</pre> | |
<pre class="line current"><span class="ws"> </span>response = response_for_exception(request, exc)</pre> | |
<pre class="line after"><span class="ws"> </span>return response</pre> | |
<pre class="line after"><span class="ws"> </span>return inner</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span>def response_for_exception(request, exc):</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252340400"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py"</cite>, | |
line <em class="line">114</em>, | |
in <code class="function">response_for_exception</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span># Allow sys.exit() to actually exit. See tickets #1023 and #4701</pre> | |
<pre class="line before"><span class="ws"> </span>raise</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>else:</pre> | |
<pre class="line before"><span class="ws"> </span>signals.got_request_exception.send(sender=None, request=request)</pre> | |
<pre class="line current"><span class="ws"> </span>response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())</pre> | |
<pre class="line after"><span class="ws"> </span>log_response(</pre> | |
<pre class="line after"><span class="ws"> </span>'%s: %s', response.reason_phrase, request.path,</pre> | |
<pre class="line after"><span class="ws"> </span>response=response,</pre> | |
<pre class="line after"><span class="ws"> </span>request=request,</pre> | |
<pre class="line after"><span class="ws"> </span>exc_info=sys.exc_info(),</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252338960"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py"</cite>, | |
line <em class="line">149</em>, | |
in <code class="function">handle_uncaught_exception</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>"""</pre> | |
<pre class="line before"><span class="ws"> </span>if settings.DEBUG_PROPAGATE_EXCEPTIONS:</pre> | |
<pre class="line before"><span class="ws"> </span>raise</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>if settings.DEBUG:</pre> | |
<pre class="line current"><span class="ws"> </span>return debug.technical_500_response(request, *exc_info)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span># Return an HttpResponse that displays a friendly error message.</pre> | |
<pre class="line after"><span class="ws"> </span>callback = resolver.resolve_error_handler(500)</pre> | |
<pre class="line after"><span class="ws"> </span>return callback(request)</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252337808"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django_extensions/management/technical_response.py"</cite>, | |
line <em class="line">40</em>, | |
in <code class="function">null_technical_500_response</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>try:</pre> | |
<pre class="line before"><span class="ws"> </span>if exc_value is None:</pre> | |
<pre class="line before"><span class="ws"> </span>exc_value = exc_type()</pre> | |
<pre class="line before"><span class="ws"> </span>if exc_value.__traceback__ is not tb:</pre> | |
<pre class="line current"><span class="ws"> </span>raise exc_value.with_traceback(tb)</pre> | |
<pre class="line after"><span class="ws"> </span>raise exc_value</pre> | |
<pre class="line after"><span class="ws"> </span>finally:</pre> | |
<pre class="line after"><span class="ws"> </span>exc_value = None</pre> | |
<pre class="line after"><span class="ws"> </span>tb = None</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252337040"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py"</cite>, | |
line <em class="line">47</em>, | |
in <code class="function">inner</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>return inner</pre> | |
<pre class="line before"><span class="ws"> </span>else:</pre> | |
<pre class="line before"><span class="ws"> </span>@wraps(get_response)</pre> | |
<pre class="line before"><span class="ws"> </span>def inner(request):</pre> | |
<pre class="line before"><span class="ws"> </span>try:</pre> | |
<pre class="line current"><span class="ws"> </span>response = get_response(request)</pre> | |
<pre class="line after"><span class="ws"> </span>except Exception as exc:</pre> | |
<pre class="line after"><span class="ws"> </span>response = response_for_exception(request, exc)</pre> | |
<pre class="line after"><span class="ws"> </span>return response</pre> | |
<pre class="line after"><span class="ws"> </span>return inner</pre> | |
<pre class="line after"><span class="ws"></span> </pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252339296"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py"</cite>, | |
line <em class="line">181</em>, | |
in <code class="function">_get_response</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>wrapped_callback = self.make_view_atomic(callback)</pre> | |
<pre class="line before"><span class="ws"> </span># If it is an asynchronous view, run it in a subthread.</pre> | |
<pre class="line before"><span class="ws"> </span>if asyncio.iscoroutinefunction(wrapped_callback):</pre> | |
<pre class="line before"><span class="ws"> </span>wrapped_callback = async_to_sync(wrapped_callback)</pre> | |
<pre class="line before"><span class="ws"> </span>try:</pre> | |
<pre class="line current"><span class="ws"> </span>response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre> | |
<pre class="line after"><span class="ws"> </span>except Exception as e:</pre> | |
<pre class="line after"><span class="ws"> </span>response = self.process_exception_by_middleware(e, request)</pre> | |
<pre class="line after"><span class="ws"> </span>if response is None:</pre> | |
<pre class="line after"><span class="ws"> </span>raise</pre> | |
<pre class="line after"><span class="ws"></span> </pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252338432"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/contextlib.py"</cite>, | |
line <em class="line">79</em>, | |
in <code class="function">inner</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>def __call__(self, func):</pre> | |
<pre class="line before"><span class="ws"> </span>@wraps(func)</pre> | |
<pre class="line before"><span class="ws"> </span>def inner(*args, **kwds):</pre> | |
<pre class="line before"><span class="ws"> </span>with self._recreate_cm():</pre> | |
<pre class="line current"><span class="ws"> </span>return func(*args, **kwds)</pre> | |
<pre class="line after"><span class="ws"> </span>return inner</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span>class _GeneratorContextManagerBase:</pre> | |
<pre class="line after"><span class="ws"> </span>"""Shared functionality for @contextmanager and @asynccontextmanager."""</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252339056"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py"</cite>, | |
line <em class="line">54</em>, | |
in <code class="function">wrapped_view</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"></span>def csrf_exempt(view_func):</pre> | |
<pre class="line before"><span class="ws"> </span>"""Mark a view function as being exempt from the CSRF view protection."""</pre> | |
<pre class="line before"><span class="ws"> </span># view_func.csrf_exempt = True would also work, but decorators are nicer</pre> | |
<pre class="line before"><span class="ws"> </span># if they don't have side effects, so return a new function.</pre> | |
<pre class="line before"><span class="ws"> </span>def wrapped_view(*args, **kwargs):</pre> | |
<pre class="line current"><span class="ws"> </span>return view_func(*args, **kwargs)</pre> | |
<pre class="line after"><span class="ws"> </span>wrapped_view.csrf_exempt = True</pre> | |
<pre class="line after"><span class="ws"> </span>return wraps(view_func)(wrapped_view)</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252340544"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py"</cite>, | |
line <em class="line">125</em>, | |
in <code class="function">view</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>self.request = request</pre> | |
<pre class="line before"><span class="ws"> </span>self.args = args</pre> | |
<pre class="line before"><span class="ws"> </span>self.kwargs = kwargs</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span># And continue as usual</pre> | |
<pre class="line current"><span class="ws"> </span>return self.dispatch(request, *args, **kwargs)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span># take name and docstring from class</pre> | |
<pre class="line after"><span class="ws"> </span>update_wrapper(view, cls, updated=())</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span># and possible attributes set by decorators</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252340112"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/rest_framework/views.py"</cite>, | |
line <em class="line">509</em>, | |
in <code class="function">dispatch</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>handler = self.http_method_not_allowed</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>response = handler(request, *args, **kwargs)</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>except Exception as exc:</pre> | |
<pre class="line current"><span class="ws"> </span>response = self.handle_exception(exc)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>self.response = self.finalize_response(request, response, *args, **kwargs)</pre> | |
<pre class="line after"><span class="ws"> </span>return self.response</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>def options(self, request, *args, **kwargs):</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252340688"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/rest_framework/views.py"</cite>, | |
line <em class="line">469</em>, | |
in <code class="function">handle_exception</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>context = self.get_exception_handler_context()</pre> | |
<pre class="line before"><span class="ws"> </span>response = exception_handler(exc, context)</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line before"><span class="ws"> </span>if response is None:</pre> | |
<pre class="line current"><span class="ws"> </span>self.raise_uncaught_exception(exc)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>response.exception = True</pre> | |
<pre class="line after"><span class="ws"> </span>return response</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>def raise_uncaught_exception(self, exc):</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252339104"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/rest_framework/views.py"</cite>, | |
line <em class="line">480</em>, | |
in <code class="function">raise_uncaught_exception</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>if settings.DEBUG:</pre> | |
<pre class="line before"><span class="ws"> </span>request = self.request</pre> | |
<pre class="line before"><span class="ws"> </span>renderer_format = getattr(request.accepted_renderer, 'format')</pre> | |
<pre class="line before"><span class="ws"> </span>use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')</pre> | |
<pre class="line before"><span class="ws"> </span>request.force_plaintext_errors(use_plaintext_traceback)</pre> | |
<pre class="line current"><span class="ws"> </span>raise exc</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span># Note: Views are made CSRF exempt from within `as_view` as to prevent</pre> | |
<pre class="line after"><span class="ws"> </span># accidental removal of this exemption in cases where `dispatch` needs to</pre> | |
<pre class="line after"><span class="ws"> </span># be overridden.</pre> | |
<pre class="line after"><span class="ws"> </span>def dispatch(self, request, *args, **kwargs):</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252339152"> | |
<h4>File <cite class="filename">"/usr/local/lib/python3.9/site-packages/rest_framework/views.py"</cite>, | |
line <em class="line">506</em>, | |
in <code class="function">dispatch</code></h4> | |
<div class="source library"><pre class="line before"><span class="ws"> </span>handler = getattr(self, request.method.lower(),</pre> | |
<pre class="line before"><span class="ws"> </span>self.http_method_not_allowed)</pre> | |
<pre class="line before"><span class="ws"> </span>else:</pre> | |
<pre class="line before"><span class="ws"> </span>handler = self.http_method_not_allowed</pre> | |
<pre class="line before"><span class="ws"></span> </pre> | |
<pre class="line current"><span class="ws"> </span>response = handler(request, *args, **kwargs)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>except Exception as exc:</pre> | |
<pre class="line after"><span class="ws"> </span>response = self.handle_exception(exc)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"> </span>self.response = self.finalize_response(request, response, *args, **kwargs)</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252339488"> | |
<h4>File <cite class="filename">"/app/dogpound/users/api.py"</cite>, | |
line <em class="line">88</em>, | |
in <code class="function">availability</code></h4> | |
<div class="source "><pre class="line before"><span class="ws"> </span>date = serializer.validated_data.get("date")</pre> | |
<pre class="line before"><span class="ws"> </span>is_virtual = serializer.validated_data.get("is_virtual")</pre> | |
<pre class="line before"><span class="ws"> </span>location = serializer.validated_data.get("location")</pre> | |
<pre class="line before"><span class="ws"> </span>trainer_id = serializer.validated_data.get("trainer_id")</pre> | |
<pre class="line before"><span class="ws"> </span>return response.Ok(</pre> | |
<pre class="line current"><span class="ws"> </span>services.get_trainers_availability(</pre> | |
<pre class="line after"><span class="ws"> </span>user=request.user,</pre> | |
<pre class="line after"><span class="ws"> </span>date=date,</pre> | |
<pre class="line after"><span class="ws"> </span>is_virtual=is_virtual,</pre> | |
<pre class="line after"><span class="ws"> </span>request=request,</pre> | |
<pre class="line after"><span class="ws"> </span>location=location,</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252339776"> | |
<h4>File <cite class="filename">"/app/dogpound/users/services.py"</cite>, | |
line <em class="line">294</em>, | |
in <code class="function">get_trainers_availability</code></h4> | |
<div class="source "><pre class="line before"><span class="ws"> </span>date=date,</pre> | |
<pre class="line before"><span class="ws"> </span>is_virtual=is_virtual,</pre> | |
<pre class="line before"><span class="ws"> </span>staff_ids=staff_ids,</pre> | |
<pre class="line before"><span class="ws"> </span>request=request,</pre> | |
<pre class="line before"><span class="ws"> </span>)</pre> | |
<pre class="line current"><span class="ws"> </span>return get_formatted_availability_response(data=availabilities, location=location)</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span>def get_list_of_packages_for_user(user):</pre> | |
<pre class="line after"><span class="ws"> </span>location = user.location</pre> | |
<pre class="line after"><span class="ws"> </span>data = constants.SERVICES_RATES_MAPPING[location]</pre></div> | |
</div> | |
<li><div class="frame" id="frame-140567252340448"> | |
<h4>File <cite class="filename">"/app/dogpound/users/services.py"</cite>, | |
line <em class="line">230</em>, | |
in <code class="function">get_formatted_availability_response</code></h4> | |
<div class="source "><pre class="line before"><span class="ws"> </span>get_formatted_timeslot(availability)</pre> | |
<pre class="line before"><span class="ws"> </span>)</pre> | |
<pre class="line before"><span class="ws"> </span>return [</pre> | |
<pre class="line before"><span class="ws"> </span>formatted_availabilities[key] for key in formatted_availabilities.keys()</pre> | |
<pre class="line before"><span class="ws"> </span>]</pre> | |
<pre class="line current"><span class="ws"> </span>raise ValidationError("No data returned!")</pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span> </pre> | |
<pre class="line after"><span class="ws"></span>def get_all_availabilities(site_id, date, is_virtual, staff_ids, request):</pre> | |
<pre class="line after"><span class="ws"> </span>client = MindBodyClient()</pre> | |
<pre class="line after"><span class="ws"></span> </pre></div> | |
</div> | |
</ul> | |
<blockquote>django.core.exceptions.ValidationError: ['No data returned!']</blockquote> | |
</div> | |
<div class="plain"> | |
<p> | |
This is the Copy/Paste friendly version of the traceback. | |
</p> | |
<textarea cols="50" rows="10" name="code" readonly>Traceback (most recent call last): | |
File "/usr/local/lib/python3.9/site-packages/django/contrib/staticfiles/handlers.py", line 76, in __call__ | |
return self.application(environ, start_response) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 133, in __call__ | |
response = self.get_response(request) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 130, in get_response | |
response = self._middleware_chain(request) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 49, in inner | |
response = response_for_exception(request, exc) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 114, in response_for_exception | |
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info()) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 149, in handle_uncaught_exception | |
return debug.technical_500_response(request, *exc_info) | |
File "/usr/local/lib/python3.9/site-packages/django_extensions/management/technical_response.py", line 40, in null_technical_500_response | |
raise exc_value.with_traceback(tb) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner | |
response = get_response(request) | |
File "/usr/local/lib/python3.9/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.9/contextlib.py", line 79, in inner | |
return func(*args, **kwds) | |
File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view | |
return view_func(*args, **kwargs) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view | |
return self.dispatch(request, *args, **kwargs) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch | |
response = self.handle_exception(exc) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception | |
self.raise_uncaught_exception(exc) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception | |
raise exc | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch | |
response = handler(request, *args, **kwargs) | |
File "/app/dogpound/users/api.py", line 88, in availability | |
services.get_trainers_availability( | |
File "/app/dogpound/users/services.py", line 294, in get_trainers_availability | |
return get_formatted_availability_response(data=availabilities, location=location) | |
File "/app/dogpound/users/services.py", line 230, in get_formatted_availability_response | |
raise ValidationError("No data returned!") | |
django.core.exceptions.ValidationError: ['No data returned!']</textarea> | |
</div> | |
<div class="explanation"> | |
The debugger caught an exception in your WSGI application. You can now | |
look at the traceback which led to the error. <span class="nojavascript"> | |
If you enable JavaScript you can also use additional features such as code | |
execution (if the evalex feature is enabled), automatic pasting of the | |
exceptions and much more.</span> | |
</div> | |
<div class="footer"> | |
Brought to you by <strong class="arthur">DON'T PANIC</strong>, your | |
friendly Werkzeug powered traceback interpreter. | |
</div> | |
</div> | |
<div class="pin-prompt"> | |
<div class="inner"> | |
<h3>Console Locked</h3> | |
<p> | |
The console is locked and needs to be unlocked by entering the PIN. | |
You can find the PIN printed out on the standard output of your | |
shell that runs the server. | |
<form> | |
<p>PIN: | |
<input type=text name=pin size=14> | |
<input type=submit name=btn value="Confirm Pin"> | |
</form> | |
</div> | |
</div> | |
</body> | |
</html> | |
<!-- | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.9/site-packages/django/contrib/staticfiles/handlers.py", line 76, in __call__ | |
return self.application(environ, start_response) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 133, in __call__ | |
response = self.get_response(request) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 130, in get_response | |
response = self._middleware_chain(request) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 49, in inner | |
response = response_for_exception(request, exc) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 114, in response_for_exception | |
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info()) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 149, in handle_uncaught_exception | |
return debug.technical_500_response(request, *exc_info) | |
File "/usr/local/lib/python3.9/site-packages/django_extensions/management/technical_response.py", line 40, in null_technical_500_response | |
raise exc_value.with_traceback(tb) | |
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner | |
response = get_response(request) | |
File "/usr/local/lib/python3.9/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.9/contextlib.py", line 79, in inner | |
return func(*args, **kwds) | |
File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view | |
return view_func(*args, **kwargs) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view | |
return self.dispatch(request, *args, **kwargs) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch | |
response = self.handle_exception(exc) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception | |
self.raise_uncaught_exception(exc) | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception | |
raise exc | |
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch | |
response = handler(request, *args, **kwargs) | |
File "/app/dogpound/users/api.py", line 88, in availability | |
services.get_trainers_availability( | |
File "/app/dogpound/users/services.py", line 294, in get_trainers_availability | |
return get_formatted_availability_response(data=availabilities, location=location) | |
File "/app/dogpound/users/services.py", line 230, in get_formatted_availability_response | |
raise ValidationError("No data returned!") | |
django.core.exceptions.ValidationError: ['No data returned!'] | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment