Coder Social home page Coder Social logo

Comments (3)

ahuang11 avatar ahuang11 commented on May 27, 2024

Thanks for reporting this. There will be an incoming UI upgrade; in the meantime, a work around is saving the value in quotes and stripping the quotes afterwards:

from prefect_email import EmailServerCredentials
email_credentials_block = EmailServerCredentials.load("testing")
email_credentials_block = email_credentials_block.smtp_server.strip('"')

Once the UI is updated, you can edit the existing block to drop the quotes and code to drop strip:
image

from prefect-email.

LukasK13 avatar LukasK13 commented on May 27, 2024

Thank you for the temporary workaround. Which UI update will include the fix?
For anyone else stumbling upon this, the following workaround works for me. Note that both smtp_server and smtp_type have to be stripped and reassigned.

email_server_credentials = EmailServerCredentials.load("my-mail-block")
email_server_credentials.smtp_server = email_server_credentials.smtp_server.strip('"')
email_server_credentials.smtp_type = email_server_credentials.smtp_type.strip('"')

from prefect-email.

ahuang11 avatar ahuang11 commented on May 27, 2024

I couldn't find the issue, but I believe @desertaxle talked to the UI team about this.

from prefect-email.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.