StellateHQ / stellate-strawberry

3 stars 1 forks source link

Compatability bug with context object #5

Open XChikuX opened 5 months ago

XChikuX commented 5 months ago
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 commented 5 months ago

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