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

Error : no stubbed request for get #1352

Closed
rickavmaniac opened this issue Dec 27, 2021 · 1 comment · Fixed by #1354
Closed

Error : no stubbed request for get #1352

rickavmaniac opened this issue Dec 27, 2021 · 1 comment · Fixed by #1354

Comments

@rickavmaniac
Copy link

Basic Info

  • Faraday Version: 2.0 pre 4
  • Ruby Version: 3.0.2

Issue description

Try to do a basic get like in the doc:

require 'faraday'

response = Faraday.get 'http://httpbingo.org'

print response.body

Error message : no stubbed request for get http://httpbingo.org (Faraday::Adapter::Test::Stubs::NotFound)

Steps to reproduce

If possible, please provide the steps to reproduce the issue.

CHECKLIST (delete before creating the issue)

  • If you're not reporting a bug/issue, you can ignore this whole template.
  • Are you using the latest Faraday version? If not, please check the Releases page to see if the issue has already been fixed.
  • Provide the Faraday and Ruby Version you're using while experiencing the issue.
  • Fill the Issue description and Steps to Reproduce sections.
  • Delete this checklist before posting the issue.
@rickavmaniac
Copy link
Author

Ok found the problem. In version 2 the default adapter is :test

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

Successfully merging a pull request may close this issue.

1 participant