Skip to content

[rest_client] NoMethodError: undefined method `code' for nil:NilClass #636

Closed

Description

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

Metadata

Assignees

Labels

bugInvolves a bugcommunityWas opened by a community memberintegrationsInvolves tracing integrations

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions