readthedocs / readthedocs.org

The source code that powers readthedocs.org
https://readthedocs.org/
MIT License
8.03k stars 3.58k forks source link

Missing version selection #6979

Closed ghost closed 4 years ago

ghost commented 4 years ago

Details

Expected Result

Footer is expected to have an option to switch from latest to other releases.

Actual Result

Footer version selection is missing.

ericholscher commented 4 years ago

Hi,

This is likely because of a configuration on your side. You are proxying to us from some server:

-> dig +short docs.opendaylight.org
d9tk6tch5uznr.cloudfront.net.

We don't recommend this configuration, and suggest you use our supported setup: https://docs.readthedocs.io/en/latest/custom_domains.html

ghost commented 4 years ago

We currently proxy for docs.onap.org as well, and version selection is working as expected.

dig +short docs.onap.org
d3kgktjkvnp4zz.cloudfront.net.
ericholscher commented 4 years ago

That request also 404's:

-> curl -IL "https://docs.onap.org/_/api/v2/footer_html/?callback=jQuery321017419822411307884_1588100712083&project=onap&version=elalto&page=index&theme=sphinx_rtd_theme&format=jsonp&docroot=%2Fdocs%2F&source_suffix=.rst&_=1588100712084"
HTTP/2 404
stsewd commented 4 years ago

We currently proxy for docs.onap.org as well, and version selection is working as expected.

What you are seeing there is a "dummy" footer, not the one fetched from our API with up to date information.

ghost commented 4 years ago

Removing proxy fixed the issue. Thanks!