Docspell upload API not returning error when there is a database error
- Dominant language
- Elm
- Stars
- 2.3k
- Forks
- 184
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 4
Description
I was trying to insert a lot of documents and then I got the following error:
`docspell-restserver | org.postgresql.util.PSQLException: ERROR: could not resize shared memory segment "/PostgreSQL.261413272" to 8388608 bytes: No space left on device`
As a consequence this document was not saved to my database, but the API still returned a status 200.
This is related to default postgres docker image not having enough shared memory `shm-size`, however I feel that Docspell should return an error on the API in that case as the document does not get saved in this case.
More info on this issue:
https://signoz.io/guides/pq-could-not-resize-shared-memory-segment-no-space-left-on-device/
Contributor guide
Assessment
This issue has not been assessed yet.