Skip to content

to_json causes and error #555

Open
@rhuberdeau

Description

@rhuberdeau

Issue Summary

Stack level too deep error when calling to_json on a response object

This is a duplicate of #423 which was closed due to "no activity"

Steps to Reproduce

  1. Call to_json on any instance of a class that inherits from Domain

@childish-sambino added a fix to the closed ticket which works for me if I add it to domain.rb

def as_json(*)
  @properties
end

Code Snippet

$twilio.api.account.messages.list.to_json
SystemStackError: stack level too deep
	from (irb):6

Technical details:

  • twilio-ruby version: 5.53.0
  • ruby version: 2.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugbug in the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions