swarm-cli icon indicating copy to clipboard operation
swarm-cli copied to clipboard

It takes long time to return to shell after error

Open agazso opened this issue 3 years ago • 2 comments

Sometimes it may take 30 seconds on my older computer to return to the shell after an error. For example if I try to upload a file that is too big to the gateway, it prints There may be additional information in the Bee logs. but then it seems to get stuck and after waiting several seconds it returns the control to the shell.

agazso avatar Jan 28 '22 11:01 agazso

await this.bee.uploadFile keeps the socket open to the Bee node, even though the request already errored out.

Then I guess it uploads all the data anyway, even though the HTTP 413 has already been received.

Tested with 11M and 500M file, and there was a significant difference between the timings, hence why I think sending the data happens anyway.

I can verify this later with a reverse proxy printing body chunk flow.

Cafe137 avatar Jan 30 '22 15:01 Cafe137

FYI @AuHau

I will be testing this later, but maybe you have already encountered this issue?

Cafe137 avatar Feb 02 '22 16:02 Cafe137