Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync not working since version 7.1.0 #722

Closed
taka0125 opened this issue Jun 14, 2024 · 2 comments · Fixed by twilio/twilio-oai-generator#622
Closed

Sync not working since version 7.1.0 #722

taka0125 opened this issue Jun 14, 2024 · 2 comments · Fixed by twilio/twilio-oai-generator#622

Comments

@taka0125
Copy link

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
@AxelTheGerman
Copy link

AxelTheGerman commented Jun 25, 2024

Noticed the same in 7.1.0 and 7.2.0. Downgrade to 7.0.2 "fixes" the issue.

As far as I can tell the code is all auto generated by OpenAPI so the bug is probably in the corresponding API docs?

@taka0125
Copy link
Author

Thank you. I'll reach out to Twilio Support and see what they say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants