You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and finally, I have a file pdf.css file in app/assets/stylesheets.
By setting raise_on_request_failure to true, I got the following error: "#<Grover::JavaScript::RequestFailedError: net::ERR_ABORTED at http://example.com/assets/pdf-b4394a610268cf28d98e5ef256be9e3db28862f5993e7458584da1b33530afa0.css>"
How would you manage your development environment?
The text was updated successfully, but these errors were encountered:
Put simply, when rendering the HTML using Puppeteer a display URL must be provided. If you don't provide one, Grover will default to using http://example.com. That's why you're seeing the error with the asset attempting to load from example.com!
You have two options:
specify the display_url eg display_url: 'http://localhost:3000'
replace the relative asset URLs with absolute URLs eg:
I am using Rails 7.0.7, grover (1.1.5).
My controller code is :
The layout is the following:
and finally, I have a file pdf.css file in app/assets/stylesheets.
By setting raise_on_request_failure to true, I got the following error:
"#<Grover::JavaScript::RequestFailedError: net::ERR_ABORTED at http://example.com/assets/pdf-b4394a610268cf28d98e5ef256be9e3db28862f5993e7458584da1b33530afa0.css>"
How would you manage your development environment?
The text was updated successfully, but these errors were encountered: