From d3b6c0a0c72c170f1894737cee691eaba48473cc Mon Sep 17 00:00:00 2001 From: eximus Date: Mon, 12 Jun 2023 10:55:50 -0400 Subject: [PATCH] Increase create job body limit on post request --- lib/JobsResource.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/JobsResource.ts b/lib/JobsResource.ts index d8b1d6b..8734ac6 100644 --- a/lib/JobsResource.ts +++ b/lib/JobsResource.ts @@ -69,7 +69,9 @@ export default class JobsResource { // See below for an explanation on how this type signature works async create(data: JobTemplate | null = null): Promise { - const response = await this.cloudConvert.axios.post('jobs', data); + const response = await this.cloudConvert.axios.post('jobs', data, { + maxBodyLength: Infinity + }); return response.data.data; }