Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fix for downloading config files from GitHub #91

Merged
merged 6 commits into from
Nov 14, 2024

Conversation

jrbourbeau
Copy link
Member

Full context is here dask/dask#11522

It looks like GitHub started blocking us downloading Dask config files for some reason. Stackoverflow recommended setting a custom User-Agent, which I've confirmed fixes things (at least for now -- again not sure what changed on the GitHub side. I can open a support ticket).

cc @jacobtomlinson @phofl

url,
headers={"User-Agent": f"Dask sphinx theme {dask_sphinx_theme.__version__}"},
)
r.raise_for_status()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this line isn't actually needed, but makes debugging things much easier. Right now we get a weird yaml parsing error instead of an HTTP error.

Copy link

@phofl phofl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the linter is unhappy but looks good to me otherwise

@jrbourbeau
Copy link
Member Author

Okay, I'm going to merge this to unblock docs build. @jacobtomlinson I'm happy to handle any comments you may have in a follow up PR though

@jrbourbeau jrbourbeau merged commit 813d4c1 into dask:main Nov 14, 2024
3 checks passed
@jrbourbeau jrbourbeau deleted the debug branch November 14, 2024 20:09
@phofl phofl mentioned this pull request Nov 14, 2024
5 tasks
@jacobtomlinson
Copy link
Member

Thanks for handling this @jrbourbeau

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants