question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intersphinx to Numpy gets 403 HTTP error on CircleCI

See original GitHub issue

Hello. Perhaps as a result of #15540, we start seeing 403 HTTP error when referring to Numpy doc via intersphinx in our own doc build on CircleCI. We do not see this locally, on Azure Pipelines, nor Travis CI.

The Numpy intersphinx is defined in https://github.com/astropy/sphinx-astropy/blob/040b7c8a92431e1a621e9261d6185ab704bbb33f/sphinx_astropy/conf/v1.py#L50-L51 .

Sphinx has its own default User Agent (see https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-user_agent).

It is not immediately clear why this failure only happens on CircleCI for us. Is there something you can do on your side, such as whitelisting?

Hope you can advise. Thanks!

xref astropy/astropy#9947 cc @saimn

Reproducing code example:

https://github.com/astropy/astropy

Error message:

Example log: https://circleci.com/gh/astropy/astropy/59676

Warning, treated as error:
The following HTTP Error has occurred fetching https://numpy.org/doc/1.18/: 403 (Forbidden)

Numpy/Python version information:

See log above.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
rgommerscommented, Feb 14, 2020

No worries. Same here, sorry for the inconvenience!

0reactions
rgommerscommented, Feb 14, 2020

I think we should leave this issue open

gh-15540 is the issue for that, no point keeping two issues around for this one issue.

When https://numpy.org/doc/latest/ becomes the new canonical link to the latest docs for intersphinx purposes

Yep that should be the goal. It’s a matter of fixing the release procedure so that stable link gets updated each time. @mattip, I can’t remember if we talked about this when you created https://github.com/numpy/doc/?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CircleCI 403 Forbidden in HTML artifacts
When viewing CircleCI artifacts of a HTML page I am getting a slew of errors like:
Read more >
Read the Docs Documentation
Getting started: With Sphinx | With MkDocs | Choosing Between Our Two ... For a 403 error, it's likely that the Payload URL...
Read more >
Mailman 3 - Python-announce-list
I'm pleased to announce pdfdecrypt 1.0, a command line tool to remove passwords from PDF documents. It will read the encrypted document, ...
Read more >
sphinx - debian-backports: sphinx - Progress Linux
+* Michael Wilson -- Intersphinx HTTP basic auth support ... +* #2882: Fall back to a GET request on 403 status in linkcheck....
Read more >
openSUSE ARM - July 2021
... (bmo#1701932) Password autofill on HTTP websites was enabled without user ... [radarhere] * Allow converting an image to a numpy array to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found