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

Switch from requests to urllib #940

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Switch from requests to urllib #940

merged 3 commits into from
Dec 22, 2023

Conversation

wch
Copy link
Collaborator

@wch wch commented Dec 22, 2023

This fixes #935.

I tested with this, which still works:

shiny create -g https://github.com/posit-dev/py-shiny-templates/tree/main/dashboard

And if you give it a nonexistent URL, like this:

shiny create -g https://github.com/posit-dev/nothinghere/tree/main/dashboard

The previous error message looked like this:

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://github.com/posit-dev/nothinghere/archive/refs/heads/main.zip

After this PR, it looks like this:

urllib.error.HTTPError: HTTP Error 404: Not Found for url: https://github.com/posit-dev/nothinghere/archive/refs/heads/main.zip

@wch wch changed the base branch from main to rc-v0.6.1.1 December 22, 2023 20:45
@wch wch merged commit 5c6537e into rc-v0.6.1.1 Dec 22, 2023
@wch wch deleted the rm-requests-lib branch December 22, 2023 20:46
schloerke added a commit that referenced this pull request Jan 8, 2024
* main: (24 commits)
  Use dynamic version of py-shiny for deploy tests (#970)
  Add underscores to hide some imports (#978)
  Add rsconnect json files(shinyapps.io tests) and folium tests (#928)
  Express' `value_box()` no longer includes named positional args (#966)
  Include `tooltip()` and `popover()` in express (#949)
  Remove extra call to run_express()
  Call `tagify()` early to intercept `AttributeErrors` (#941)
  Don't pass sidebar twice to navbar_page
  Update changelog
  Update changelog
  Switch from `requests` to `urllib` (#940)
  Bump version to 0.6.1.1
  Fix docstring for page_opts
  Fix API doc sections for Express
  Smarter, lazier, and more complete page default/api for express (#893)
  Change `express.layout` to `express.ui` (#904)
  Remove `@output` from examples (#790)
  feat: Allow for `App` `server=` to take `input` only (#920)
  Add fixes for type stub generation (#828)
  Move quarto express docs to bottom
  ...
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.

shiny create requires requests python package
2 participants