Browsershot::html not working with Remote Chrome #486
Replies: 2 comments
-
We just ran into the same issue. So instead we just proxied the rendered views through a route on the same service so we can just provide a URL. |
Beta Was this translation helpful? Give feedback.
-
On #491 I've shared a little bit of my experience with browsershot remote instance and docker. Looks like you are trying to access chrome remotely with a hostname, that only works with an IP. |
Beta Was this translation helpful? Give feedback.
-
When I try to combine
Browsershot::html
withBrowsershot::setRemoteInstance
I run into the following error.Example:
I think the problem is that puppeteer's page.goto('file://<file_path>') not work because the file is not available on the remote Chrome. Would it be better to read the temporary html file and use puppeteer's
page.setContent
-method?Beta Was this translation helpful? Give feedback.
All reactions