zeta-chain / node

ZetaChain’s blockchain node and an observer validator client
https://zetachain.com
MIT License
167 stars 109 forks source link

OpenAPI YAML is not served in full #735

Open fadeev opened 1 year ago

fadeev commented 1 year ago

For example, https://rpc-archive.athens.zetachain.com:1317/openapi.swagger.yaml is 32K lines long, but the YAML in the source is 56K lines long.

fadeev commented 1 year ago

It's not an issue when running with go run docs/main.go. It's also not a problem when running locally with zetacored start --api.enable.

fadeev commented 1 year ago

@CharlieMc0 do you know why a server would refuse to send the whole file?

brewmaster012 commented 1 year ago

@fadeev if i run curl:

curl  https://rpc-archive.athens.zetachain.com:1317/openapi.swagger.yaml

it seems to fetch around 2MB!?

fadeev commented 1 year ago

@fadeev if i run curl:

curl  https://rpc-archive.athens.zetachain.com:1317/openapi.swagger.yaml

it seems to fetch around 2MB!?

Yes, but it's still 32K lines and should be 56K lines. So it's not the whole file.