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

Latest version incompatible with faraday 1.0.0 #73

Closed
nielsjansendk opened this issue Mar 25, 2020 · 8 comments
Closed

Latest version incompatible with faraday 1.0.0 #73

nielsjansendk opened this issue Mar 25, 2020 · 8 comments

Comments

@nielsjansendk
Copy link

Using graphlient 3.7 with Faraday 1.0.0 results in the following error:

RuntimeError (Adapter should be set using the adaptermethod, notuse)

It is likely this problem: https://stackoverflow.com/questions/58162859/upgrading-faraday-gem-runtimeerror-adapter-should-be-set-using-the-adapter-m that happens with faraday versions higher than 0.15.4

As far as I can tell from the source code of graphlient, the faraday adapter is set using the "use" method (here: https://github.com/ashkan18/graphlient/blob/0b36f9fc30fc290de98e67d9313b5f3d2681288f/lib/graphlient/adapters/http/faraday_adapter.rb). If my undestanding of the problem is correct, this will need to change to be compatible with Faraday 1.0.0 .

@dblock
Copy link
Collaborator

dblock commented Mar 25, 2020

Thanks for bringing this up. Try fixing it?

@nielsjansendk
Copy link
Author

@dblock It doesn't seem like Faraday can be upgraded in development. I tried to clone and force faraday to be version 1.0.0, but the gem danger-changelog is not compatible. And that gem has not been updated since faraday 1.0.0. I'm not confident enough to try to figure out a solution to that one, if it was just a question of changing the word "use" with the word "adapter" I can do that, but this seems a bit more complicated.

@ashkan18
Copy link
Owner

thanks @nielsjansendk i can try look at this. Thanks for reporting 💜

@theendcomplete
Copy link

theendcomplete commented Apr 9, 2020

@dblock It doesn't seem like Faraday can be upgraded in development. I tried to clone and force faraday to be version 1.0.0, but the gem danger-changelog is not compatible. And that gem has not been updated since faraday 1.0.0. I'm not confident enough to try to figure out a solution to that one, if it was just a question of changing the word "use" with the word "adapter" I can do that, but this seems a bit more complicated.

I've tried to just change word "use" with the word "adapter" and it works, but not in every case :(

theendcomplete pushed a commit to theendcomplete/graphlient that referenced this issue Apr 10, 2020
@micahbf
Copy link

micahbf commented May 21, 2020

I see the fix for this was merged to master, any chance a version could be released with this fix?

@ashkan18
Copy link
Owner

sure, good reminder! I can release a new version in a bit.

@micahbf
Copy link

micahbf commented May 21, 2020

Awesome, thank you!

@ashkan18
Copy link
Owner

Just released the new version 0.4.0

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

No branches or pull requests

5 participants