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

It takes long time to return to shell after error #316

Open
agazso opened this issue Jan 28, 2022 · 2 comments
Open

It takes long time to return to shell after error #316

agazso opened this issue Jan 28, 2022 · 2 comments

Comments

@agazso
Copy link
Member

agazso commented Jan 28, 2022

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.

@bee-runner bee-runner bot added the issue label Jan 28, 2022
@Cafe137
Copy link
Collaborator

Cafe137 commented Jan 30, 2022

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
Copy link
Collaborator

Cafe137 commented Feb 2, 2022

FYI @AuHau

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants