-
Notifications
You must be signed in to change notification settings - Fork 557
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
Problems with error statuses for REST client (2.1.0) #1009
Comments
@brevio-nicolay I have tested the same setup, Ruby 3.2.2 or Ruby 3.1.4 and in both cases I correctly get |
I have found the same issue, although the Versions used: Webmock: 3.19.1 |
Same issues with Ruby 3.2.2.
And this is the stacktrace. I'll look into getting a minimal reproducing example.
|
@lgo @ErikSchierboom are you able to provide a sample code that reproduces the issue? |
Hi, thanks for the great library!
First, some versions for reference:
When I try to mock a single call to any URL and return any status other than
200
I get the following error from within the rest-client gem (rest-client-2.1.0/lib/restclient/exceptions.rb:123 to be precise):'http_code': undefined method 'code' for "404 Not Found":String
Example to reproduce:
200 works fine:
Now, I'm not sure whether I'm just overlooking something painfully obvious, or if this is an issue with Webmock or REST client - does Webmock not support REST client 2.1.0?
The text was updated successfully, but these errors were encountered: