Developer finds two silent bugs in Rust sync daemon only after live deployment
A developer building 'notionless', a Rust daemon that mirrors Notion databases into self-hosted document archive Paperless-ngx, discovered two critical bugs only after testing against real infrastructure. The first bug caused API pagination to fail silently: reqwest stripped Authorization headers during HTTP-to-HTTPS redirects behind a reverse proxy, resulting in 401 errors from the second page onward. The fix involved rebuilding pagination URLs from the configured base rather than trusting the scheme returned by Paperless. The second bug stemmed from Paperless processing uploads asynchronously, meaning a 200 HTTP response did not confirm actual document storage, causing silently rejected duplicates to vanish without any error or log entry. The developer resolved this by polling a task-status endpoint and, on duplicate detection, linking the existing document to the Notion page instead of re-uploading.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in