Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

"list index out of range" when trying to hit an API. #772

@harshitGC

Description

@harshitGC

The bot is encountering an error ("list index out of range") when attempting actions that require querying an external API.

I added an action to search for a product on a ecommerce site. There's a discrepancy in the configuration of an action. After specifying a JSON schema for the request body and saving it, the schema reverts back to the default state (i.e., "{}") upon reopening the action details. It doesn't save the schema details. Although, the name, description and headers were being saved.

Sometimes the copilot will ask further details about the product and on specifying that there will be no response from it.

The expected format for the request body includes a JSON object with a "q" key representing the product query.

The API responds with a JSON object containing an array of "products," each representing a product found based on the query. Each hit product details such as "product_id", "product_name", product_thumbnail", etc.

Along with "hits" it also return the query which was sent as response and total_products (number of products that are found based of the query).

image

Unable to search.

image

Not repliying.

image

Not hitting API in the backend.

  • OS: Windows 11
  • Browser: Chrome Version 125.0.6422.142

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions