Skip to content

Conversation

@MForofontov
Copy link

@MForofontov MForofontov commented Dec 15, 2025

The CDC FTP server now returns authentication errors (530 Login authentication failed) when using anonymous FTP with ftplib, and the database filename was changed from trimmed.tfa to alltrimmed.tfa.

Issue: Errors when updating database using make_db.py #22

Changes:

  • Replace ftplib with urllib.request for direct HTTPS download
  • Update database filename from trimmed.tfa to alltrimmed.tfa
  • Modify needs_updating() to accept modified_time parameter
  • Add proper error handling for HTTP header retrieval
  • Remove FTP authentication dependency (no longer needed with HTTPS)

This fixes the database download functionality and aligns with the working curl-based approach for accessing CDC's EMM database.

The CDC FTP server now returns authentication errors (530 Login
authentication failed) when using anonymous FTP with ftplib, and
the database filename was changed from trimmed.tfa to alltrimmed.tfa.

Changes:
- Replace ftplib with urllib.request for direct HTTPS download
- Update database filename from trimmed.tfa to alltrimmed.tfa
- Modify needs_updating() to accept modified_time parameter
- Add proper error handling for HTTP header retrieval
- Remove FTP authentication dependency (no longer needed with HTTPS)

This fixes the database download functionality and aligns with the
working curl-based approach for accessing CDC's EMM database.
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.

1 participant