Skip to content
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

Suddenly ruby error when using client #37

Closed
1000paces opened this issue Oct 18, 2023 · 7 comments
Closed

Suddenly ruby error when using client #37

1000paces opened this issue Oct 18, 2023 · 7 comments

Comments

@1000paces
Copy link

A recent update to the graphql gem (version 2.1.x) results in this ruby error:
"undefined method []' for nil:NilClass"`

I tracked it back to the graphql-client at this path:
graphql-client-0.18.0/lib/graphql/client/query_typename.rb:28:in add_typename'",`

Seems that @types is nil. This works fine in graphql versions 2.0.x. I'm not sure this is a problem in weaviate-ruby, but I thought I'd start there. The client works fine for some things (schemas, adding data) but you can't use get or aggs.

@andreibondarev
Copy link
Collaborator

andreibondarev commented Oct 18, 2023

@1000paces Is this the error you're experiencing? https://github.com/github/graphql-client/issues/310

@1000paces
Copy link
Author

1000paces commented Oct 18, 2023 via email

@andreibondarev
Copy link
Collaborator

Yes, that looks like exactly the same issue.

-Ron
On Oct 18, 2023 at 12:07 PM -0700, Andrei Bondarev @.>, wrote: @1000paces Is this the error you're experiencing? github/graphql-client#310 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

Yeah, I'm waiting for the gem to be fixed.

@1000paces
Copy link
Author

1000paces commented Oct 18, 2023 via email

@andreibondarev
Copy link
Collaborator

@1000paces If you need an immediate fix you can do something like this in your application.

@1000paces
Copy link
Author

1000paces commented Oct 23, 2023 via email

@andreibondarev
Copy link
Collaborator

@1000paces I believe this issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants