diegomura / diegomura/react-pdf

ETIMEDOUT when renderToStream with Image inside PDF file

Open
#2,979 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

**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.
4. 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 && (

)}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.