jkimbo / graphql-sync-dataloaders

Use DataLoaders in your Python GraphQL servers that have to run in a sync context (i.e. Django).
MIT License
41 stars 21 forks source link

GraphQL deferred execution failed to complete Error #3

Open e-lobo opened 2 years ago

e-lobo commented 2 years ago

For instance say you are resolving a field as None and it is defined in schema as Non Null ( ! ). Now because of the below screenshot.

=> GraphQL deferred execution failed to complete Error

Upon investigating the flow of execution of SyncFuture i noticed the below

image

callback() here throws the error seen below

image

Now im not sure why SyncFuture below is in Pending State though

image
jkimbo commented 2 years ago

Thanks for the bug report @e-lobo . I thought that we might be able to avoid having to capture exceptions in futures (like promises do) but it I don't think it's avoidable. Will update here when it's working.

e-lobo commented 1 year ago

@jkimbo basically any error getting raised inside our dataloader throws this error instead of the actual error..