Skip to content

Bug len(None) communication extension inline attachments #8123

Open

Description

Describe the bug

With the new version 1.11.0 and the introduction of inline attachments for the azure communication extension,
a bug raises with a len of None object error when not setting the inline attachments.

Thanks.

Related command

az communication email send

Errors

object of type 'NoneType' has no len()

Issue script & Debug output

az communication email send \
        --connection-string "${AZURE_COMMUNICATION_SERVICE_ENDPOINT}" \
        --sender "DoNotReply@${AZURE_FROM_SENDER_DOMAIN}" \
        --to "${to_email}" \
        --subject "TEST" \
        --text "See the attachment." \
        --attachments ${filename} \
        --attachment-types plain/text

Expected behavior

Should work.

Environment Summary

azure-cli 2.64
azure communication extension 1.11.0

Additional context

Using azure communication extension 1.10.0 everything work as expected..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botCommunicationLabel for AzureCommunicationServicesService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions