Fix notion-sync header crash on non-ASCII titles #48

Merged
amoussa1229 merged 1 commit from fix/notion-sync-metadata-encoding into main 2026-06-08 19:42:41 +00:00

1 commit

Author SHA1 Message Date
67266ba57b Fix notion-sync header crash on non-ASCII titles
S3 user-metadata values are sent as HTTP headers, which must be
US-ASCII. Notion page titles routinely contain em dashes and other
non-ASCII characters, causing ERR_INVALID_CHAR and a daily sync
failure. Sanitize the notion-title metadata to printable ASCII.

Also treat a Bedrock ConflictException from StartIngestionJob as
benign (an ingestion job is already running and will pick up the
freshly uploaded files) instead of failing the whole invocation.
2026-06-08 14:58:27 -04:00