API returning duplicate CDR
orcawave-dliu opened this issue · comments
Issue Summary
The API is returning duplicate records.
Steps to Reproduce
- Call the API to get CDR
- 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.
There was a ticket already open with the support team. They told me submit the issue on github.
Thanks!
David Liu
Senior Database Developer
Orcawave
From: Bilal Boussayoud ***@***.***>
Sent: Friday, May 27, 2022 12:17 PM
To: twilio/twilio-python ***@***.***>
Cc: David Liu ***@***.***>; Mention ***@***.***>
Subject: Re: [twilio/twilio-python] API returning duplicate CDR (Issue #606)
Hi @orcawave-dliu<https://github.com/orcawave-dliu>, since this seems like an API issue, feel free to file a support ticket<https://twilio.com/help/contact> in order to properly debug this issue.
—
Reply to this email directly, view it on GitHub<#606 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZG2KPKKVBFB6YVFUTL5SC3VMENRZANCNFSM5WGGUDJA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>