Comments (2)
Hi, the timeout is enforced by the API layer, not the client, so I'm not sure setting it locally will have any effect.
There is generally a timeout of about 90 seconds on the SaaS platform, and so if you have many PDFs, the service has to:
- Visit each url and download the PDFs one by one
- Take the processing time to merge them together.
If that exceeds the timeout, it will error out in that way.
There is a strategy you can consider employing to mitigate this issue:
Let's say you have 100 pdfs to merge together into a single PDF. Instead of 1 api call with 100 pdfs, do 10 api calls with 10 pdfs each. Now you have 10 pdfs back from the service as a result. Then do 1 more call to combine these 10 pdfs you got back into 1 pdf. We call this "stacking the merge". You can stack the merge in different buckets of PDFs to see the optimal stacking strategy.
If that does not work, we do offer a managed hosting service which lifts basically all memory and timeout limits, but typically only enterprise customers go for this as the costs are higher, you can reach out to [email protected] for details.
from api2pdf.salesforce.
Thank you @apexdodge ! Before I saw your message I edited one of the classes included in this package and added the timeout value. It seems to work! I was able to process 25 merged PDFs without issue. If I run into issues with larger groups of documents in the future I will look into merge stacking as you suggest.
from api2pdf.salesforce.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api2pdf.salesforce.