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

Improve Swift error messaging in RN #368

Closed
nplasterer opened this issue Jul 22, 2024 · 0 comments · Fixed by #370
Closed

Improve Swift error messaging in RN #368

nplasterer opened this issue Jul 22, 2024 · 0 comments · Fixed by #370
Assignees

Comments

@nplasterer
Copy link
Contributor

nplasterer commented Jul 22, 2024

In the reaact native logs I only see : ERROR in create: [Error: The operation couldn't be completed. (XMTP.ClientError error 0.)] which is really not readable
When building through Xcode I can see more logs: 'ERROR in create: ', { [Error: The operation couldn't be completed. (XMTP.ClientError error 0.)] code: 'ERR_UNEXPECTED' } but still nothing clear
This error is thrown here :

throw ClientError.creationError("\(error)")

If I add a print("ERROR (error)") above this line I do get : ERROR Storage(message: "Storage error: The SQLCipher Sqlite extension is not present, but an encryption key is given") so libxmtp does throw the right error but it’s not well surfaced in swift logs & RN logs. I’m adding the right linking to Converse to fix the issue but just know that for other devs it might really not be clear what the issue is

@nplasterer nplasterer converted this from a draft issue Jul 22, 2024
@nplasterer nplasterer self-assigned this Jul 22, 2024
@nplasterer nplasterer moved this from Todo to In Progress in V3 Backlog Jul 23, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in V3 Backlog Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant