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

1103 rpc client logs expected error #1465

Merged
merged 3 commits into from
Sep 28, 2023
Merged

Conversation

egdmrsy
Copy link
Contributor

@egdmrsy egdmrsy commented Sep 25, 2023

Checklist

  • I have followed (at least) the PR section of the contributing guide.
  • I fixed all necessary PR warnings
  • The commit history is clean
  • The E2E tests are passing
  • If possible, the issue has been divided into more subtasks
  • I did a self review before requesting a review from another team member

Description

Closes #1103

The low-level RPC-Client method "invoke" logs errors from Multichain regardless of the error-handling on high-level methods that call it. When trying to create a stream that exists on the chain, Multichain throws a -705 error, which is logged by the RPC-Client. This is not desirable for the ensureStreamExists/getOrCreateStream functions, because these functions are meant to return a stream if such stream exists and therefore should not throw an error in such case. That's why the solution is to send an additional network request with "liststreams" command to check if the desired stream exists. In that case the "create stream" command will be bypassed as well as the error it returns.

@egdmrsy egdmrsy self-assigned this Sep 25, 2023
@github-actions
Copy link

github-actions bot commented Sep 25, 2023

Warnings
⚠️ No CHANGELOG added.

Generated by 🚫 dangerJS against f4fde0b

@egdmrsy egdmrsy force-pushed the 1103-rpc-client-logs-expected-error branch from b957b73 to e1d985e Compare September 28, 2023 07:46
@egdmrsy egdmrsy force-pushed the 1103-rpc-client-logs-expected-error branch from e1d985e to f4fde0b Compare September 28, 2023 10:26
@egdmrsy egdmrsy merged commit f173e8b into main Sep 28, 2023
29 checks passed
@openkfwCI
Copy link

openkfwCI commented Sep 28, 2023

NotesTime
Note for Reviewer: E2E tests on remote server failedThu, 28 Sep 2023 10:51:49 +0000

Generated by E2E-Test

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

Successfully merging this pull request may close these issues.

api: The RPC-Client logs expected error streamalreadyexists SP 1
3 participants