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

Compatability bug with context object #5

Open
XChikuX opened this issue Apr 5, 2024 · 1 comment
Open

Compatability bug with context object #5

XChikuX opened this issue Apr 5, 2024 · 1 comment

Comments

@XChikuX
Copy link

XChikuX commented Apr 5, 2024

user_schema = strawberry.Schema(
    query=Query,
    mutation=Mutation,
    subscription=Subscription,
    scalar_overrides={datetime: date_time, int: Int64},
    extensions=[
        create_stellate_extension(service_name, token),  # Stellate extension
        QueryDepthLimiter(max_depth=7),
        MaxTokensLimiter(max_token_count=1000),
        MaskErrors(),  # NOTE: Uncomment for production
        DisableAnonymousIntrospection,
    ],
)

This is what I get:

"/home/hagrid/backend/.env/lib/python3.10/site-packages/stellate_strawberry/__init__.py", line 56, in on_execute 

request = self.execution_context.context["request"] if self.execution_context.context else None
@patrick91
Copy link
Contributor

@XChikuX do you have a minimal reproduction? or a full stacktrace?

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