overblog / dataloader-bundle

This bundle allows to easy use DataLoaderPHP in your Symfony project through configuration.
MIT License
46 stars 14 forks source link

Introspection fails with "Found no active DataLoader instance." #5

Closed andheiberg closed 7 years ago

andheiberg commented 7 years ago

Using a setup like this https://github.com/overblog/GraphQLBundle/pull/73#issuecomment-285598005

I get "Found no active DataLoader instance." when running any introspection query.

Sorry that I can't provide you more detail. Does this ring any bells though?

mcg-web commented 7 years ago

Hi @AndreasHeiberg, Can you give me the version of dataloader-php you use please?

andheiberg commented 7 years ago

the latest one; 0.5.1

mcg-web commented 7 years ago

Can you try to add an else { return $promise; } bloc here to see if it fix the issue?

andheiberg commented 7 years ago

Major :man_facepalming: I just now realise that your latest version of the dataloader-bundle requires a very old version of dataloader-php so I was on that version not on 0.5.1 as expected. All is resolved.