diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
15k stars 1.19k forks source link

ETIMEDOUT when renderToStream with Image inside PDF file #2979

Open wvpelt opened 13 hours ago

wvpelt commented 13 hours ago

Describe the bug When using renderToStream inside a server component, I receive: request to https://www.mydomain.com/logo.png failed, reason: connect ETIMEDOUT

To Reproduce Steps to reproduce the behavior including code snippet (if applies):

  1. Create a server component for PDF creation
  2. Use renderToStream and provide a PDF Component which has an Image inside referencing an image on the server.
  3. See error

I've tried several url's to this file: https://www.mydomain.com, http://localhost:port, http://127.0.0.1:port, http://serverip.xx.xx.xx:port

{logoUrl && (
  <Image
    style={styles.image}
    source={logoUrl}
  />
)}