Skip to content

SynchronousOnlyOperation Exception in get_fixed_settings() #81

@mohibullah70

Description

@mohibullah70

The library was working great until I started using web sockets, for which I need to change to Daphne server.
Now It throws the following error in the cloud.

raise SynchronousOnlyOperation(message)
django.core.exceptions.SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async.

on this line of code
with connection.cursor() as cursor:
inside get_fixed_settings() in graphene_django_filter/conf.py file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions