This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
SMTP Enum is saved instead of Name on Email Server Credentials block #54
Labels
bug
Something isn't working
Utilizing the Email Server credentials block results in an error when the SMTP Type enumeration is specified
Whereas if the a string is used to specify the SMTP type the block functions correctly
Utilizing the block returns this error:
Encountered exception during execution: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/prefect/[engine.py](https://engine.py/)", line 1478, in orchestrate_task_run result = await task.fn(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/prefect_email/[message.py](https://message.py/)", line 116, in email_send_message with email_server_credentials.get_server() as server: File "/usr/local/lib/python3.10/site-packages/prefect_email/[credentials.py](https://credentials.py/)", line 130, in get_server smtp_type = _cast_to_enum(self.smtp_type, SMTPType, restrict=True) File "/usr/local/lib/python3.10/site-packages/prefect_email/[credentials.py](https://credentials.py/)", line 57, in _cast_to_enum raise ValueError(f"Must be one of {valid_enums}; got {obj!r}") ValueError: Must be one of ['SSL', 'STARTTLS', 'INSECURE']; got '587'
The text was updated successfully, but these errors were encountered: