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

Nested Errors received on bindings #885

Open
erdemyerebasmaz opened this issue Mar 21, 2024 · 3 comments
Open

Nested Errors received on bindings #885

erdemyerebasmaz opened this issue Mar 21, 2024 · 3 comments
Assignees

Comments

@erdemyerebasmaz
Copy link
Contributor

erdemyerebasmaz commented Mar 21, 2024

Here are a couple of examples we've received

  • after calling redeem_swap:
Generic(message: "Generic: Failed to create invoice: Invalid amount: Receive amount must be more than 0")
  • after calling send_payment:
FrbAnyhowException(Generic: Generic: status: Unknown, message: "transport error", details: [], metadata: MetadataMap { headers: {} })

This may be because parse_cln_error_wrapped is failing or not applied to source of these cln errors, see it's documentation for a better idea. I'm only guessing.

@erdemyerebasmaz erdemyerebasmaz changed the title Nested logs received on bindings Nested Errors received on bindings Mar 22, 2024
@Czino
Copy link

Czino commented Mar 24, 2024

We are experiencing the same error for some payments while testing one of our testers shared this screenshot
image

We build on react-native

@dangeross
Copy link
Collaborator

dangeross commented Mar 24, 2024

@Czino We have fixes in SDK v0.3.8 to help mitigate this Greenlight error. Can you update?

@roeierez
Copy link
Member

roeierez commented Apr 7, 2024

@erdemyerebasmaz it seems that the best solution here is to upgrade to flutter_rust_bridge v2. They added support structured errors.

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

5 participants