seankross / postcards

💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Other
551 stars 87 forks source link

Problem fetching bootstrap #29

Open elinw opened 3 years ago

elinw commented 3 years ago

Back on November 27 I was able to create postcards on RStudioServer. But now when I try it with the current version of Postcards I get

output file: jolla.knit.md

Could not fetch https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css HttpExceptionRequest Request { host = "stackpath.bootstrapcdn.com" port = 443 secure = True requestHeaders = [] path = "/bootstrap/4.5.0/css/bootstrap.min.css" queryString = "" method = "GET" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 proxySecureMode = ProxySecureWithConnect } (ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = Nothing}, host name: Just "stackpath.bootstrapcdn.com", service name: Just "443"): does not exist (Name does not resolve)) Error: pandoc document conversion failed with error 61 Execution halted

Maybe this has to do with cross-site scripting or something like that. Do you have any thoughts?

seankross commented 3 years ago

Was this on a hosted RStudioServer session or were you running it locally?

elinw commented 3 years ago

Hosted. I'm pretty sure the answer is to detect whether you are on RStudioServer and then, if so, not do the injections that were added.

seankross commented 3 years ago

Which injections exactly? This sounds like something I can tweak in the pandoc arguments.

elinw commented 3 years ago

So I tried deleting the actual not injected and Githubissues.

  • Githubissues is a development platform for aggregating issues.