Skip to content

Bug Report: create_a_bot() fails with toggle_button_url type error #22

@palaparthi

Description

@palaparthi

Getting this error when creating bots:

Invalid type for variable 'toggle_button_url'. Required value type is str and passed type was NoneType at ['received_data']['bot_style']['toggle_button_url']

The Issue

Your API returns null for toggle_button_url, but the SDK expects a string.

Working: ListBotsResponseBotsInnerBotStyle allows null values
Broken: CreateABotResponseBotStyle doesn't allow null values

Both endpoints return the same data format, but have different validation rules.

This looks like an OpenAPI spec inconsistency because the bot is successfully created. I think in your internal spec, CreateBotResponseBotStyle needs:

toggle_button_url:
  type: string
  nullable: true  # Add this

Please let me know if you need more information, thank you 🙏.

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