Closed NickBusey closed 6 years ago
Can you provide some file to test this? I've got a feeling that this might be limited to very specific item in the export.
I think the issue here is our web server limits the size of the JSON input to 1 MB (Note how the number in column is equal to 1024 * 1024 bytes), so when an input exceeds the limit the server stops accepting more and the JSON we get is malformed.
I've increased the limit to 10 MB, which I think is probably enough, but if it isn't, you can increase it more by modifying the Rocket.toml
file.
I can confirm it was file size. My import was 1.3MB, deleting half the contents worked.
I'm not sure the Rocket.toml is being included correctly in the docker image, or maybe I did something wrong when I tried to rebuild it. So I couldn't test your fix, but shrinking the file size worked. Thanks!
AFAIK Rocket.toml is not included in the docker image.
But if I understand the Rocket documentation right, you should also be able to also set the limit by setting environment variable:
ROCKET_LIMITS={json=10485760}
I just tested it, and what @mprasil said works. I added the rocket.toml file to the docker image anyway, so it should work now without any changes.
Trying to import a 1password export (.1pif) file results in an error.
Docker logs show: