twilio / twilio-python

A Python module for communicating with the Twilio API and generating TwiML.

Home Page:https://www.twilio.com/docs/libraries/python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API returning duplicate CDR

orcawave-dliu opened this issue · comments

Issue Summary

The API is returning duplicate records.

Steps to Reproduce

  1. Call the API to get CDR
  2. Look for duplicate the SID in the dataset returned from the API.

Code Snippet

calls = client.calls.list(end_time_after=datetime(dt.year, dt.month, dt.day, dt.hour, 0, 0),end_time_before=datetime(dt.year, dt.month, dt.day, dt.hour, 59, 59), status='completed')

Exception/Log

# paste exception/log here

Technical details:

  • twilio-python version: 7.8.2
  • python version: 3.9 / 3.10

Hi @orcawave-dliu ,
Do you know around how many records you are listing when the duplicate occurs? Have you tried updating to v7.9.1 of twilio-python?

Hi Jennifer

An hour worth of CDR has total of 128900 records. 18289 were duplicate with the same SID. I did try with the latest version v7.9.1 of twilio-python. Same result.

Hi @orcawave-dliu, since this seems like an API issue, feel free to file a support ticket in order to properly debug this issue.