-
-
Notifications
You must be signed in to change notification settings - Fork 142
Replies: 1 comment · 6 replies
-
I don't think it's a good idea to do that in the controller. It should be done in the background.
|
Beta Was this translation helpful? Give feedback.
All reactions
-
👀 1
-
Turn on debug log |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
I don't see anything suspicious in the log, the website is just slow. First turn off pending connections, second increase timeout https://github.com/rubycdp/ferrum#customization |
Beta Was this translation helpful? Give feedback.
All reactions
-
Okay, that could be caused by a problem with the WSL network. |
Beta Was this translation helpful? Give feedback.
All reactions
-
excatly, it just hangs on the first request for some reason and there's no response from chrome for some time. I wonder if increasing timeout helps |
Beta Was this translation helpful? Give feedback.
All reactions
This discussion was converted from issue #437 on January 19, 2024 08:38.
-
In my app I want to have a "generate pdf" controller action
Scenario:
when a user clicks
it hits the controller action in PDF format, that opens a ferrum browser and visits the controller action in HTML format:
In this case I will often get the
Ferrum::PendingConnectionsError
error withRequest to http://localhost:3000/projects reached server, but there are still pending connections: http:/localhost:3000/projects
Are there some best practices to follow to avoid this error?
Beta Was this translation helpful? Give feedback.
All reactions