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

Random 'you shall not pass' #11

Open
kwongtn opened this issue Apr 16, 2023 · 0 comments
Open

Random 'you shall not pass' #11

kwongtn opened this issue Apr 16, 2023 · 0 comments

Comments

@kwongtn
Copy link
Owner

kwongtn commented Apr 16, 2023

Error logs as follows:

GraphQL request:2:3
1 | mutation AddSpottingEntry($data: EventInput!) {
2 |   addEvent(input: $data) {
  |   ^
3 |     ok
Traceback (most recent call last):
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/graphql/execution/execute.py", line 528, in await_result
    return_type, field_nodes, info, path, await result
                                          ^^^^^^^^^^^^
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry/schema/schema_converter.py", line 568, in _async_resolver
    await _check_permissions_async(_source, strawberry_info, kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry/schema/schema_converter.py", line 525, in _check_permissions_async
    raise PermissionError(message)
PermissionError: You shall not pass. Contact an admin for more info.
Stack (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 995, in _bootstrap
    self._bootstrap_inner()
  File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/threading.py", line 67, in run
    return old_run_func(self, *a, **kw)
  File "/usr/local/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 83, in _worker
    work_item.run()
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/asgiref/sync.py", line 490, in thread_handler
    return func(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry_django_plus/middlewares/debug_toolbar.py", line 149, in process_request
    response = super().__call__(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/debug_toolbar/middleware.py", line 49, in __call__
    return self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry_django_plus/middlewares/debug_toolbar.py", line 125, in _get_response
    return asyncio.run(_inner_get_response())
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry_django_plus/middlewares/debug_toolbar.py", line 120, in _inner_get_response
    return await self._original_get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 154, in __acall__
    return await f(*args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/utils/deprecation.py", line 150, in __acall__
    response = response or await self.get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = await get_response(request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/django/core/handlers/base.py", line 253, in _get_response_async
    response = await wrapped_callback(
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/sentry_sdk/integrations/django/asgi.py", line 99, in sentry_wrapped_callback
    return await callback(request, *args, **kwargs)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry/django/views.py", line 254, in dispatch
    return await self.run(request=request)
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry/http/async_base_view.py", line 176, in run
    result = await self.execute_operation(
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry/http/async_base_view.py", line 115, in execute_operation
    return await self.schema.execute(
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry/schema/schema.py", line 247, in execute
    result = await execute(
  File "/root/.local/share/virtualenvs/code-_Py8Si6I/lib/python3.11/site-packages/strawberry/schema/execute.py", line 153, in execute
    process_errors(result.errors, execution_context)
ERROR:strawberry.execution:You shall not pass. Contact an admin for more info.
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

1 participant