-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 entity too large #2097
Labels
bug
Something isn't working
needs triage
Issues that need to be triaged
v4
Issues related to the latest version
Comments
TommasoBilotta
added
bug
Something isn't working
needs triage
Issues that need to be triaged
v4
Issues related to the latest version
labels
Nov 10, 2024
why is every issue assign to @AmruthPillai |
When you encounter the error "PayloadTooLargeError: request entity too large," it usually means the JSON file you're trying to import is larger than the server's default limit for request size. To resolve this, you can increase the payload limit in your server's configuration. This adjustment should help you avoid the error. |
the error is given to me inside the container logs. if it was the reverse proxy the request to the container I don't think would have arrived. chatgpt told me that I have to put a parameter inside the code (I admit my ignorance with this framework):
import { NestFactory } from ***@***.***/core';
import { AppModule } from './app.module';
import * as bodyParser from 'body-parser';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// Set a custom size limit for the body
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
await app.listen(3000);
}
bootstrap();
Ottieni BlueMail per Android
Il giorno 11 Nov 2024, 15:55, alle ore 15:55, Abhishek Singh ***@***.***> ha scritto:
…
When you encounter the error "PayloadTooLargeError: request entity
too large," it usually means the JSON file you're trying to
import is larger than the server's default limit for request size.
To resolve this, you can increase the payload limit in your
server's configuration. This adjustment should help you avoid the
error.
--
Reply to this email directly or view it on GitHub:
#2097 (comment)
You are receiving this because you authored the thread.
Message ID:
***@***.***>
|
The same error is also given on the rxresu.me cloud
Ottieni BlueMail per Android
Il giorno 11 Nov 2024, 18:23, alle ore 18:23, Tommaso Bilotta ***@***.***> ha scritto:
…the error is given to me inside the container logs. if it was the
reverse proxy the request to the container I don't think would have
arrived. chatgpt told me that I have to put a parameter inside the code
(I admit my ignorance with this framework):
import { NestFactory } from ***@***.***/core';
import { AppModule } from './app.module';
import * as bodyParser from 'body-parser';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// Set a custom size limit for the body
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
await app.listen(3000);
}
bootstrap();
Ottieni BlueMail per Android
Il giorno 11 Nov 2024, 15:55, alle ore 15:55, Abhishek Singh
***@***.***> ha scritto:
>
>When you encounter the error "PayloadTooLargeError: request
entity
>too large," it usually means the JSON file you're trying to
>import is larger than the server's default limit for request size.
>To resolve this, you can increase the payload limit in your
>server's configuration. This adjustment should help you avoid the
>error.
>
>--
>Reply to this email directly or view it on GitHub:
>#2097 (comment)
>You are receiving this because you authored the thread.
>
>Message ID:
>***@***.***>
|
if you want I can send you the json that I try to import. it is about 156KB, to see if it works for you. I have customers who on the same kubernetes upload files of tens of MB on vtiger.
Ottieni BlueMail per Android
Il giorno 11 Nov 2024, 18:23, alle ore 18:23, Tommaso Bilotta ***@***.***> ha scritto:
…the error is given to me inside the container logs. if it was the
reverse proxy the request to the container I don't think would have
arrived. chatgpt told me that I have to put a parameter inside the code
(I admit my ignorance with this framework):
import { NestFactory } from ***@***.***/core';
import { AppModule } from './app.module';
import * as bodyParser from 'body-parser';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// Set a custom size limit for the body
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
await app.listen(3000);
}
bootstrap();
Ottieni BlueMail per Android
Il giorno 11 Nov 2024, 15:55, alle ore 15:55, Abhishek Singh
***@***.***> ha scritto:
>
>When you encounter the error "PayloadTooLargeError: request
entity
>too large," it usually means the JSON file you're trying to
>import is larger than the server's default limit for request size.
>To resolve this, you can increase the payload limit in your
>server's configuration. This adjustment should help you avoid the
>error.
>
>--
>Reply to this email directly or view it on GitHub:
>#2097 (comment)
>You are receiving this because you authored the thread.
>
>Message ID:
>***@***.***>
|
Hello, sorry for delay.
This is the json. I tryed just now on the cloud rxresu.me, the validation was fine but after the import phase return me the error. I attached you one photo.
Thank you.
Tommaso
Ottieni BlueMail per Android
Il giorno 16 Nov 2024, 13:21, alle ore 13:21, Abhishek Singh ***@***.***> ha scritto:
…Yes and Give code in text or structured format
On Fri, 15 Nov 2024, 03:41 TommasoBilotta, ***@***.***> wrote:
> if you want I can send you the json that I try to import. it is about
> 156KB, to see if it works for you. I have customers who on the same
> kubernetes upload files of tens of MB on vtiger.
>
> Ottieni BlueMail per Android
>
> Il giorno 11 Nov 2024, 18:23, alle ore 18:23, Tommaso Bilotta
***@***.***>
> ha scritto:
> >the error is given to me inside the container logs. if it was the
> >reverse proxy the request to the container I don't think would have
> >arrived. chatgpt told me that I have to put a parameter inside the
code
> >(I admit my ignorance with this framework):
> >
> >import { NestFactory } from ***@***.***/core';
> >import { AppModule } from './app.module';
> >import * as bodyParser from 'body-parser';
> >
> >async function bootstrap() {
> >const app = await NestFactory.create(AppModule);
> >
> >// Set a custom size limit for the body
> >app.use(bodyParser.json({ limit: '50mb' }));
> >app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
> >
> >await app.listen(3000);
> >}
> >bootstrap();
> >
> >Ottieni BlueMail per Android
> >
> >Il giorno 11 Nov 2024, 15:55, alle ore 15:55, Abhishek Singh
> >***@***.***> ha scritto:
> >>
> >>When you encounter the error "PayloadTooLargeError: request
> >entity
> >>too large," it usually means the JSON file you're trying
to
> >>import is larger than the server's default limit for request
size.
> >>To resolve this, you can increase the payload limit in your
> >>server's configuration. This adjustment should help you avoid
the
> >>error.
> >>
> >>--
> >>Reply to this email directly or view it on GitHub:
> >>
>
#2097 (comment)
> >>You are receiving this because you authored the thread.
> >>
> >>Message ID:
> >>***@***.***>
>
> —
> Reply to this email directly, view it on GitHub
>
<#2097 (comment)>,
> or unsubscribe
>
<https://github.com/notifications/unsubscribe-auth/A36S7I2YCEXWP6KTQFNL33D2AUNYZAVCNFSM6AAAAABRQTPOW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZXGUYDQMRRHE>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
Reply to this email directly or view it on GitHub:
#2097 (comment)
You are receiving this because you authored the thread.
Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
needs triage
Issues that need to be triaged
v4
Issues related to the latest version
Is there an existing issue for this?
Product Variant
Self-Hosted
Current Behavior
Hi, I'm trying to import my cv from json and I get this error:
[Nest] 88 - 11/09/2024, 1:24:34 PM ERROR [ExceptionsHandler] request entity too large
PayloadTooLargeError: request entity too large
at readStream (/app/node_modules/.pnpm/[email protected]/node_modules/raw-body/index.js:163:17)
at getRawBody (/app/node_modules/.pnpm/[email protected]/node_modules/raw-body/index.js:116:12)
at read (/app/node_modules/.pnpm/[email protected]/node_modules/body-parser/lib/read.js:79:3)
at jsonParser (/app/node_modules/.pnpm/[email protected]/node_modules/body-parser/lib/types/json.js:138:5)
at Layer.handle [as handle_request] (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:328:13)
at /app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:346:12)
at next (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/index.js:280:10)
at internalNext (/app/node_modules/.pnpm/[email protected]/node_modules/helmet/index.cjs:521:6)
Thank you in advance.
Tommaso
Expected Behavior
I expected the json to be loaded.
Steps To Reproduce
No response
What browsers are you seeing the problem on?
No response
What template are you using?
None
Anything else?
I have a working version: https://resume.linuxguru.it/tommaso.bilotta/cv
with the latest version of the CV it doesn't work.
The text was updated successfully, but these errors were encountered: