question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'EmailClient' object has no attribute 'get_sent_status'

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cpajrcommented, 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

0reactions
xiangyan99commented, Oct 17, 2022

@turalf Can you take a look?

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Client' object has no attribute 'send_message' (Discord Bot ...
Client object does not a have a send_message method. To fix your problem you can just have it as: async def test(author, message): ......
Read more >
AttributeError: 'Client' object has no attribute 'status' #3995
I have been trying to run a grid on my code but keep getting the following error: Traceback (most recent call last): File ......
Read more >
Type object "Client " has no attribute "get-postgresql
If im guessing right you are probably trying to authenticate user. First name your variables appropriately: email = request.params.get('email') password ...
Read more >
class SES. Client - Boto3 Docs 1.26.32 documentation
A low-level client representing Amazon Simple Email Service (SES) ... An object that contains the topic ARN associated with an Amazon Simple Notification ......
Read more >
Email events - Amazon Pinpoint - AWS Documentation
For events that are created when you send a message from a campaign or journey, this object contains attributes that are associated with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found