hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

EdgeConsoleClient sends the request to only localhost:5000 all the time #40

Closed airoasis closed 4 years ago

airoasis commented 4 years ago

Describe the bug If I run the MediatorAgentService in the localhost:6000, and execute the EdgeConsoleClient with the EndpointUri = "localhost:6000", EdgeClient sends the request to localhost:5000

To Reproduce Steps to reproduce the behavior:

  1. Open MediatorAgentService/Startup.cs and update options.EndpointUri = "http://localhost:6000/"
  2. Open MediatorAgentService/Properties/launchSettings.json and update the port number from 5000 to 6000
  3. Open EdgeConsoleClient/Program.cs, and update the port number from 5000 to 6000
  4. Run the mediator
  5. Run the edge client

Actually, the call to CreateInvitationAsync fails because it sends the request localhost:5000

Expected behavior Run without error

tmarkovski commented 4 years ago

@airoasis When you run the services locally, both mediator and edge agent provision a wallet for that service. Running it subsequently, doesn't provision the wallet again, so your old changes were preserved. To fix this, simply remove all wallets under ~/.indy_client/wallet folder and run the updates services again.

airoasis commented 4 years ago

I have resolved the issue. Thank you very much.