I’m downloading a PDF from a docx in google drive. I’ve used that solution a lot of time and everything worked until now.
I have a google drive uploading a docx file.
Then I use a HTTP requesting to download the document in format PDF with this URL : https://docs.google.com/document/d/{{6.id}}/export?format=pdf
But since today it ends in an error almost half of the time. And for the other half it works.
I’ve tried with different files, and same result, some worked the first time, other took 3-4 attemps to work. Even thoose who worked the first time didn’t automatically worked a second time.
I tried to add a 2 sec sleep module in between the Gdrive upload and the HTTP download, but still the same result.
Sometimes replaying the make scenario from the history works.
The error is “DataError” and it continues with an HTML file saying “Could not open file. Try refreshing the page.”
The google drive download a file module. Under advanced settings you can set it to convert the docx file to pdf.
Also that’s not technically an API error, this is google’s error page. This happens if you try to convert and download a file too soon after its creation for example. Or if the file lacks permissions. Or if you called it too many times and it triggered some bot protection.
Just switch to the google download a file module instead.
Yeah this one isn’t random. I’ve seen this happen when pulling files from Google Drive via HTTP in Make.
When it works sometimes and fails other times like that, it’s usually a timing/availability issue. The file gets uploaded, but it’s not fully ready on Google’s side when your request hits the export URL so you get inconsistent results.
Adding a fixed delay helps a bit, but it’s not always reliable because the processing time isn’t constant.
Quick one are you triggering the HTTP request immediately after upload, or is there any check in between?
Data errors in the HTTP module in Make almost always come down to one of three things, and it helps to check them in order.
First, check the response body type setting in your HTTP module. If the API returns JSON but you have the response type set to Text or Auto, the mapping panel may fail to parse fields correctly and throw a data error downstream. Switch it to JSON explicitly and re-run.
Second, if you are downloading a file like a PDF from Google Drive, the URL needs to include the export or download parameter rather than the view URL. Google Drive view links return an HTML page, not the file - use the export link format with the appropriate MIME type.
Third, if the error only happens intermittently, it is usually a timing issue where the upstream system is not ready when Make polls it. Add a Sleep module or a short wait before the HTTP request, or add an error handler with a retry directive on that specific module.
To narrow down which cause applies, look at the HTTP module output panel and check the status code and body raw text before any parsing happens.