filestack / filestack-ruby

Official Ruby SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
Apache License 2.0
34 stars 27 forks source link

docs provider error: conversion was taking too long (idx 0) #66

Closed gdomingu closed 4 years ago

gdomingu commented 4 years ago

Hi there, when I try to do a

client.upload(external_url: url)

I sometimes get an error

*** JSON::ParserError Exception: 435: unexpected token at 'uuid=API-XXXXXX] Invalid response when trying to read from http://internal-taskrouters-...

When visiting the API url in my browser the response is

docs provider error: conversion was taking too long (idx 0)

Is there a way to increase the timeout for this? Or when this error happens have the API response with some JSON so that the gem doesn't get upset?

gabifija commented 4 years ago

@gdomingu In Filestack, we setup a default limit for docs conversion, but we can change it for our customers. If you are interested in increasing timeout, please contact our sales. I'm going to close the ticket, but please reopen if you have any doubts.