-
Notifications
You must be signed in to change notification settings - Fork 513
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
Fix connection record response for mobile #1469
Conversation
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
Codecov Report
@@ Coverage Diff @@
## main #1469 +/- ##
==========================================
- Coverage 95.73% 95.71% -0.03%
==========================================
Files 527 527
Lines 32375 32372 -3
==========================================
- Hits 30994 30984 -10
- Misses 1381 1388 +7 |
Hi @TimoGlastra I think you're right. I thought it may be related because you're dealing with connections but upon review I feel that it's a different issue @seriousManual @ntsbs do you think this will resolve your issue #1441 ? I've changed the PR to Draft status because I think the issue may be more complicated. Responses can be initiated in the routes class (called from admin api), one of the handlers (response to a message from another agent) or within the manager class (common to both). I think the issue here was that the response initiated within the manager class explicitly referenced the mediator, whereas the response initiated within the handler "knows" that there is an open session to return the response. This issue may come up for other types of transactions as well, @swcurran @andrewwhitehead @shaangill025 any thoughts? |
Honestly I don't know. |
Can we test this out somehow? Can you build an aca-py docker image with the updated code? Or if not maybe I can build/publish a docker image for you? |
Hi @ianco , if you could an image that would be awesome! |
Hi @seriousManual you can try running with this image: If you want to build an image yourself, I can send some instructions, just let me know. |
Hey Ian, |
OK thanks, back to the drawing board ... |
This actually solves a problem we're experiencing with the toolbox and ACA-Py 0.7.2. With the session -> profile changes made wherever possible, I found that the |
This instance appears to be the only time where a |
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
This also appears to impact the |
Unfortunately, I think this is a critical bug for using ACA-Py 0.7.2 with agents without endpoints (mobile agent, toolbox, etc.) as it renders them unable to connect. |
Hey @dbluhm thanks for the comments, I wasn't sure if this was an issue, it was a stab in the dark to fix a different issue (which it didn't even fix) |
Instead of didexchange manager.receive_request Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes have fixed errors we were experiencing; however, seems like it would be beneficial to get someone else's eyes on this since I contributed some of these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, may be tests can be updated to cover recent changes made to:
- connections/v1_0/handlers/connection_request_handler.py
- didexchange/v1_0/handlers/request_handler.py
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Signed-off-by: Ian Costanzo ian@anon-solutions.ca
See issue: #1441
This is a bit of a shot in the dark, the connection auto-replies aren't following the same convention as other protocols.