ConvertAPI / convertapi-library-python

A Python library for the ConvertAPI
https://www.convertapi.com
Other
73 stars 22 forks source link

I am facing 500:Internal Server Error for URL in version 1.4.0 #20

Closed priyamshah112 closed 3 years ago

priyamshah112 commented 3 years ago

image Whenever, i am trying to make a call from localhost or from production server to

convertapi.convert('pdf', {
        'File': 'static/output/'+userId+'/excel.xlsx'
    }, from_format = 'xlsx').save_files('static/output/'+userId)

It's throwing the same error and the fun fact is the statistics page shows API was hit and deducts my time for failed attempts also which is totally wrong from a business perspective. image

tomasr78 commented 3 years ago

It could be a problem with the file. Please try to convert the file at https://www.convertapi.com/xlsx-to-pdf What result do you get?

priyamshah112 commented 3 years ago

From GUI to, it shows same error Screenshot 2021-04-17 102717

I did checked all the sheets, but no idea why its not able to convert xlsx file to pdf

priyamshah112 commented 3 years ago

Thanks for the help, I re-generated the sheet and then tried making a call it worked. You were right it was problem with file.

priyamshah112 commented 3 years ago

Maybe we can add some more details in the error message for such cases where the file is corrupted