hyperledger / identus-edge-agent-sdk-ts

Apache License 2.0
24 stars 13 forks source link

Agent doesn't start and state is stuck at starting...HTTP Request Timeout to IP Address and port 8080 #274

Closed i1d9 closed 2 months ago

i1d9 commented 2 months ago

Is this a regression?

No

Description

I've been following the following quick guide to setup the whole identus infra on my development machine. I successfully ran the nextjs demo application but I'm not able to start the edge agent. Its state is stuck at starting. I've also noticed a request is being sent to an ip address targeting port 8080. I'm using docker to run my mediator at port 8080. I've confirmed that the endpoint is up and is also visible on my browsers. I'm assuming the sdk is looking for the mediator. Is there a way to point it to my actual localhost or am I missing something?

Screenshot 2024-08-26 at 16 04 12

Please provide the exception or error you saw

On the networking tab of web developer tool various browsers, a XHR request is seen being sent to an IP address which is wrong.

Please provide the environment you discovered this bug in

Mac OS 14.6.1(23G93)
M1 2020
Safari v17.6
Google Chrome Version 128.0.6613.85 (Official Build) (arm64)

Anything else?

No response

elribonazo commented 2 months ago

@i1d9 Open your mediator url and copy the did that shows in the website. Then, open the typescript edge agent and go to debug tab and paste your mediator did in there.

The mediator needs to be recheable by both, docker and outside. If you configure it as localhost, the agent won't be able to reach mediator in docker network.

The right process is to deploy using the commands we provide. Is your mediator running at that ip address:8080? As far as the local mediator you have deployed has the env vars configured correctly u should be able to reach it.