I imported a large amount of history (41k items), but when I go to sync to my self hosted server, I get the following error:
Error: There was an error with the atuin sync service: Status 413.
If the problem persists, contact the host
Location:
/private/tmp/atuin-20240610-8671-h80ut1/atuin-18.3.0/crates/atuin-client/src/api_client.rs:162:9
A 413 tends to occur because a specific history record is too large - the number of history records is not relevant here.
History uploads are batched in groups of around 100, so if you have a few extra large records in a batch then you may get a 413.
Assuming there are no reverse proxies in the middle with a lower body size limit, you can adjust Atuin’s limits with the following config on the server
max_history_length: <max length in bytes>
max_record_size: <max length in bytes>
max_history_length applies to sync v1, the other is for sync v2. If your clients have
[sync]
records = true
in the config, then you’re all setup with sync v2
Setting either of those server config values to 0 totally disables any size limits