Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When uploading a 5.8G file, the prompt Bad Gateway appears. #528

Closed
ainp opened this issue Jan 31, 2024 · 1 comment
Closed

When uploading a 5.8G file, the prompt Bad Gateway appears. #528

ainp opened this issue Jan 31, 2024 · 1 comment

Comments

@ainp
Copy link

ainp commented Jan 31, 2024

There is no problem in uploading a file of several hundred kilobytes, but when uploading a 5.8G file, the message "Bad Gateway" appears.
The information on the server is as follows:
[31/Jan/2024:14:07:36 +0000] "POST /api/entry?expiration=2999-12-31T00%3A00%3A00Z HTTP/1.1" 400 32
2024/01/31 14:08:12 upload.go:61: invalid upload: unexpected EOF

截屏2024-01-31 22 18 27

@mtlynch
Copy link
Owner

mtlynch commented Feb 2, 2024

Thanks for reporting this!

This is unfortunately a duplicate of #355, so I'm closing this in favor of the main ticket.

What's probably happening is that the server is crashing and restarting before the upload can finish. You might be able to work around it by allocation the server more RAM or CPU, but for the time being, PicoShare doesn't work so well on files >1GB.

@mtlynch mtlynch closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants