Error with iLovePdf

I want to use iLovePdf to generate some text on an existing PDF. So far I managed to

  • Start the Process and get an TASK ID
  • Upload my file to get an server file ID

But now I get an 400 Error when trying to add some Text using the make API Call method. There seems to be a Problem at the very beginning. I tried to just rotate the File (to call a function with less parameters) still no luck. Every examples uses the same format for calling the process function.
I also have no clue how to debug this. The error message tells me to check “in the params”. Where can I find this?

Error Message: “[400] This task can’t be processed. Check why in the params. || ||”

Any help would be highly appreciated. Thank you in Advance.

The Problem must be somewhere with theses lines:

“task”: “{{1.body.task}}”,
“tool”: “editpdf”,
“files”: [
{
“server_filename”: “{{2.body.server_filename}}”,
“filename”: “briefpapier.pdf”
}
],

PDF Tool.blueprint.json (17.6 KB)

So I got it solved with their support:

You are calling https://api.ilovepdf.com/v1/process instead of https://{server_returned_by_the_start_endpoint}/v1/process as we explain at https://www.iloveapi.com/docs/api-reference#process

The ENDPOINT URL is somewhat dynamic, so in my module i need to use the server I am assigned.

https://{{15.data.server}}/v1/process for example.

I am using the http module since it gives me more flexibility and when I am learning to use API I might as well learn how to authenticate and such.

So problem solved.

3 Likes