Yureien / YABin

Yet another pastebin, simple but feature-rich, along with a CLI client
https://bin.sohamsen.me/
MIT License
142 stars 18 forks source link

Sending big file on docker deployment fails #39

Open EvilOlaf opened 6 months ago

EvilOlaf commented 6 months ago

Hey there,

I have an issue where sending a rather big file via CLI fails with error: Expecting value: line 1 column 1 (char 0).

The issue does not happen when sending the file to bin.sohamsen.me.

yabin -b https://bin.sohamsen.me create report_file.txt
report_file.txt
https://bin.sohamsen.me/ti44j

Tried both with and without reverse proxy.

Smaller files with a few lines work as expected.

Is there a way to enable some debugging in docker logs or are there some settings that could be adjusted?

Cheers

EvilOlaf commented 6 months ago

Alright after some try'n'error it seems like there is a limit of 524121 byte. Everything bigger triggers the error. The issue must be in YABin since there is no SQL query reaching the db server on larger pastes.

Yureien commented 1 month ago

I have a suspicion that it's due to Prisma, but I'll have to dig further.