-
Notifications
You must be signed in to change notification settings - Fork 472
Closed
twilio/twilio-oai-generator
#622Description
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
- Initialize the Twilio client with
ACCOUNT_SIDandAUTH_TOKEN. - Retrieve the sync service using
service_sid. - Attempt to create a sync map item with
key,data, andttl.
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
Labels
No labels