-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Error using GraphQL::Dataloader::AsyncDataloader #4764
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
Comments
Aw, shoot -- I should have said in the docs: I think you need Rails 7.1+ for this, because I see that you're on Rails 7.0.4, so my suggestion is to get on Rails 7.1 first, then switch to |
Thanks. Same error:
I noticed that the request gets a 500 response immediately, and the error pops up in the console after a few seconds. |
I see that the debug gem is the top line of the backtrace. I looked at the changelog for that gem (https://github.com/ruby/debug/releases) to see if there were any recent relevant changes, and I found ruby/debug#987, which fixed compatibility with Fiber scheduler in debug v1.9.0. (That PR is from the author of the |
That seems to have fixed it. Thanks! One thing to mention. At first I was getting intermittent database connection errors. I fixed it by increase by the connection pool size from 10 to 20. Might be worth noting that async means more concurrent connections. |
Glad to hear it, thanks for sharing. Thanks for the suggestion on database connections. I'll update the docs soon to include a note about that 👍 |
Migrate to GraphQL::Dataloader::AsyncDataloader as described here: https://graphql-ruby.org/dataloader/async_dataloader. Using v2.2.4. Getting error:
The text was updated successfully, but these errors were encountered: