Skip to content

Sync not working since version 7.1.0 #722

@taka0125

Description

@taka0125

Issue Summary

Since version 7.1.0, sync functionality has stopped working. The service_sid and map_sid are no longer passed in the sync_maps section, causing the following code to fail:

Steps to Reproduce

  1. Initialize the Twilio client with ACCOUNT_SID and AUTH_TOKEN.
  2. Retrieve the sync service using service_sid.
  3. Attempt to create a sync map item with key, data, and ttl.

Code Snippet

client = Twilio::REST::Client.new(ACCOUNT_SID, AUTH_TOKEN)
sync_service = client.sync.v1.services(service_sid)

sync_service
  .sync_maps(collection_name)
  .sync_map_items
  .create(
    key: key,
    data: data,
    ttl: ttl
  )

Exception/Log

`add': [HTTP 404] 20404 : Unable to create record (Twilio::REST::RestError)
The requested resource /Services//Maps//Items was not found
https://www.twilio.com/docs/errors/20404

Technical details:

  • twilio-ruby version: 7.1.1
  • ruby version:3.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions