twilio / twilio/twilio-ruby

[BUG] client.flex_api.v2 is removed

Open Beginner friendly
#785 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
Ruby
Stars
1.4k
Forks
472
Avg merge
1d 3h
Merged PRs (30d)
5

Description

Describe the bug

Twilio::REST::FlexApiBase#v2 method was removed in 7.10.4

Code snippet
::Twilio::REST::Client.new(credentials.account_sid, credentials.auth_token).flex_api.v2.web_channels.create.create(
              chat_friendly_name:,
              customer_friendly_name:,
              address_sid: credentials.address_sid,
              pre_engagement_data: MultiJson.dump(conversation_id:)
            )
Actual behavior

NoMethodError is raised

Expected behavior

Initialization of Twilo::REST::FlexApi::V2 object during calling of FlexApi#v2 method

twilio-ruby version

7.10.4

Ruby version

3.4.9

Logs or error messages

undefined method 'v2' for an instance of Twilio::REST::FlexApi (NoMethodError)

Additional context

As temporary solution I had to init Twilo::REST::FlexApi::V2 manually.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Twilio::REST::FlexApi#v2 entry point and compare it with the linked 7.10.4 removal. Reproduce the NoMethodError using the provided client call, then verify that calling FlexApi#v2 initializes a Twilio::REST::FlexApi::V2 object and allows the web_channels operation to proceed.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.