Legacy Dev Forum Posts

 View Only

Sign Up

Download recordings fails at first attemp

  • 1.  Download recordings fails at first attemp

    Posted 06-05-2025 18:05

    masanchezmemo | 2018-11-23 22:02:33 UTC | #1

    Hello there,

    My development team created a .Net console program to download all voice conversations recordings for a given time period. What we have discovered is that the API fails at first attempt and we also discovered that same behave within the API explorer:

    The first attemp with the following ConversarionID: 143566c9-6347-4c6d-9127-9723bd994539

    Second attemp with the same ConversationID: 143566c9-6347-4c6d-9127-9723bd994539

    Anyone can give us an answert why it is happening this?

    Regards,

    Mario


    tim.smith | 2018-11-26 18:13:19 UTC | #2

    See the response code documentation for GET /api/v2/conversations/{conversationId}/recordings/{recordingId}. The 202 response is expected.


    masanchezmemo | 2018-11-26 20:34:10 UTC | #3

    Tim,

    The question is why the firts attemp appears blank resulta data and the second one I have a good response?. Is is something wrong with the API?

    Regards,

    Mario


    tim.smith | 2018-11-26 20:35:53 UTC | #4

    The response will be blank until the recording has finished transcoding. It won't give you the download details until there's a file that can be downloaded. This is the intended behavior.


    masanchezmemo | 2018-11-26 20:36:47 UTC | #5

    Even if the recording if from some days earlier? :frowning:


    tim.smith | 2018-11-26 20:42:05 UTC | #6

    The transcoding is done in real time to service the request, rather than pre-transcode the recording to all possible formats that could be requested. The transcoded download file, and therefore URL, expire after a set amount of time and is deleted. When you request to download the same file again in the future after the previous download expired, it will have to be transcoded again.


    masanchezmemo | 2018-11-26 20:51:44 UTC | #7

    Cool TIm,

    So once the conde handles the response code 200 it should work properly. The last question, Do I have this response code in .Net?

    regards,

    mario


    tim.smith | 2018-11-26 20:59:56 UTC | #8

    Each SDK method has the WithHttpInfo variety, e.g. RecordingApi.GetConversationRecordingWithHttpInfo(...)


    system | 2018-12-27 20:59:59 UTC | #9

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 4037