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

Unable to get person credential #2226

Open
jleach opened this issue Oct 18, 2024 · 1 comment
Open

Unable to get person credential #2226

jleach opened this issue Oct 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jleach
Copy link
Member

jleach commented Oct 18, 2024

User reported unable to get person credential. Issue seems to be consistent for him but intermittent for others. On backgrounding / foregrounding the app message trickle in one at a time.

There may be two different issues:

  1. Some times the wallet hangs and no messages (basic or offer) are received. Restarting the wallet fixes this and both messages arrive.
  2. Some times the offer is received but the wallet does not automatically accept the offer.

1. No Messages

  • Was able to reproduce on the Indecio public mediator and BC mediator.
  • Both messages (basic message and offer) were in notifications when I closed the "please wait..." screen.
  • Connection issues to IAS. The wallet hangs at "Connected to IAS agent, connectionId: ....". Could be a mediator issue as I've never seen this when testing with ACA-py before.
  • Tried mediator.dev.animo.id and that worked no better.
  • The BC mediator seems the most stable and works the most reliably out of the other two tested.

2. Hang

  1. This issue can be reproduced by restarting the app and get a person credential.
  2. Then I delete it, and repeat the process. This time I pause on a BCSC screen until you see the following three lines appear in the mediator logs (1.0.20 may only print one line so repetition may be irrelevant):
2024-10-18 21:10:18,830 aries_cloudagent.transport.inbound.ws ERROR Unexpected Websocket message type received: WSMsgType.CLOSED: None, None
2024-10-18 21:10:18,831 aries_cloudagent.transport.inbound.ws ERROR Unexpected Websocket message type received: WSMsgType.CLOSED: None, None
2024-10-18 21:10:18,831 aries_cloudagent.transport.inbound.ws ERROR Unexpected Websocket message type received: WSMsgType.CLOSED: None, None
  1. Complete the process.

You will see this in the mediator logs, at which point the BC Wallet app will be stalled at "Just a moment....". For both 1.0.20 and 1.0.21 it repeats 3x.

2024-10-18 21:10:25,945 aries_cloudagent.core.conductor WARNING Cannot queue message for delivery, no supported transport
2024-10-18 21:10:26,166 aries_cloudagent.core.conductor WARNING Cannot queue message for delivery, no supported transport
2024-10-18 21:10:26,529 aries_cloudagent.core.conductor WARNING Cannot queue message for delivery, no supported transport
  • This happens with or without pausing mediator message pickup;
  • Android 14
  • 1.0.21 latest
  • 1.0.20 has the same issue. It only prints the "ERROR Unexpected Websocket message type received:" once so repeating it 3x may be irrelevant.
@jleach jleach self-assigned this Oct 18, 2024
@jleach jleach added the bug Something isn't working label Oct 18, 2024
@cvarjao
Copy link
Member

cvarjao commented Oct 22, 2024

While we can do work on the server/mediator side to increase stability/availability, the wallet should not assume that a websocket connection is long lived. The connection can be interrupted at anytime by any reason, but the wallet should be resilient and try to re-connect.

@cvarjao cvarjao added this to the 1.0.21 milestone Oct 24, 2024
@jleach jleach self-assigned this Oct 30, 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

2 participants