Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'EmailClient' object has no attribute 'get_sent_status' #26818

Closed
cpajr opened this issue Oct 13, 2022 · 7 comments · Fixed by #26879
Closed

'EmailClient' object has no attribute 'get_sent_status' #26818

cpajr opened this issue Oct 13, 2022 · 7 comments · Fixed by #26879
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Communication customer-reported Issues that are reported by GitHub users external to the Azure organization. Docs needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@cpajr
Copy link

cpajr commented Oct 13, 2022

  • Package Name: azure.communication.email
  • Package Version: 1.0.0b1
  • Operating System: Ubuntu 20.04
  • Python Version: 3.8.10

Describe the bug
When attempting to get the email sent status, leverage example code, the repeated error is raised saying "AttributeError: 'EmailClient' object has no attribute 'get_sent_status'."

To Reproduce
Steps to reproduce the behavior:

  1. Issue code as given in examples:
response = email_client.send(message)
status = email_client.get_sent_status(response.message_id)

Expected behavior
A sent status given with no error thrown.

Screenshots

Additional context

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 13, 2022
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Oct 13, 2022
@ghost ghost added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Oct 13, 2022
@azure-sdk
Copy link
Collaborator

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Service Bus:0.06818104,Event Hubs:0.04909354,Storage:0.048285227'

@xiangyan99
Copy link
Member

@xiangyan99 xiangyan99 added needs-author-feedback Workflow: More information is needed from author to address the issue. and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Oct 14, 2022
@cpajr
Copy link
Author

cpajr commented Oct 15, 2022

I see that example code from your link. However, your documentation is incorrect, both on the Microsoft's website and PyPi:

https://learn.microsoft.com/en-us/python/api/overview/azure/communication-email-readme?view=azure-python-preview#get-email-message-status

https://pypi.org/project/azure-communication-email/

image

@ghost ghost added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-author-feedback Workflow: More information is needed from author to address the issue. labels Oct 15, 2022
@xiangyan99
Copy link
Member

Thanks for the good catch!

@ghost
Copy link

ghost commented Oct 17, 2022

Thank you for your feedback. This has been routed to the support team for assistance.

@cpajr
Copy link
Author

cpajr commented Oct 17, 2022

Glad I could help.

@xiangyan99
Copy link
Member

@turalf Can you take a look?

@PramodValavala-MSFT PramodValavala-MSFT self-assigned this Oct 18, 2022
@PramodValavala-MSFT PramodValavala-MSFT added Docs Client This issue points to a problem in the data-plane of the library. labels Oct 18, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Communication customer-reported Issues that are reported by GitHub users external to the Azure organization. Docs needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants