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

[BUG] As many WebSocket ERRORs as transactions handled #5004

Open
s8sato opened this issue Aug 23, 2024 · 0 comments
Open

[BUG] As many WebSocket ERRORs as transactions handled #5004

s8sato opened this issue Aug 23, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@s8sato
Copy link
Contributor

s8sato commented Aug 23, 2024

OS and Environment

Linux, test_env.py

GIT commit hash

76dafdc

Minimum working example / Steps to reproduce

Prepare transaction.json (example) with a few instructions and,

git checkout 76dafdc
cargo build
LOG_LEVEL=ERROR ./scripts/test_env.py setup
cd test
while true; do curl http://127.0.0.1:8080/status; cat transaction.json | ./iroha json transaction &; sleep 0.5; done

Actual result

On block commit, peer logs as many WebSocket ERRORs as the transactions it has handled during the round.

test/peers/iroha0/log.txt

  2024-08-22T15:26:03.287294Z ERROR iroha_torii: Failure during event streaming, error: WebSocket error: WebSocket protocol error: Sending after closing is not allowed
    at torii/src/lib.rs:215

This is not seen in other peers

Expected result

There should be no ERROR level logs in normal use

Logs

See Actual result section

Who can help to reproduce?

@s8sato

Notes

No response

@s8sato s8sato added the Bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant