ergo icon indicating copy to clipboard operation
ergo copied to clipboard

Swagger requests 127.0.0.1 instead of the public url (bug)

Open pyotrsky opened this issue 2 years ago • 2 comments

Hi. In version 4.0.25, the swagger is configured to send requests to the 127.0.0.1. I think it should be the public IP address of the node instead. The Swagger does not work now if you open it by the public IP address of your node.

https://github.com/ergoplatform/ergo/blob/55af449ace6a7fd605130e8498dc5304f2ccffe4/src/main/resources/api/openapi.yaml#L16

pyotrsky avatar Mar 30 '22 03:03 pyotrsky

@ross-weir I agree https://github.com/ergoplatform/ergo/pull/1655#issuecomment-1083416717

pragmaxim avatar Mar 30 '22 18:03 pragmaxim

I'll also note that testnet swagger is inserting mainnet port into sample curl requests

Screenshot from 2022-03-30 17-44-12

dreams-money avatar Mar 31 '22 00:03 dreams-money

Can be closed @kushti

jozanek avatar Feb 25 '23 21:02 jozanek