hyperledger-archives / aries-mobile-agent-xamarin

Apache License 2.0
38 stars 31 forks source link

Connection Refused exception occur #18

Open Indhumathy07 opened 3 years ago

Indhumathy07 commented 3 years ago

Hi,

When i am trying to click the "Create Wallet" button, "failed create wallet" popup message occur. so that i trying to debug and find the reason, in that i am getting "Connection refused" exception in "RegisterViewModel-> CreateWalletCommant->await _provisioningService.ProvisionAsync();" method. Line number 46 i am getting "Connection Refused" exception and i cannot able to move the next page. Can you give the solution for this?

lukvad commented 3 years ago

Hi, I have similiar problem on iOS and Android versions. Mediator is running http://localhost:5000/.well-known/agent-configuration link is working in browser. On emulators internet is also working on browsers. However, when app is sending http request to mediator I am getting : [0:] System.Net.Http.HttpRequestException: Network subsystem is down ---> System.Net.Sockets.SocketException: Network subsystem is down at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x000c8]

tmarkovski commented 3 years ago

Have you tried using ngrok address instead? Connecting to localhost may not always work. Also make sure you're cleaning up ~/.indy_client folder in case you want to update the hostname.