-
Notifications
You must be signed in to change notification settings - Fork 517
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
Allow custom message prefixes; simplify message type registration #744
Allow custom message prefixes; simplify message type registration #744
Conversation
Signed-off-by: Andrew Whitehead <[email protected]>
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.
I built a local aca-py image and tried starting up aries-vcr and I get the following:
vcr-agent_1 | 2020-10-06 22:40:38,387 aries_cloudagent.core.conductor ERROR Exception in message handler:
vcr-agent_1 | Traceback (most recent call last):
vcr-agent_1 | File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/aries_cloudagent/core/dispatcher.py", line 139, in handle_message
vcr-agent_1 | message = await self.make_message(inbound_message.payload)
vcr-agent_1 | File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/aries_cloudagent/core/dispatcher.py", line 223, in make_message
vcr-agent_1 | instance = message_cls.deserialize(parsed_msg)
vcr-agent_1 | AttributeError: 'tuple' object has no attribute 'deserialize'
vcr-agent_1 | 2020-10-06 22:40:38,388 aries_cloudagent.core.conductor ERROR DON'T shutdown on AttributeError 'tuple' object has no attribute 'deserialize'
vcr-agent_1 | 2020-10-06 22:40:38,389 aries_cloudagent.core.dispatcher ERROR Handler error: Dispatcher.handle_message
vcr-agent_1 | Traceback (most recent call last):
vcr-agent_1 | File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/aries_cloudagent/core/dispatcher.py", line 139, in handle_message
vcr-agent_1 | message = await self.make_message(inbound_message.payload)
vcr-agent_1 | File "/home/indy/.pyenv/versions/3.6.9/lib/python3.6/site-packages/aries_cloudagent/core/dispatcher.py", line 223, in make_message
vcr-agent_1 | instance = message_cls.deserialize(parsed_msg)
vcr-agent_1 | AttributeError: 'tuple' object has no attribute 'deserialize'
I think it's getting a connection error and not interpreting it properly |
... also breaks the BC Reg issuer registration: bcreg-controller_1 | Traceback (most recent call last): |
I can't guess what the update has to do with this error. Tuple?? |
Working back from the stack trace, this line: ... is returning a tuple: message_cls: ('aries_cloudagent.protocols.connections.v1_0.messages.connection_request.ConnectionRequest',) ... and the exception is getting thrown when you try to call deserialize() |
Signed-off-by: Andrew Whitehead <[email protected]>
@ianco Should be fixed now |
Codecov Report
@@ Coverage Diff @@
## master #744 +/- ##
=======================================
Coverage 99.01% 99.01%
=======================================
Files 256 256
Lines 13956 13967 +11
=======================================
+ Hits 13819 13830 +11
Misses 137 137 |
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.
Tested, all working now
No description provided.