Closed
Description
openedon Nov 22, 2018
When invoking RestClient::Request.execute
with a block that does not return the request.
For example:
RestClient::Request.execute(method: :get, url: 'https://www.google.com') {}
NoMethodError: undefined method `code' for nil:NilClass
from /.../gems/ruby-2.5.1@alkimii/gems/ddtrace-0.17.1/lib/ddtrace/contrib/rest_client/request_patch.rb:65:in `datadog_trace_request'
This is a case we faced when using Cloudinary. It uses RestClient
without returning a request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment