Skip to content

Conversation

huskeee
Copy link
Contributor

@huskeee huskeee commented Jun 9, 2025

Fixes #299.

@@ -112,8 +112,7 @@ def _poll_until_not(url, pending_statuses, err_msg):
log.info("{0} Account ID: {1}".format("Registered!" if code == 201 else "Already registered!", acct_headers['Location']))
if contact is not None:
account, _, _ = _send_signed_request(acct_headers['Location'], {"contact": contact}, "Error updating contact details")
log.info("Updated contact details:\n{0}".format("\n".join(account['contact'])))

log.info("Updated contact details:\n{0}".format("\n".join(contact)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use

Suggested change
log.info("Updated contact details:\n{0}".format("\n".join(contact)))
log.info("Updated contact details:\n{0}".format("\n".join(account.get('contact') or [])))

?

That way the user at least can see that Let's Encrypt didn't store the contact info.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not that comfortable with python (at least anymore) and this was just a quick and dirty fix. So yeah 😅

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get this approved and merged?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will review it soon (have been on vacation)

@diafygi
Copy link
Owner

diafygi commented Jun 17, 2025

Merged and released version 5.0.2 with this fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change in Let's encrypt response broke client if contact is set
4 participants