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: Can not create XMTP client #173

Closed
ajay-simform opened this issue Oct 5, 2023 · 2 comments
Closed

Bug: Can not create XMTP client #173

ajay-simform opened this issue Oct 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ajay-simform
Copy link

Describe the bug

  • I used Client.create( account: privateKey, options: ClientOptions(api: .init(env: .production))) to create an XMTP client.
  • It does work most of the time but on rare occasions, it fails to create a client. Even after retrying it is not getting created.
  • If I restart the app and try, it works. I can't get the error coz most of the time it is raised on the user side.
  • Any help will be appreciated.

Thanks.

Expected behavior

It should always create a client and allow us to proceed further

Steps to reproduce the bug

Not have any reproduction steps. It happens suddenly and stops creating an XMTP client.

@ajay-simform ajay-simform added the bug Something isn't working label Oct 5, 2023
@nplasterer
Copy link
Contributor

👋 Hey @ajay-simform I haven't experienced this before do you mind sharing more of your code. Otherwise this repo may be a good place to look at how an iOS app might be built https://github.com/xmtp-labs/xmtp-inbox-ios or the example app in this repo.

@humanagent humanagent self-assigned this Dec 3, 2023
@humanagent
Copy link
Contributor

humanagent commented Dec 4, 2023

I've tested the XMTPiOSExample and found that the client creation works consistently. Here's the link for reference: XMTPiOSExample. I'm going to close this issue, but I'd like to hear your thoughts, @ajay-simform. Do you know of any scenarios where this might not be the case? Can share relevante code?

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

3 participants