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

Network errors when using "embed-resources: true" #10909

Closed
kenahoo opened this issue Sep 27, 2024 · 2 comments
Closed

Network errors when using "embed-resources: true" #10909

kenahoo opened this issue Sep 27, 2024 · 2 comments
Labels
support a request for support

Comments

@kenahoo
Copy link

kenahoo commented Sep 27, 2024

Bug description

No response

Steps to reproduce

  1. Have these settings in RStudio (not sure whether this is relevant):
Screenshot 2024-09-27 at 2 22 09 PM
  1. Create this document:
---
title: "MyTitle"
subtitle: "My subtitle"
author: "Ken Williams"
date: "Jan 1, 2024"
embed-resources: true
format: 
    revealjs:
        theme: simple
---

## Slide1

1.  Some stuff
3.  Some stuff

## Slide2

Stuff
  1. Hit the blue-arrow "Render" button in RStudio.

Expected behavior

Document should render pretty fast, and with no errors.

Actual behavior

The following errors are produced, and it looks like the connections time out because it takes a minute or two to render.

==> quarto preview test.qmd --to revealjs --presentation --no-watch-inputs --no-browse

pandoc 
  to: revealjs
  output-file: test.html
  standalone: true
  embed-resources: true
  wrap: none
  default-image-extension: png
  html-math-method:
    method: mathjax
    url: >-
      https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full
  slide-level: 2
  
metadata
  link-citations: true
  width: 1050
  height: 700
  margin: 0.1
  center: false
  navigationMode: linear
  controlsLayout: edges
  controlsTutorial: false
  hash: true
  history: true
  hashOneBasedIndex: false
  fragmentInURL: false
  transition: none
  backgroundTransition: none
  pdfSeparateFragments: false
  lang: en
  auto-stretch: true
  title: MyTitle
  subtitle: My subtitle
  author: Ken Williams
  date: 'Jan 1, 2024'
  theme: simple
  
[WARNING] Could not fetch resource https://fonts.googleapis.com/css?family=News+Cycle:400,700: HttpExceptionRequest Request {
    host                 = "fonts.googleapis.com"
    port                 = 443
    secure               = True
    requestHeaders       = []
    path                 = "/css"
    queryString          = "?family=News+Cycle:400,700"
    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 "fonts.googleapis.com", service name: Just "443"): does not exist (nodename nor servname provided, or not known))
[WARNING] Could not fetch resource https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic: HttpExceptionRequest Request {
    host                 = "fonts.googleapis.com"
    port                 = 443
    secure               = True
    requestHeaders       = []
    path                 = "/css"
    queryString          = "?family=Lato:400,700,400italic,700italic"
    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 "fonts.googleapis.com", service name: Just "443"): does not exist (nodename nor servname provided, or not known))
Output created: test.html

Watching files for changes
Browse at http://localhost:7395/

Additionally, note that the quarto invocation includes the --no-watch-inputs flag, but it still seems to be trying (but failing) to watch inputs.

Your environment

  • IDE: RStudio 2024.09.0+375 (2024.09.0+375)
  • OS: MacOS Sonoma 14.7 (23H124)

Quarto check output

$ quarto check
Quarto 1.5.57
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.57
      Path: /Applications/RStudio.app/Contents/Resources/app/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2024

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.6
      Path: /Library/Developer/CommandLineTools/usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.4.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Users/kwilliams/R/library/4.4
        - /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
      knitr: 1.48
      rmarkdown: 2.27

[✓] Checking Knitr engine render......OK

@kenahoo kenahoo added the bug Something isn't working label Sep 27, 2024
@cscheid
Copy link
Collaborator

cscheid commented Sep 27, 2024

I can't repro this locally. Is it possible that you have some network configuration that prevents your computer from accessing https://fonts.googleapis.com?

@cscheid cscheid added the needs-repro Issues that are blocked until reporter provides an adequate reproduction label Sep 27, 2024
@kenahoo
Copy link
Author

kenahoo commented Sep 30, 2024

Thanks Carlos, you're totally right - I was having some network issue that I couldn't seem to fix without a reboot. Sorry for the noise!

@mcanouil mcanouil closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
@mcanouil mcanouil added support a request for support and removed bug Something isn't working needs-repro Issues that are blocked until reporter provides an adequate reproduction labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support a request for support
Projects
None yet
Development

No branches or pull requests

3 participants