hyperledger-archives / aries-framework-go

Hyperledger Aries Framework Go provides packages for building Agent / DIDComm services.
https://wiki.hyperledger.org/display/ARIES/aries-framework-go
Apache License 2.0
240 stars 161 forks source link

Issues while running the OpenAPI demo #2056

Closed anchit93 closed 4 years ago

anchit93 commented 4 years ago

I am following the Open API demo and was able to bring up the agents by running make run-openapi-demo command however getting below error in the server response while calling POST /connections/create-invitation from Alice agent Error: TypeError: Failed to fetch Not able to debug this as there is no error message logged in the containers running for Alice agent. Same is the case with Bob's agent also.

soluchok commented 4 years ago

@anchit93 Could you please describe the steps to reproduce it? I've checked it http://localhost:8089/openapi/#/did-exchange/createInvitation works fine. Here is a curl command. Let me know whether it works. curl -X POST "http://localhost:8082/connections/create-invitation?alias=demo" -H "accept: application/json"

anchit93 commented 4 years ago

Okay, I think I figured out the issue. I was accessing the swagger interface of Alice agent from a different machine, but the create-invitation API expects Aries rest server to be up and running on localhost:8082 in case of Alice which was not available in my case.

Thanks for the help!

DaevMithran commented 3 years ago

image I'm trying the open API demo, and getting this error for all APIs in all the Agents

soluchok commented 3 years ago

@DaevMithran make sure you are able to open this URL in the browser https://localhost:8082/connections/create-invitation. I assume you have a problem with HTTPS. Click Advanced->Proceed anyway

DaevMithran commented 3 years ago

Yea Thanks!, that was the issue