According to this Heroku article, connections have a mandatory timeout period of 30 seconds. Since the process of connecting to the portal, retrieving the transcript, and generating a PDF can (and now suddenly does) take more than 30 seconds, we should adopt the solution presented in the article: refactoring this process into a Worker Dyno that supports Background Jobs.