Azure / Azure/azure-cli-extensions

Bug len(None) communication extension inline attachments

Open
#8,123 4 comments 0 reactions 0 assignees View on GitHub
Auto-Assign Communication customer-reported question Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

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..

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.