403 - From POST HTTPS depending on size of body

Hi, i'm getting the 403 response for my endpoint in the "http-in" node when the request is made through HTTPS. But it only occurs when in the body of the request there are 3 or more items in the array that i send. If i send 1 or 2 items in the array it responds as espected. For 3 or more i get 403, no log is show in the debug console. I looked in the "node-red-error.log" and the "node-red-out.log" but didn't found anything related to the request. If the same requisition is made from HTTP, it works regardless of the size of the array in the body.
Does anyone has seen anything like this and/or have any idea of what i can do to identify why this happens ? As it shows no log at all i'm completely lost in what to do.
Any help, tip or direction is really appreciated

403 is a refusal by the server to authorise the request.

You mention the "http-in" node" - so I assume the endpoint is created in Node-RED?

What are you using to make the requests?

Can you provide a proven working (not working) demo flow demonstrating this. Also, provide the cURLs / postman commands to test it.

Are you responding with a JSON response? If so, have you checked the size of the output? ExpressJS has, I believe a default maximum JSON response size of 1MB. If needed, you can change that in the ExpressJS settings - I think you can change those for the default node-red server?

I have discovered the cause of the problem. It was not in nodered. The problem was in the AWS cloud front that i use to reach nodered.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.