This is an archived forum post. The information may be outdated. Contact us if you have any questions.

pdfcrowd appengine python api timing out

philipfc wrote on 2013-08-27:
I am currently receiving "pdfcrowd error: Deadline exceeded while waiting for HTTP response from URL: https://pdfcrowd.com/api/pdf/convert/uri/" when a conversion takes more than 5 seconds. I want to change the time limit to be 60 seconds which I think is the app engine max allowed timeout (or whatever the pdfcrowd max timeout is) .

Is there a parameter in the pdfcrowd API that makes this change easy or do I need to update the client library you provided?
support wrote on 2013-08-28:
Hello,

I'm not familiar with GAE but adding the following to your code should resolve the issue:
from google.appengine.api import urlfetch
urlfetch.set_default_fetch_deadline(40)


Reference: http://stackoverflow.com/questions/14698119/httpexception-deadline-exceeded-while-waiting-for-http-response-from-url-dead
philipfc wrote on 2013-08-28:
That fix seems to be working. Thank you.