Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request body larger than maxBodyLength Limit #36

Closed
RacknerFrank opened this issue Feb 1, 2021 · 4 comments
Closed

Request body larger than maxBodyLength Limit #36

RacknerFrank opened this issue Feb 1, 2021 · 4 comments
Assignees

Comments

@RacknerFrank
Copy link

I have been getting an error trying to split a large pdf with this library.

Here's my code:

convertapi.convert('split', {
  File: fileName
}, 'pdf')

Here's the error:

{ Error: Request body larger than maxBodyLength limit
    at Function.handleError (/node_modules/convertapi/lib/client.js:1:2396)
    at then.catch.a (/node_modules/convertapi/lib/client.js:1:2231)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:229:7)

I upgraded to version 1.9.1 and still experience this error

@tomasr78
Copy link

tomasr78 commented Feb 1, 2021

What is the file size?

@RacknerFrank
Copy link
Author

11MB

@tomasr78
Copy link

tomasr78 commented Feb 1, 2021

@laurynas-baltsoft Is there any request body limitation in NodeJS? Can we increase it?

@laurynas-convertapi
Copy link
Collaborator

Yes, there was default body limitation in axios library. Fixed it and released 1.10.1 client version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants