Fix notion-sync header crash on non-ASCII titles #48
No reviewers
Labels
No labels
app
bug
ci
compliance
dependencies
docker
docs
documentation
duplicate
enhancement
good first issue
help wanted
infra
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/seahaven-slack-bot#48
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/notion-sync-metadata-encoding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
notion-syncfailed on every page whose Notion title contained non-ASCII characters (e.g. em-dash U+2014): setting the S3 object metadata headerx-amz-meta-notion-titlefrom the raw title threwERR_INVALID_CHARbecause HTTP headers must be Latin-1/ASCII.Changes
sanitizeMetadataValue()to strip non-ASCII before setting S3 metadata.ConflictException(ingestion already running) as benign.Status
Deploy-before-merge: already deployed to the
seahaven-slack-botstack (UPDATE_COMPLETE). Post-deploy run verified 78 synced, 0 failed and started KB ingestion job3FLTCZHB63.tsc --noEmitclean.Closes the AWS audit H-9
seahaven-notion-syncfinding (Day-2 remediation, report §1.6).