You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support proxy definition for fetch operation by using custom http client using proxy env var or flags to command line #5515
My project has my company's http_proxy and https_proxy defined in the .Rprofile
It is not clear from quarto help how the user would verify quarto can see these proxy settings.
Checklist
Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
Please format your issue so it is easier for us to read the bug report.
Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
Please document the operating system you're running. If on Linux, please provide the specific distribution.
Please provide the output of quarto check so we know which version of quarto and its dependencies you're running.
I believe for quarto add (replacing quarto install) and using the Deno Fetch API, setting the env var should be supported : HTTP_PROXY, HTTPS_PROXY and NO_PROXY
It is not, using either quarto add pandoc-ext/section-bibliographies or the old quarto install extension pandoc-ext/section-bibliographies
I'm new to Deno and TS, is there a good example of a setter using quarto run and a deno or ts script? The current quarto documentation provides a nice example of referencing a script file, but a layer of detail down on setting env vars would be helpful in my case.
@dragonstyle the download method we use for quarto add seems to be the Fetch API from DENO. From doc, I was expecting the env var to be respected, but does not seems the case.
Do you think it should work ?
Otherwise, we may need to add some flags for proxy to set our call to download method with proxy values
It looks to me like those env variables are respected by DENO for import resolution, but not natively by fetch (without a little code from us). Seem like we can create a custom http client for use in fetch:
But we aren't using that in our core downloader :(. We probably need to support proxy flags for the commands + ideally we'd sniff those same env variables...
It looks to me like those env variables are respected by DENO for import resolution, but not natively by fetch (without a little code from us). Seem like we can create a custom http client for use in fetch:
But we aren't using that in our core downloader :(. We probably need to support proxy flags for the commands + ideally we'd sniff those same env variables...
Sorry I didn't think to ask sooner, should https://myserver.com be a reference to my company's domain, or the GIT repo from which I'm trying to pull the extension?
But we aren't using that in our core downloader :(. We probably need to support proxy flags for the commands + ideally we'd sniff those same env variables...
@dragonstyle this is what I found also - I was not sure so thanks for confirming. It seems the view docs I found about env var with Fetch were wrong. Good to know !
I'll rename the issue accordingly to what we need to do
changed the title [-]define proxies for quarto[/-][+]Support proxy definition for fetch operation by using custom http client using proxy env var or flags to command line[/+]on May 12, 2023
But we aren't using that in our core downloader :(. We probably need to support proxy flags for the commands + ideally we'd sniff those same env variables...
@dragonstyle this is what I found also - I was not sure so thanks for confirming. It seems the view docs I found about env var with Fetch were wrong. Good to know !
I'll rename the issue accordingly to what we need to do
Thanks @cderv , more interested in installing extension, using an archive sounds like a fine way to stay out of server and client config shenanigans.
Same, would be nice to use some proxies like with pip: pip install setuptools --proxy=http://111.222.33.4:8844
While trying to install an extension through a zip file I get an error as if Quarto still needs a connection to the original repo: ERROR: TypeError: A network error occurred when attempting to inspect the extension '/TinyTeX'. Please try again.
Both the zip file and the uncompressed folder are in my local folder.
For the zip quarto add TinyTeX.zip I get:
Found 0 extensions.
ERROR: Invalid extension
The extension staged at C:\Users\[user]\AppData\Local\Temp\quarto-session94ebbca66661e0a7\b6c7e0aaa74825bc\e7a22611fafb2cdc\staged does not provide any valid extensions.
When trying the unzipped folder with: quarto add /TinyTeX
ERROR: TypeError: A network error occurred when attempting to inspect the extension '/TinyTeX'. Please try again.
Reacted by Ilias Aarab, Gordon Woodhull and Christophe Dervieux
Activity
cderv commentedon May 12, 2023
For reference this was also ask on Community: https://community.rstudio.com/t/chapter-references-in-quarto-pdf/166151
I believe for
quarto add(replacingquarto install) and using the Deno Fetch API, setting the env var should be supported :HTTP_PROXY,HTTPS_PROXYandNO_PROXYIs it not working ?
matthewdwood82 commentedon May 12, 2023
It is not, using either
quarto add pandoc-ext/section-bibliographiesor the oldquarto install extension pandoc-ext/section-bibliographiesI'm new to Deno and TS, is there a good example of a setter using
quarto runand a deno or ts script? The current quarto documentation provides a nice example of referencing a script file, but a layer of detail down on setting env vars would be helpful in my case.Thanks!
cderv commentedon May 12, 2023
@dragonstyle the download method we use for
quarto addseems to be the Fetch API from DENO. From doc, I was expecting the env var to be respected, but does not seems the case.Do you think it should work ?
Otherwise, we may need to add some flags for proxy to set our call to download method with proxy values
dragonstyle commentedon May 12, 2023
It looks to me like those env variables are respected by DENO for import resolution, but not natively by fetch (without a little code from us). Seem like we can create a custom http client for use in fetch:
But we aren't using that in our core downloader :(. We probably need to support proxy flags for the commands + ideally we'd sniff those same env variables...
matthewdwood82 commentedon May 12, 2023
Thanks @dragonstyle for the nice example. Will give it a try.
matthewdwood82 commentedon May 12, 2023
Sorry I didn't think to ask sooner, should
https://myserver.combe a reference to my company's domain, or the GIT repo from which I'm trying to pull the extension?cderv commentedon May 12, 2023
@matthewdwood82 I am not sure if you want to test or just install the extension
For the latter you can download the extension as an archive file, and install it from the local downloaded file
https://quarto.org/docs/extensions/distributing.html#archive-files
@dragonstyle this is what I found also - I was not sure so thanks for confirming. It seems the view docs I found about env var with Fetch were wrong. Good to know !
I'll rename the issue accordingly to what we need to do
[-]define proxies for quarto[/-][+]Support proxy definition for fetch operation by using custom http client using proxy env var or flags to command line[/+]matthewdwood82 commentedon May 12, 2023
Thanks @cderv , more interested in installing extension, using an archive sounds like a fine way to stay out of server and client config shenanigans.
Reporting back shortly...
matthewdwood82 commentedon May 12, 2023
That worked! We can close this one, pending any future enhancement the dev team here decides to make wrt quarto and proxies.
Thanks @cderv & @dragonstyle for your help!
3 remaining items
matthewdwood82 commentedon May 16, 2023
🎉
IliasAarab commentedon Feb 19, 2025
Any updates available? Would be nice to be able to set proxies.
JackGraymer commentedon Apr 3, 2025
Same, would be nice to use some proxies like with pip:
pip install setuptools --proxy=http://111.222.33.4:8844While trying to install an extension through a zip file I get an error as if Quarto still needs a connection to the original repo:
ERROR: TypeError: A network error occurred when attempting to inspect the extension '/TinyTeX'. Please try again.Both the zip file and the uncompressed folder are in my local folder.
For the zip
quarto add TinyTeX.zipI get:When trying the unzipped folder with:
quarto add /TinyTeXmcanouil commentedon Jan 12, 2026
Quarto Wizard (https://m.canouil.dev/quarto-wizard/) the VSCode/Positron extension now supports classical environment variables for proxy.
This should help getting access to Quarto extensions from being proxy/firewall while the Quarto CLI issue is being fixed in the future.
Note
This is a third party tool.
It might be seen as a workaround rather than a fix.
matthewdwood82 commentedon Jan 14, 2026
This is fantastic, look forward to trying!
cderv commentedon Jan 14, 2026
I reopen as Quarto Wizard is an external tool that helps, but ultimately we may want to fix in quarto CLI itself.