serviceEndpoint
not set when not providing mediatorConnectionsInvite
to InitConfig
#401
Labels
serviceEndpoint
not set when not providing mediatorConnectionsInvite
to InitConfig
#401
This issue is probably related to #381
When I start my agent for the first time and pass the
mediatorConnectionsInvite
to theInitConfig
, it successfully connects to the mediator and everything works fine. However, if I restart my agent with exactly the sameInitConfig
configuration, my application hangs at theagent.initialize()
call.I can resolve this by removing the
mediatorConnectionsInvite
param from theInitConfig
, this will make the agent initialize successfully and reconnect to the mediator. However, because I'm not passingmediatorConnectionsInvite
to theInitConfig
,serviceEndpoint
in the invitation that is returned fromagent.connections.createConnection()
is not set to the mediator url.In other words: I can only get a valid invitation object at the first run. Thereafter any agent I pass the invitation object to won't know how to reach my agent.
In my view the agent should start without problems when
mediatorConnectionsInvite
is set, regardless of any existing mediator connections. I think @TimoGlastra's suggestion in #381 makes sense. Furthermore, I think theserviceEndpoint
value inside theinvitation
shouldn't depend on theInitConfig
, but should instead be based on aMediatorRecord
(if any).The text was updated successfully, but these errors were encountered: