Closed jonwoodring closed 5 years ago
Gorilla pings an 'update server' to see if there's a newer version of Gorilla available, and I think this is what's causing the problem. It's supposed to fail quietly, as everything works fine without the check, but it looks like I must have messed up the error handling. I'll take another look and try and quieten it down.
MathJax is loaded by the browser, so it will use whatever proxy configuration your browser uses. Most browsers will cache stuff like MathJax, and Gorilla explicitly disables LaTeX rendering if it's not available. The update check is done by the Gorilla server, though, so it will potentially use different proxy information (say from the environment).
In the latest version of gorilla (used by adding the line [org.clojars.benfb/lein-gorilla "0.5.1"]
in the plugins
block in project.clj
), you can disable the version check by adding this text to your project.clj
(specifically the :phone-home false
part):
:profiles {:uberjar {:aot :all}
:user
{:gorilla-options
{:phone-home false}}})
I think this may be due to fetching MathJax, as I see a similar error with ipython and I forget to configure my proxy correctly. I'm using http_proxy, https_proxy, and no_proxy environment variables.
Though, I'm not 100% certain what the cause of this is: Gorilla seems to work fine, and a small amount of LaTeX that I tried is rendered correctly. So, I'm not sure what is causing it (unless Gorilla caches an old version of MathJax and it's trying to fetch the newest?)
Maybe here for the update to MathJax?
And to be clear, that is the response/redirect address from our web proxy if you fail to use the proxy.