Legacy Dev Forum Posts

 View Only

Sign Up

List index out of range error in Python

  • 1.  List index out of range error in Python

    Posted 06-05-2025 18:09

    luceroel | 2024-05-31 17:33:17 UTC | #1

    Hello team,

    We are using the API:

    AnalyticsConversationQueryResponse postanalyticsconversationsdetailsquery(body)

    We use this API to bring all the interactions of a range time from Genesys Cloud to insert that information to a SQL table.

    It has been working well for 3 years until last May 27th. We are getting the error 'list index out of range error', so the information about that interaction is not recorded in the table or in some cases it is recorded, but it does not bring the information other than the conversation id. It only happens with outbound interactions.

    Does anyone have any idea why it suddenly started sending that error?

    Any ideas?

    Regards, Luz


    tim.smith | 2024-06-03 16:36:06 UTC | #2

    luceroel, post:1, topic:26558
    We are getting the error 'list index out of range error',

    This typically means that your application failed to check the length of an array before accessing its members. The typical resolution to this issue is to add logic to your code to validate the length of an array to ensure that the position you're about to access is within the bounds of the array.


    luceroel | 2024-06-19 15:50:21 UTC | #3

    Thank you for your help!

    It works now. The api that we use change, so we did not have that part.

    Luz


    system | 2024-07-20 15:50:46 UTC | #4

    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: 26558